X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/470817c5149ca294bd929fb29632a91c985aef0a..bc0fad2273183ef161248876a961dd31e4b250fb:/project/static/js/editor.js 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]);