X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a48175e69474b76a9aa2443ec7b2e8e9d68df1aa..b264c171a5885976ef8f077be37e7cc83bf8a0fd:/project/static/js/lib/codemirror/undo.js diff --git a/project/static/js/lib/codemirror/undo.js b/project/static/js/lib/codemirror/undo.js index 1930cfbd..5f717a9e 100644 --- a/project/static/js/lib/codemirror/undo.js +++ b/project/static/js/lib/codemirror/undo.js @@ -146,7 +146,7 @@ History.prototype = { // Commit unless there are pending dirty nodes. tryCommit: function() { if (!window.History) return; // Stop when frame has been unloaded - if (this.editor.highlightDirty()) this.commit(); + if (this.editor.highlightDirty()) this.commit(true); else this.scheduleCommit(); },