fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git@stigma:platforma
[redakcja.git]
/
project
/
static
/
js
/
editor.js
diff --git
a/project/static/js/editor.js
b/project/static/js/editor.js
index
a3d9659
..
f9f0900
100644
(file)
--- 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);
},
error: function(request, textStatus, errorThrown) {
$.log('ajax', url, this.target, 'error:', textStatus, errorThrown);
+ $(self.contentDiv).html("<p>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;
$('#toolbar-button-commit').attr('disabled', 'disabled');
if(this.autosaveTimer) return;
- this.autosaveTimer = setTimeout( function() { self.autoSave(); },
5
000 );
+ this.autosaveTimer = setTimeout( function() { self.autoSave(); },
300
000 );
};
Editor.prototype.refreshPanels = function(goodPanel) {
};
Editor.prototype.refreshPanels = function(goodPanel) {