Commit b2852a9a authored by ThorbenQuast's avatar ThorbenQuast
Browse files

set cookie expiration to seven days

parent 74fdf545
......@@ -47,14 +47,14 @@ var CommandLine = Emitter.extend({
self.setDefault();
self.renderHistory();
});
this.setMenuFunctionality(); //sets up the buttons in the submit menu
this.setMenuFunctionality(); //sets up the buttons in the submit menu
},
setMenuFunctionality: function() {
this.menuNode.find("#submit").click(function(){
this.menuNode.find("#submit").click(function() {
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");
});
},
......@@ -94,7 +94,9 @@ var CommandLine = Emitter.extend({
return;
var key = this.getCookieKey();
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
......
Markdown is supported
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