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