summaryrefslogtreecommitdiffstats
path: root/deluge/ui/web/js/deluge-all/preferences/ProxyField.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-19 15:05:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-19 15:05:49 +0000
commitd395bd510fa4f4376dc5237ab2f8d190a920d35d (patch)
tree3e3b16b44064938be801aede14381562bae14f6a /deluge/ui/web/js/deluge-all/preferences/ProxyField.js
parentAdding upstream version 2.0.3. (diff)
downloaddeluge-d395bd510fa4f4376dc5237ab2f8d190a920d35d.tar.xz
deluge-d395bd510fa4f4376dc5237ab2f8d190a920d35d.zip
Adding upstream version 2.1.1.upstream/2.1.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'deluge/ui/web/js/deluge-all/preferences/ProxyField.js')
-rw-r--r--deluge/ui/web/js/deluge-all/preferences/ProxyField.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/deluge/ui/web/js/deluge-all/preferences/ProxyField.js b/deluge/ui/web/js/deluge-all/preferences/ProxyField.js
index 6d500ba..d3bb0bf 100644
--- a/deluge/ui/web/js/deluge-all/preferences/ProxyField.js
+++ b/deluge/ui/web/js/deluge-all/preferences/ProxyField.js
@@ -18,7 +18,7 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
autoHeight: true,
labelWidth: 70,
- initComponent: function() {
+ initComponent: function () {
Deluge.preferences.ProxyField.superclass.initComponent.call(this);
this.proxyType = this.add({
xtype: 'combo',
@@ -145,11 +145,11 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
this.setting = false;
},
- getName: function() {
+ getName: function () {
return this.initialConfig.name;
},
- getValue: function() {
+ getValue: function () {
return {
type: this.proxyType.getValue(),
hostname: this.hostname.getValue(),
@@ -165,7 +165,7 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
},
// Set the values of the proxies
- setValue: function(value) {
+ setValue: function (value) {
this.setting = true;
this.proxyType.setValue(value['type']);
var index = this.proxyType.getStore().find('id', value['type']);
@@ -185,7 +185,7 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
this.setting = false;
},
- onFieldChange: function(field, newValue, oldValue) {
+ onFieldChange: function (field, newValue, oldValue) {
if (this.setting) return;
var newValues = this.getValue();
var oldValues = Ext.apply({}, newValues);
@@ -194,7 +194,7 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
this.fireEvent('change', this, newValues, oldValues);
},
- onTypeSelect: function(combo, record, index) {
+ onTypeSelect: function (combo, record, index) {
var typeId = record.get('id');
if (typeId > 0) {
this.hostname.show();