summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Brousseau <kingmook@gmail.com>2012-11-08 13:47:21 -0500
committerMike Brousseau <kingmook@gmail.com>2012-11-08 13:47:21 -0500
commit34594eb88b7f32dc6b59b78ebf7d75d0a25f918a (patch)
treeab1cb8a55c91b8f61f4b1bb73d68f4766711134c /src
parent745a1860ac7116333c65747dfac2f5f0221ad6dc (diff)
downloadetherpad-lite-34594eb88b7f32dc6b59b78ebf7d75d0a25f918a.zip
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()
Diffstat (limited to 'src')
-rw-r--r--src/static/js/pad.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/static/js/pad.js b/src/static/js/pad.js
index 89777040..c55f8dfe 100644
--- a/src/static/js/pad.js
+++ b/src/static/js/pad.js
@@ -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)