am ac2c989e: am 6b719da3: docs: update sidenav-width-adjust script so Training classes save the width for the Resources section

* commit 'ac2c989e8492a733bdd3d4c7e1bedd5210c56c8d':
  docs: update sidenav-width-adjust script so Training classes save the width for the Resources section
This commit is contained in:
Scott Main 2012-04-20 10:38:51 -07:00 committed by Android Git Automerger
commit e8e50739da
1 changed files with 1 additions and 0 deletions

View File

@ -372,6 +372,7 @@ function resizeWidth() {
if (sidenav.length) { // Must check if the nav exists because IE6 calls resizeWidth() from resizeAll() for all pages
var basePath = getBaseUri(location.pathname);
var section = basePath.substring(1,basePath.indexOf("/",1));
section = section.indexOf("training") != -1 ? "resources" : section;
writeCookie("width", sidenavWidth, section, null);
}
}