Update src/static/js/pad.js

Check if the browser is IE and if so output the entire path via document.location over document.location.pathname to the cookie creation in createCookie()
pull/1147/head
Mike Brousseau 2012-11-08 13:47:21 -05:00
parent 745a1860ac
commit 34594eb88b
1 changed files with 7 additions and 1 deletions

View File

@ -64,7 +64,13 @@ function createCookie(name, value, days, path)
if(!path)
path = "/";
document.cookie = name + "=" + value + expires + "; path=" + path;
//Check if the browser is IE and if so make sure the full path is set in the cookie
if(navigator.appName=='Microsoft Internet Explorer'){
document.cookie = name + "=" + value + expires + "; path="+document.location;
}
else{
document.cookie = name + "=" + value + expires + "; path=" + path;
}
}
function readCookie(name)