mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
fix the cancel button in the edit trackers window
This commit is contained in:
parent
1d2a6f7f0e
commit
ea365bf671
1 changed files with 7 additions and 7 deletions
|
@ -113,8 +113,8 @@ Copyright:
|
||||||
initComponent: function() {
|
initComponent: function() {
|
||||||
Ext.deluge.EditTracker.superclass.initComponent.call(this);
|
Ext.deluge.EditTracker.superclass.initComponent.call(this);
|
||||||
|
|
||||||
this.addButton(_('Cancel'), this.onCancel, this);
|
this.addButton(_('Cancel'), this.onCancelClick, this);
|
||||||
this.addButton(_('Save'), this.onSave, this);
|
this.addButton(_('Save'), this.onSaveClick, this);
|
||||||
this.on('hide', this.onHide, this);
|
this.on('hide', this.onHide, this);
|
||||||
|
|
||||||
this.form = this.add({
|
this.form = this.add({
|
||||||
|
@ -137,7 +137,7 @@ Copyright:
|
||||||
this.form.getForm().findField('tracker').setValue(record.data['url']);
|
this.form.getForm().findField('tracker').setValue(record.data['url']);
|
||||||
},
|
},
|
||||||
|
|
||||||
onCancel: function() {
|
onCancelClick: function() {
|
||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ Copyright:
|
||||||
this.form.getForm().findField('tracker').setValue('');
|
this.form.getForm().findField('tracker').setValue('');
|
||||||
},
|
},
|
||||||
|
|
||||||
onSave: function() {
|
onSaveClick: function() {
|
||||||
var url = this.form.getForm().findField('tracker').getValue();
|
var url = this.form.getForm().findField('tracker').getValue();
|
||||||
this.record.set('url', url);
|
this.record.set('url', url);
|
||||||
this.record.commit();
|
this.record.commit();
|
||||||
|
@ -175,8 +175,8 @@ Copyright:
|
||||||
initComponent: function() {
|
initComponent: function() {
|
||||||
Ext.deluge.EditTrackers.superclass.initComponent.call(this);
|
Ext.deluge.EditTrackers.superclass.initComponent.call(this);
|
||||||
|
|
||||||
this.addButton(_('Cancel'), this.onCancel, this);
|
this.addButton(_('Cancel'), this.onCancelClick, this);
|
||||||
this.addButton(_('Ok'), this.onOk, this);
|
this.addButton(_('Ok'), this.onOkClick, this);
|
||||||
this.addEvents('save');
|
this.addEvents('save');
|
||||||
|
|
||||||
this.on('show', this.onShow, this);
|
this.on('show', this.onShow, this);
|
||||||
|
@ -292,7 +292,7 @@ Copyright:
|
||||||
this.grid.getStore().removeAll();
|
this.grid.getStore().removeAll();
|
||||||
},
|
},
|
||||||
|
|
||||||
onOk: function() {
|
onOkClick: function() {
|
||||||
var trackers = [];
|
var trackers = [];
|
||||||
this.grid.getStore().each(function(record) {
|
this.grid.getStore().each(function(record) {
|
||||||
trackers.push({
|
trackers.push({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue