summaryrefslogtreecommitdiffstats
path: root/deluge/ui/web/js/deluge-all/EditTrackerWindow.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-19 15:05:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-19 16:15:47 +0000
commitb686174b07bd56af4e5ffaa23c24f27f417fc305 (patch)
tree1ce335620d99341d94e88c159c0b9b0f6f0de5a0 /deluge/ui/web/js/deluge-all/EditTrackerWindow.js
parentAdding debian version 2.0.3-4. (diff)
downloaddeluge-b686174b07bd56af4e5ffaa23c24f27f417fc305.tar.xz
deluge-b686174b07bd56af4e5ffaa23c24f27f417fc305.zip
Merging upstream version 2.1.1 (Closes: #1026291).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'deluge/ui/web/js/deluge-all/EditTrackerWindow.js')
-rw-r--r--deluge/ui/web/js/deluge-all/EditTrackerWindow.js25
1 files changed, 8 insertions, 17 deletions
diff --git a/deluge/ui/web/js/deluge-all/EditTrackerWindow.js b/deluge/ui/web/js/deluge-all/EditTrackerWindow.js
index 82bc32c..646b8de 100644
--- a/deluge/ui/web/js/deluge-all/EditTrackerWindow.js
+++ b/deluge/ui/web/js/deluge-all/EditTrackerWindow.js
@@ -27,7 +27,7 @@ Deluge.EditTrackerWindow = Ext.extend(Ext.Window, {
closeAction: 'hide',
iconCls: 'x-deluge-edit-trackers',
- initComponent: function() {
+ initComponent: function () {
Deluge.EditTrackerWindow.superclass.initComponent.call(this);
this.addButton(_('Cancel'), this.onCancelClick, this);
@@ -50,32 +50,23 @@ Deluge.EditTrackerWindow = Ext.extend(Ext.Window, {
});
},
- show: function(record) {
+ show: function (record) {
Deluge.EditTrackerWindow.superclass.show.call(this);
this.record = record;
- this.form
- .getForm()
- .findField('tracker')
- .setValue(record.data['url']);
+ this.form.getForm().findField('tracker').setValue(record.data['url']);
},
- onCancelClick: function() {
+ onCancelClick: function () {
this.hide();
},
- onHide: function() {
- this.form
- .getForm()
- .findField('tracker')
- .setValue('');
+ onHide: function () {
+ this.form.getForm().findField('tracker').setValue('');
},
- onSaveClick: function() {
- var url = this.form
- .getForm()
- .findField('tracker')
- .getValue();
+ onSaveClick: function () {
+ var url = this.form.getForm().findField('tracker').getValue();
this.record.set('url', url);
this.record.commit();
this.hide();