forked from openkylin/platform_build
am a9255cfa: am 0af80fb4: am 0f429ebe: docs: fix bug in script for tab cookies
* commit 'a9255cfa7c4b352b730ade2ea5cf3096f9512845': docs: fix bug in script for tab cookies
This commit is contained in:
commit
8543a9ef7e
|
@ -425,11 +425,11 @@ function loadLast(cookiePath) {
|
|||
|
||||
$(window).unload(function(){
|
||||
var path = getBaseUri(location.pathname);
|
||||
if ((path.indexOf("/reference/") != -1) || (path.indexOf("/training/") != -1)) {
|
||||
if (path.indexOf("/reference/") != -1) {
|
||||
writeCookie("lastpage", path, "reference", null);
|
||||
} else if (path.indexOf("/guide/") != -1) {
|
||||
writeCookie("lastpage", path, "guide", null);
|
||||
} else if (path.indexOf("/resources/") != -1) {
|
||||
} else if ((path.indexOf("/resources/") != -1) || (path.indexOf("/training/") != -1)) {
|
||||
writeCookie("lastpage", path, "resources", null);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue