am 9041aa50
: am 6b719da3
: docs: update sidenav-width-adjust script so Training classes save the width for the Resources section
* commit '9041aa50fbdb2cff512617a0377385c7d5ada663': docs: update sidenav-width-adjust script so Training classes save the width for the Resources section
This commit is contained in:
commit
217a4d896b
1 changed files with 1 additions and 0 deletions
|
@ -372,6 +372,7 @@ function resizeWidth() {
|
||||||
if (sidenav.length) { // Must check if the nav exists because IE6 calls resizeWidth() from resizeAll() for all pages
|
if (sidenav.length) { // Must check if the nav exists because IE6 calls resizeWidth() from resizeAll() for all pages
|
||||||
var basePath = getBaseUri(location.pathname);
|
var basePath = getBaseUri(location.pathname);
|
||||||
var section = basePath.substring(1,basePath.indexOf("/",1));
|
var section = basePath.substring(1,basePath.indexOf("/",1));
|
||||||
|
section = section.indexOf("training") != -1 ? "resources" : section;
|
||||||
writeCookie("width", sidenavWidth, section, null);
|
writeCookie("width", sidenavWidth, section, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue