form elements rewrite, part 2
This commit is contained in:
parent
fe303bf2b0
commit
074902d079
33 changed files with 163 additions and 153 deletions
|
|
@ -149,7 +149,7 @@ Ox.Form = function(options, self) {
|
|||
self.$items.forEach(function($item, i) {
|
||||
values[self.itemIds[i]] = self.$items[i].value();
|
||||
//fixme: make the following work
|
||||
//values[self.itemIds[i]] = self.$items[i].options('value');
|
||||
//values[self.itemIds[i]] = self.$items[i].value();
|
||||
});
|
||||
//Ox.Log('Form', 'VALUES', values)
|
||||
return values;
|
||||
|
|
@ -158,7 +158,7 @@ Ox.Form = function(options, self) {
|
|||
Ox.forEach(arguments[0], function(value, key) {
|
||||
var index = getItemIndexById(key);
|
||||
//index > -1 && Ox.Log('Form', ':::::::', key, value)
|
||||
index > -1 && self.options.items[index].options({value: value});
|
||||
index > -1 && self.options.items[index].value(value);
|
||||
});
|
||||
return that;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue