mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-06 10:05:35 +00:00
update the stored option in the onFieldChange event handler
This commit is contained in:
parent
2debe69e34
commit
33ac5beba5
2 changed files with 3 additions and 2 deletions
|
@ -75,6 +75,7 @@ Deluge.OptionsManager = Ext.extend(Ext.util.Observable, {
|
||||||
|
|
||||||
switch (field.getXType()) {
|
switch (field.getXType()) {
|
||||||
case 'checkbox':
|
case 'checkbox':
|
||||||
|
case 'radiogroup':
|
||||||
field.on('check', this.onFieldChange, this);
|
field.on('check', this.onFieldChange, this);
|
||||||
break;
|
break;
|
||||||
case 'uxspinner':
|
case 'uxspinner':
|
||||||
|
@ -236,7 +237,7 @@ Deluge.OptionsManager = Ext.extend(Ext.util.Observable, {
|
||||||
*/
|
*/
|
||||||
onFieldChange: function(field) {
|
onFieldChange: function(field) {
|
||||||
var option = this.binds[field];
|
var option = this.binds[field];
|
||||||
//alert(option);
|
this.updateOption(this.currentId, option, field.getValue());
|
||||||
},
|
},
|
||||||
|
|
||||||
onChange: function(id, option, newValue, oldValue) {
|
onChange: function(id, option, newValue, oldValue) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue