Commit dc13d9d4 authored by ThorbenQuast's avatar ThorbenQuast
Browse files

editor: remove cookieName variable in commandline.js

parent aa652340
......@@ -61,7 +61,6 @@ define(["jquery", "emitter"], function($, Emitter) {
this.commandline = rightTopNode.find("#command-line").tooltip({
trigger: "focus"
});
this.cookieName = "commands-ws" + String(this.view.getWorkspaceId());
this.histNode = rightTopNode.find("#history");
this.menuNode = rightTopNode.find("#menu");
......@@ -90,7 +89,7 @@ define(["jquery", "emitter"], function($, Emitter) {
},
getCookie: function(callback) {
this.commandCookie = $.cookie("commands");
this.commandCookie = $.cookie("VISPA-commands");
if (!this.commandCookie) //if no cookie has been set yet --> make a new one
this.commandCookie = {};
else
......@@ -124,7 +123,7 @@ define(["jquery", "emitter"], function($, Emitter) {
return;
var key = this.getCookieKey();
this.commandCookie[key] = cmd;
$.cookie("commands", JSON.stringify(this.commandCookie), {
$.cookie("VISPA-commands", JSON.stringify(this.commandCookie), {
expires: 7
}); //expiry after seven days
},
......
......@@ -24,8 +24,6 @@ define(["jquery", "emitter"], function($, Emitter) {
this.previewData = [];
this.cookie = null;
this.thumbnailSize = null;
......
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