From ada0c32d0b9ce1f12c5c026b4825bbfd9891ba45 Mon Sep 17 00:00:00 2001 From: zuber Date: Tue, 1 Sep 2009 14:45:48 +0200 Subject: [PATCH] =?utf8?q?Dodanie=20daty=20ostatniego=20uaktualnienia=20us?= =?utf8?q?tawie=C5=84=20do=20ustawie=C5=84=20w=20cookie=20w=20pliku=20edit?= =?utf8?q?or.js.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- project/static/js/editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/static/js/editor.js b/project/static/js/editor.js index 6e63eb08..c12182f3 100644 --- a/project/static/js/editor.js +++ b/project/static/js/editor.js @@ -145,7 +145,8 @@ Editor.prototype.loadConfig = function() { panels: [ {name: 'htmleditor', ratio: 0.5}, {name: 'gallery', ratio: 0.5} - ] + ], + lastUpdate: 0, } try { @@ -197,6 +198,7 @@ Editor.prototype.savePanelOptions = function() { }) }); self.options.panels = panels; + self.options.lastUpdate = (new Date()).getTime() / 1000; $.log($.toJSON(self.options)); $.cookie('options', $.toJSON(self.options), { expires: 7, path: '/'}); } -- 2.20.1