update the stored option in the onFieldChange event handler

This commit is contained in:
Damien Churchill 2009-06-23 23:20:11 +00:00
parent 2debe69e34
commit 33ac5beba5
2 changed files with 3 additions and 2 deletions

View File

@ -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