]> granicus.if.org Git - docbook-dsssl/commitdiff
fix: Fixed tree building issue.
authorKasun Gajasinghe <kasunbg@gmail.com>
Tue, 17 Aug 2010 21:45:49 +0000 (21:45 +0000)
committerKasun Gajasinghe <kasunbg@gmail.com>
Tue, 17 Aug 2010 21:45:49 +0000 (21:45 +0000)
xsl/webhelp/template/common/main.js
xsl/webhelp/xsl/webhelp.xsl

index 954bf93a9d9cdfda134f013010e76db9f04fcc37..dee730360172052c12702f11aad6dc65e4d99fae 100755 (executable)
@@ -18,6 +18,7 @@ $(document).ready(function() {
         });
 
     //Generate the tree
+     $("#ulTreeDiv").attr("style","");
     $("#tree").treeview({
         collapsed: true,
         animated: "medium",
@@ -27,7 +28,7 @@ $(document).ready(function() {
 
     //after toc fully styled, display it. Until loading, a 'loading' image will be displayed
     $("#tocLoading").attr("style","display:none;");
-    $("#tree").attr("style","display:block;"); 
+//    $("#ulTreeDiv").attr("style","display:block;");
 
     //.searchButton is the css class applied to 'Go' button 
     $(function() {
index 70a361a624db26be05bc38b1bf26b1b3bb838daf..94926eecfc70b914f140e11279ebea390799fd0c 100755 (executable)
@@ -606,11 +606,14 @@ These problems go away when you add this IE=7 mode meta tag.
                             <div id="treeDiv">
                                 <img src="../common/images/loading.gif" alt="loading table of contents..."
                                      id="tocLoading" style="display:block;"/>
-                                <ul id="tree" class="filetree" style="display:none;">
-                                    <xsl:apply-templates select="/*/*" mode="webhelptoc">
-                                        <xsl:with-param name="currentid" select="$currentid"/>
-                                    </xsl:apply-templates>
-                                </ul>
+                                <div id="ulTreeDiv" style="display:none">
+                                    <ul id="tree" class="filetree">
+                                        <xsl:apply-templates select="/*/*" mode="webhelptoc">
+                                            <xsl:with-param name="currentid" select="$currentid"/>
+                                        </xsl:apply-templates>
+                                    </ul>
+                                </div>
+
                             </div>
                             <xsl:if test="$webhelp.include.search.tab != 'false'">
                                 <div id="searchDiv">