From 3dd811118b8168c78704c7271ca4e9c3e3be5079 Mon Sep 17 00:00:00 2001 From: zuber Date: Mon, 28 Sep 2009 11:12:36 +0200 Subject: [PATCH 1/1] =?utf8?q?Dodanie=20akcji=20do=20przycisk=C3=B3w=20Upd?= =?utf8?q?ate,=20Commit=20i=20Quick=20Save=20(na=20razie=20pustych).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- project/static/js/views/editor.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/project/static/js/views/editor.js b/project/static/js/views/editor.js index b3c9563b..cd1c4865 100644 --- a/project/static/js/views/editor.js +++ b/project/static/js/views/editor.js @@ -8,5 +8,28 @@ var EditorView = View.extend({ init: function(element, model, template) { this._super(element, model, template); this.model.load(); + + $('#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)); + }, + + quickSave: function(event) { + console.log('quickSave'); + }, + + commit: function(event) { + console.log('commit'); + }, + + update: function(event) { + console.log('update'); + }, + + dispose: function() { + $('#action-quick-save', this.element).unbind('click.editorview'); + $('#action-commit', this.element).unbind('click.editorview'); + $('#action-update', this.element).unbind('click.editorview'); + this._super(); } }); -- 2.20.1