forked from 0x2620/oxjs
updating form elements
This commit is contained in:
parent
8550cc8442
commit
73f1105692
13 changed files with 305 additions and 140 deletions
|
|
@ -115,11 +115,7 @@ Ox.FormElementGroup = function(options, self) {
|
|||
|
||||
that.value = function() {
|
||||
var values = self.options.elements.map(function(element) {
|
||||
var ret = null;
|
||||
['checked', 'selected', 'value'].forEach(function(v) {
|
||||
element[v] && (ret = element[v]());
|
||||
});
|
||||
return ret;
|
||||
return element.value();
|
||||
});
|
||||
return self.options.joinValues
|
||||
? self.options.joinValues(values)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue