From 8576132a38f4242c5f5da3133e832525a70766e6 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Wed, 8 Jul 2009 14:45:58 -0700 Subject: [PATCH] AI 150393: edit the reference's navtree highlighting logic to handle intl/ directories BUG=1790234 Automated import of CL 150393 --- tools/droiddoc/templates/assets/navtree.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/droiddoc/templates/assets/navtree.js b/tools/droiddoc/templates/assets/navtree.js index 8e7a91caf..33a4f81c7 100644 --- a/tools/droiddoc/templates/assets/navtree.js +++ b/tools/droiddoc/templates/assets/navtree.js @@ -104,7 +104,8 @@ function this_page_relative(toroot) var file = ""; if (toroot.substr(0, 1) == "/") { if (full.substr(0, toroot.length) == toroot) { - return full.substr(toroot.length); + var basePath = getBaseUri(full); + return basePath.substring(toroot.length); } else { // the file isn't under toroot. Fail. return null;