mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
allow setting of the value without firing an event
This commit is contained in:
parent
000297dc95
commit
d1f52a7051
1 changed files with 30 additions and 27 deletions
|
@ -777,12 +777,11 @@ Ext.override(Ext.form.RadioGroup, {
|
|||
|
||||
getValue: function() {
|
||||
var v;
|
||||
|
||||
this.items.each(function(item) {
|
||||
v = item.getRawValue();
|
||||
return !item.getValue();
|
||||
});
|
||||
|
||||
v = this.items.first().getGroupValue();
|
||||
//this.items.each(function(item) {
|
||||
// v = item.getRawValue();
|
||||
// return !item.getValue();
|
||||
//});
|
||||
return v;
|
||||
},
|
||||
|
||||
|
@ -790,7 +789,11 @@ Ext.override(Ext.form.RadioGroup, {
|
|||
if (!this.items.each) return;
|
||||
this.items.each(function(item) {
|
||||
var checked = (item.el.getValue() == String(v));
|
||||
item.setValue(checked);
|
||||
if (item.rendered) {
|
||||
item.el.dom.checked = checked;
|
||||
item.el.dom.defaultChecked = checked;
|
||||
item.wrap[checked ? 'addClass' : 'removeClass'](item.checkedCls);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue