|
|
@ -150,13 +150,22 @@ function getQueryVariable(variable,url){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function setIndexPath() { |
|
|
|
|
|
|
|
|
function setIndexPath() { |
|
|
var indexPath=null |
|
|
var indexPath=null |
|
|
var url=window.location.href; |
|
|
var url=window.location.href; |
|
|
if(url.indexOf("/login")<=0){ |
|
|
if(url.indexOf("/login")<=0){ |
|
|
indexPath=url |
|
|
indexPath=url |
|
|
sessionStorage.setItem("index-path",url); |
|
|
sessionStorage.setItem("index-path",url); |
|
|
} |
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
var idxPath=sessionStorage.getItem("index-path"); |
|
|
|
|
|
if(idxPath && idxPath!='null'){ |
|
|
|
|
|
indexPath=idxPath |
|
|
|
|
|
}else{ |
|
|
|
|
|
indexPath=url.substring(0,url.indexOf('/login')) |
|
|
|
|
|
sessionStorage.setItem("index-path",indexPath); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
return indexPath |
|
|
return indexPath |
|
|
} |
|
|
} |
|
|
var indexPath=setIndexPath(); |
|
|
var indexPath=setIndexPath(); |
|
|
|