diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-24 21:11:01 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-24 21:11:01 +0000 |
commit | c42ff0c8d658e10a63fda5c94c733fc7afa83869 (patch) | |
tree | d77b0d4ce64f45f272592d1cd8420743cf802b20 /chrome/common/extensions/docs/js | |
parent | 92d7e3cf4565020179f836e1ea63b7cb70dc919d (diff) | |
download | chromium_src-c42ff0c8d658e10a63fda5c94c733fc7afa83869.zip chromium_src-c42ff0c8d658e10a63fda5c94c733fc7afa83869.tar.gz chromium_src-c42ff0c8d658e10a63fda5c94c733fc7afa83869.tar.bz2 |
Extension Docs (no code changes) - Fix navigation jig. Renamed a few parameters in extension_api.json. Regenerate rendered docs
TBR=kathyw, aa
Review URL: http://codereview.chromium.org/174339
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs/js')
-rwxr-xr-x | chrome/common/extensions/docs/js/api_page_generator.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/common/extensions/docs/js/api_page_generator.js b/chrome/common/extensions/docs/js/api_page_generator.js index a89a83a..e9173bc 100755 --- a/chrome/common/extensions/docs/js/api_page_generator.js +++ b/chrome/common/extensions/docs/js/api_page_generator.js @@ -227,9 +227,13 @@ function selectCurrentPageOnLeftNav() { evalXPathFromId(".//li/a", "leftNav").select(function(node) { if (pageBase == finalPathPart(node.href)) { var parent = node.parentNode; - parent.className = "leftNavSelected"; + if (node.firstChild.nodeName == 'DIV') { + node.firstChild.className = "leftNavSelected"; + } else { + parent.className = "leftNavSelected"; + } parent.removeChild(node); - parent.appendChild(node.firstChild); + parent.insertBefore(node.firstChild, parent.firstChild); return true; } }); |