diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2012-12-26 15:59:17 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2012-12-26 15:59:17 (GMT) |
commit | 48f4de5c47d55b6622b6fdc9b5c288e19d5692f9 (patch) | |
tree | 629c4681a5158d26512b815623754b33165d8d23 /src/navtree_js.h | |
parent | fee4053bd3dd075a2dd2cba4da8166ec5307eadd (diff) | |
download | Doxygen-48f4de5c47d55b6622b6fdc9b5c288e19d5692f9.zip Doxygen-48f4de5c47d55b6622b6fdc9b5c288e19d5692f9.tar.gz Doxygen-48f4de5c47d55b6622b6fdc9b5c288e19d5692f9.tar.bz2 |
Release-1.8.3
Diffstat (limited to 'src/navtree_js.h')
-rw-r--r-- | src/navtree_js.h | 49 |
1 files changed, 13 insertions, 36 deletions
diff --git a/src/navtree_js.h b/src/navtree_js.h index b0c6d7c..2e4df6a 100644 --- a/src/navtree_js.h +++ b/src/navtree_js.h @@ -75,24 +75,22 @@ "\n" "function createIndent(o,domNode,node,level)\n" "{\n" -" if (node.parentNode && node.parentNode.parentNode) {\n" -" createIndent(o,domNode,node.parentNode,level+1);\n" -" }\n" +" var level=-1;\n" +" var n = node;\n" +" while (n.parentNode) { level++; n=n.parentNode; }\n" " var imgNode = document.createElement(\"img\");\n" -" imgNode.width = 16;\n" +" imgNode.style.paddingLeft=(16*level).toString()+'px';\n" +" imgNode.width = 16;\n" " imgNode.height = 22;\n" -" if (level==0 && node.childrenData) {\n" +" imgNode.border = 0;\n" +" if (node.childrenData) {\n" " node.plus_img = imgNode;\n" " node.expandToggle = document.createElement(\"a\");\n" " node.expandToggle.href = \"javascript:void(0)\";\n" " node.expandToggle.onclick = function() {\n" " if (node.expanded) {\n" " $(node.getChildrenUL()).slideUp(\"fast\");\n" -" if (node.isLast) {\n" -" node.plus_img.src = node.relpath+\"ftv2plastnode.png\";\n" -" } else {\n" -" node.plus_img.src = node.relpath+\"ftv2pnode.png\";\n" -" }\n" +" node.plus_img.src = node.relpath+\"ftv2pnode.png\";\n" " node.expanded = false;\n" " } else {\n" " expandNode(o, node, false, false);\n" @@ -100,33 +98,11 @@ " }\n" " node.expandToggle.appendChild(imgNode);\n" " domNode.appendChild(node.expandToggle);\n" +" imgNode.src = node.relpath+\"ftv2pnode.png\";\n" " } else {\n" +" imgNode.src = node.relpath+\"ftv2node.png\";\n" " domNode.appendChild(imgNode);\n" -" }\n" -" if (level==0) {\n" -" if (node.isLast) {\n" -" if (node.childrenData) {\n" -" imgNode.src = node.relpath+\"ftv2plastnode.png\";\n" -" } else {\n" -" imgNode.src = node.relpath+\"ftv2lastnode.png\";\n" -" domNode.appendChild(imgNode);\n" -" }\n" -" } else {\n" -" if (node.childrenData) {\n" -" imgNode.src = node.relpath+\"ftv2pnode.png\";\n" -" } else {\n" -" imgNode.src = node.relpath+\"ftv2node.png\";\n" -" domNode.appendChild(imgNode);\n" -" }\n" -" }\n" -" } else {\n" -" if (node.isLast) {\n" -" imgNode.src = node.relpath+\"ftv2blank.png\";\n" -" } else {\n" -" imgNode.src = node.relpath+\"ftv2vertline.png\";\n" -" }\n" -" }\n" -" imgNode.border = \"0\";\n" +" } \n" "}\n" "\n" "var animationInProgress = false;\n" @@ -364,7 +340,7 @@ " },true);\n" " } else {\n" " var rootBase = stripPath(o.toroot.replace(/\\..+$/, ''));\n" -" if (rootBase==\"index\" || rootBase==\"pages\") {\n" +" if (rootBase==\"index\" || rootBase==\"pages\" || rootBase==\"search\") {\n" " expandNode(o, n, true, true);\n" " }\n" " selectAndHighlight(hash,n);\n" @@ -420,6 +396,7 @@ " var url=root+hash;\n" " var i=-1;\n" " while (NAVTREEINDEX[i+1]<=url) i++;\n" +" if (i==-1) { i=0; root=NAVTREE[0][1]; } // fallback: show index\n" " if (navTreeSubIndices[i]) {\n" " gotoNode(o,i,root,hash,relpath)\n" " } else {\n" |