X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/47ce1394042e8faf057124b47b777e92b8181ae9..5dd35dc51c94ec63a25ad17dca4259e7e80e2bc0:/project/static/js/editor.js diff --git a/project/static/js/editor.js b/project/static/js/editor.js index f6556578..585f3ce2 100644 --- a/project/static/js/editor.js +++ b/project/static/js/editor.js @@ -148,7 +148,8 @@ Editor.prototype.loadConfig = function() { panels: [ {name: 'htmleditor', ratio: 0.5}, {name: 'gallery', ratio: 0.5} - ] + ], + lastUpdate: 0, } try { @@ -200,6 +201,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: '/'}); }