mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-23 09:50:20 +00:00
update the stored option in the onFieldChange event handler
This commit is contained in:
parent
2debe69e34
commit
33ac5beba5
@ -75,6 +75,7 @@ Deluge.OptionsManager = Ext.extend(Ext.util.Observable, {
|
||||
|
||||
switch (field.getXType()) {
|
||||
case 'checkbox':
|
||||
case 'radiogroup':
|
||||
field.on('check', this.onFieldChange, this);
|
||||
break;
|
||||
case 'uxspinner':
|
||||
@ -236,7 +237,7 @@ Deluge.OptionsManager = Ext.extend(Ext.util.Observable, {
|
||||
*/
|
||||
onFieldChange: function(field) {
|
||||
var option = this.binds[field];
|
||||
//alert(option);
|
||||
this.updateOption(this.currentId, option, field.getValue());
|
||||
},
|
||||
|
||||
onChange: function(id, option, newValue, oldValue) {
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user