forked from openkylin/platform_build
docs: update sidenav-width-adjust script so Training classes save the width for the Resources section
Change-Id: I0125b1d585a0adde7f5f485f3288fdc7a8a55faf
This commit is contained in:
parent
76b0139a50
commit
6b719da316
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue