From c42ff0c8d658e10a63fda5c94c733fc7afa83869 Mon Sep 17 00:00:00 2001 From: "rafaelw@chromium.org" Date: Mon, 24 Aug 2009 21:11:01 +0000 Subject: 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 --- chrome/common/extensions/docs/js/api_page_generator.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'chrome/common/extensions/docs/js') 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; } }); -- cgit v1.1