1
0
Fork 0
forked from 0x2620/oxjs

form elements rewrite, part 2

This commit is contained in:
rolux 2011-12-21 21:03:52 +05:30
commit 074902d079
33 changed files with 163 additions and 153 deletions

View file

@ -79,7 +79,7 @@ Ox.FormElementGroup = function(options, self) {
function getValue() {
var value = self.options.elements.map(function($element) {
return $element.options('value');
return $element.value();
});
return self.options.join ? self.options.join(value) : value;
}
@ -93,7 +93,7 @@ Ox.FormElementGroup = function(options, self) {
? self.options.split(self.options.value)
: self.options.value;
values.forEach(function(value, i) {
self.options.elements[i].options({value: value});
self.options.elements[i].value(value);
});
}