From ea365bf671560b633e087bf4b5f34d1cbf6db435 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Thu, 18 Feb 2010 02:02:32 +0000 Subject: [PATCH] fix the cancel button in the edit trackers window --- deluge/ui/web/js/deluge-all/Deluge.EditTrackers.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/Deluge.EditTrackers.js b/deluge/ui/web/js/deluge-all/Deluge.EditTrackers.js index 4c4c1822a..be5d3644e 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.EditTrackers.js +++ b/deluge/ui/web/js/deluge-all/Deluge.EditTrackers.js @@ -113,8 +113,8 @@ Copyright: initComponent: function() { Ext.deluge.EditTracker.superclass.initComponent.call(this); - this.addButton(_('Cancel'), this.onCancel, this); - this.addButton(_('Save'), this.onSave, this); + this.addButton(_('Cancel'), this.onCancelClick, this); + this.addButton(_('Save'), this.onSaveClick, this); this.on('hide', this.onHide, this); this.form = this.add({ @@ -137,7 +137,7 @@ Copyright: this.form.getForm().findField('tracker').setValue(record.data['url']); }, - onCancel: function() { + onCancelClick: function() { this.hide(); }, @@ -145,7 +145,7 @@ Copyright: this.form.getForm().findField('tracker').setValue(''); }, - onSave: function() { + onSaveClick: function() { var url = this.form.getForm().findField('tracker').getValue(); this.record.set('url', url); this.record.commit(); @@ -175,8 +175,8 @@ Copyright: initComponent: function() { Ext.deluge.EditTrackers.superclass.initComponent.call(this); - this.addButton(_('Cancel'), this.onCancel, this); - this.addButton(_('Ok'), this.onOk, this); + this.addButton(_('Cancel'), this.onCancelClick, this); + this.addButton(_('Ok'), this.onOkClick, this); this.addEvents('save'); this.on('show', this.onShow, this); @@ -292,7 +292,7 @@ Copyright: this.grid.getStore().removeAll(); }, - onOk: function() { + onOkClick: function() { var trackers = []; this.grid.getStore().each(function(record) { trackers.push({