From aefb40944286640c4ec463583e94d8cc469ba053 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Sun, 15 May 2016 12:58:37 +0300 Subject: [PATCH] another fix from Bilal --- trex_toc.asciidoc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/trex_toc.asciidoc b/trex_toc.asciidoc index b04b23e2..e4085746 100644 --- a/trex_toc.asciidoc +++ b/trex_toc.asciidoc @@ -225,11 +225,7 @@ ifdef::backend-xhtml11[] "plugins" : [ "wholerow" ] }; - $('#nav-tree').jstree(toc_tree_options) - .on('loaded.jstree', function() { - toc_tree.jstree('open_all'); - }); - + $('#nav-tree').jstree(toc_tree_options) ; toc_tree.on("changed.jstree", function (e, data) { window.location.href = data.instance.get_selected(true)[0].original.link; @@ -326,7 +322,7 @@ ifdef::backend-xhtml11[] function closTOC(){ $("#toc").hide("slide", 500); $("#toctitle").hide("slide", 500); - if(!isMobileDevice){ + if(!isMobileDevice()){ $(".ui-resizable-e").hide("slide", 500); } // Show the show/hide button @@ -339,7 +335,7 @@ ifdef::backend-xhtml11[] function openTOC(){ $("#toc").show("slide", 500); $("#toctitle").show("slide", 500); - if(!isMobileDevice){ + if(!isMobileDevice()){ $(".ui-resizable-e").show("slide", 500); } // Show the show/hide button -- 2.16.6