From 754035c722b3edaf6d8c12c0d746a963a17233b9 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 25 Jan 2013 01:12:48 +0000 Subject: [PATCH] Fix #2261 : WebUI: Proxy settings not being saved --- .../web/js/deluge-all/preferences/ProxyField.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/preferences/ProxyField.js b/deluge/ui/web/js/deluge-all/preferences/ProxyField.js index 811372128..fe969b9ba 100644 --- a/deluge/ui/web/js/deluge-all/preferences/ProxyField.js +++ b/deluge/ui/web/js/deluge-all/preferences/ProxyField.js @@ -1,6 +1,6 @@ /*! * Deluge.preferences.ProxyField.js - * + * * Copyright (c) Damien Churchill 2009-2010 * * This program is free software; you can redistribute it and/or modify @@ -58,19 +58,23 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, { [3, _('Socksv5 with Auth')], [4, _('HTTP')], [5, _('HTTP with Auth')] - ] - }), + ] + }), editable: false, triggerAction: 'all', valueField: 'id', displayField: 'text' }); + this.proxyType.on('change', this.onFieldChange, this); + this.proxyType.on('select', this.onTypeSelect, this); + this.hostname = this.add({ xtype: 'textfield', name: 'hostname', fieldLabel: _('Host'), width: 220 }); + this.hostname.on('change', this.onFieldChange, this); this.port = this.add({ xtype: 'spinnerfield', @@ -81,6 +85,7 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, { minValue: -1, maxValue: 99999 }); + this.port.on('change', this.onFieldChange, this); this.username = this.add({ xtype: 'textfield', @@ -88,6 +93,7 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, { fieldLabel: _('Username'), width: 220 }); + this.username.on('change', this.onFieldChange, this); this.password = this.add({ xtype: 'textfield', @@ -96,9 +102,8 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, { inputType: 'password', width: 220 }); + this.password.on('change', this.onFieldChange, this); - this.proxyType.on('change', this.onFieldChange, this); - this.proxyType.on('select', this.onTypeSelect, this); this.setting = false; },