X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8fabff2f05c0e1a5a3075d2e5f4293fa29029c3a..20bd2492d8bd211816c5120595b19a0a828b9f0c:/project/static/js/editor.js diff --git a/project/static/js/editor.js b/project/static/js/editor.js index a3d96593..f9f09003 100644 --- a/project/static/js/editor.js +++ b/project/static/js/editor.js @@ -51,6 +51,7 @@ Panel.prototype.load = function (url) { }, error: function(request, textStatus, errorThrown) { $.log('ajax', url, this.target, 'error:', textStatus, errorThrown); + $(self.contentDiv).html("

Wystapił błąd podczas wczytywania panelu."); } }); } @@ -262,7 +263,7 @@ Editor.prototype.onContentChanged = function(event, data) { $('#toolbar-button-commit').attr('disabled', 'disabled'); if(this.autosaveTimer) return; - this.autosaveTimer = setTimeout( function() { self.autoSave(); }, 5000 ); + this.autosaveTimer = setTimeout( function() { self.autoSave(); }, 300000 ); }; Editor.prototype.refreshPanels = function(goodPanel) {