mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
* Api: fix radiobox not return current selected value but the first value
This commit is contained in:
parent
78752738d2
commit
bb60ddd040
@ -132,15 +132,17 @@ var et2_radiobox = (function(){ "use strict"; return et2_inputWidget.extend(
|
||||
getValue: function()
|
||||
{
|
||||
var val = this.options.value; // initial value, when form is loaded
|
||||
var values = [];
|
||||
this.getRoot().iterateOver(function(radio)
|
||||
{
|
||||
values.push(radio.options.set_value);
|
||||
if (radio.id == this.id && radio.input && radio.input.prop('checked'))
|
||||
{
|
||||
val = radio.options.set_value;
|
||||
}
|
||||
}, this, et2_radiobox);
|
||||
|
||||
return val == this.options.set_value ? this.options.set_value : null;
|
||||
return val.indexOf(values) ? val : null;
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user