From: Hanoh Haim Date: Sun, 15 May 2016 09:58:37 +0000 (+0300) Subject: another fix from Bilal X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=aefb40944286640c4ec463583e94d8cc469ba053;p=trex.git another fix from Bilal --- 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