am 8576132a: AI 150393: edit the reference\'s navtree highlighting logic to handle intl/ directories BUG=1790234

Merge commit '8576132a38f4242c5f5da3133e832525a70766e6'

* commit '8576132a38f4242c5f5da3133e832525a70766e6':
  AI 150393: edit the reference's navtree highlighting logic to handle intl/ directories
This commit is contained in:
Scott Main 2009-07-25 10:12:04 -07:00 committed by Android Git Automerger
commit bbd6743f9e

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;