X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/d810a9340ec7f203753fde341321c76ae8cf897a..d96e0c45b35295d3e6012b8e2c93fe42d8d72ca9:/project/static/js/editor.js?ds=inline diff --git a/project/static/js/editor.js b/project/static/js/editor.js index 0cbb9341..f94d33c4 100644 --- a/project/static/js/editor.js +++ b/project/static/js/editor.js @@ -425,7 +425,7 @@ Editor.prototype.saveToBranch = function(msg) if(self.autosaveTimer) { clearTimeout(self.autosaveTimer); } - if (data.warnings === null) { + if (data.warnings === null || data.warning === undefined) { self.showPopup('save-successful'); } else { self.showPopup('save-warn', data.warnings[0]);