AI 150393: edit the reference's navtree highlighting logic to handle intl/ directories

BUG=1790234

Automated import of CL 150393
This commit is contained in:
Scott Main
2009-07-08 14:45:58 -07:00
committed by Dirk Dougherty
parent 1cb43f69d4
commit 8576132a38

View File

@@ -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;