X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/70f40902039374237390366dd06319fed5c45ee7..94ecd7a5d671af98be2ec7cf33605ae4d42c251a:/project/static/js/editor.js 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: '/'}); }