mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
sort out some whitespace
This commit is contained in:
parent
790a10e317
commit
1edafe2b6c
1 changed files with 16 additions and 17 deletions
|
@ -752,32 +752,31 @@ Ext.reg('fullprogressbar', Ext.ux.FullProgressBar);
|
||||||
Ext.override(Ext.form.RadioGroup, {
|
Ext.override(Ext.form.RadioGroup, {
|
||||||
|
|
||||||
afterRender: function() {
|
afterRender: function() {
|
||||||
var that = this;
|
var that = this;
|
||||||
this.items.each(function(i) {
|
this.items.each(function(i) {
|
||||||
that.relayEvents(i, ['check']);
|
that.relayEvents(i, ['check']);
|
||||||
});
|
});
|
||||||
|
Ext.form.RadioGroup.superclass.afterRender.call(this)
|
||||||
Ext.form.RadioGroup.superclass.afterRender.call(this)
|
},
|
||||||
},
|
|
||||||
|
|
||||||
getName: function() {
|
|
||||||
return this.items.first().getName();
|
|
||||||
},
|
|
||||||
|
|
||||||
getValue: function() {
|
getName: function() {
|
||||||
|
return this.items.first().getName();
|
||||||
|
},
|
||||||
|
|
||||||
|
getValue: function() {
|
||||||
var v;
|
var v;
|
||||||
|
|
||||||
this.items.each(function(item) {
|
this.items.each(function(item) {
|
||||||
v = item.getRawValue();
|
v = item.getRawValue();
|
||||||
return !item.getValue();
|
return !item.getValue();
|
||||||
});
|
});
|
||||||
|
|
||||||
return v;
|
return v;
|
||||||
},
|
},
|
||||||
|
|
||||||
setValue: function(v) {
|
setValue: function(v) {
|
||||||
this.items.each(function(item) {
|
this.items.each(function(item) {
|
||||||
item.setValue((item.getRawValue() === 'true') == v);
|
item.setValue((item.getRawValue() === 'true') == v);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue