X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3dd811118b8168c78704c7271ca4e9c3e3be5079..51d914bc0007135058a61623a2d057d2a7626a28:/project/static/js/views/editor.js?ds=sidebyside diff --git a/project/static/js/views/editor.js b/project/static/js/views/editor.js index cd1c4865..27b17cbf 100644 --- a/project/static/js/views/editor.js +++ b/project/static/js/views/editor.js @@ -12,10 +12,12 @@ var EditorView = View.extend({ $('#action-quick-save', this.element).bind('click.editorview', this.quickSave.bind(this)); $('#action-commit', this.element).bind('click.editorview', this.commit.bind(this)); $('#action-update', this.element).bind('click.editorview', this.update.bind(this)); + this.freeze('Ładowanie'); }, quickSave: function(event) { console.log('quickSave'); + this.model.quickSave(); }, commit: function(event) {