Commit b2852a9a authored by ThorbenQuast's avatar ThorbenQuast
Browse files

set cookie expiration to seven days

parent 74fdf545
...@@ -51,10 +51,10 @@ var CommandLine = Emitter.extend({ ...@@ -51,10 +51,10 @@ var CommandLine = Emitter.extend({
}, },
setMenuFunctionality: function() { setMenuFunctionality: function() {
this.menuNode.find("#submit").click(function(){ this.menuNode.find("#submit").click(function() {
console.log("submit from editor not implemented yet"); console.log("submit from editor not implemented yet");
}); });
this.menuNode.find("#quick-submit").click(function(){ this.menuNode.find("#quick-submit").click(function() {
console.log("quick-submit from editor not implemented yet"); console.log("quick-submit from editor not implemented yet");
}); });
}, },
...@@ -94,7 +94,9 @@ var CommandLine = Emitter.extend({ ...@@ -94,7 +94,9 @@ var CommandLine = Emitter.extend({
return; return;
var key = this.getCookieKey(); var key = this.getCookieKey();
this.commandCookie[key] = cmd; this.commandCookie[key] = cmd;
$.cookie("commands", JSON.stringify(this.commandCookie)); $.cookie("commands", JSON.stringify(this.commandCookie), {
expires: 7
}); //expiry after seven days
}, },
//key == file name //key == file name
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment