forked from 0x2620/oxjs
use new form element syntax, continued
This commit is contained in:
parent
e47305c93f
commit
02f53a57c1
15 changed files with 107 additions and 88 deletions
|
|
@ -45,7 +45,7 @@ Ox.Form = function(options, self) {
|
|||
self.itemIsValid[i] = data.valid;
|
||||
});
|
||||
} else {
|
||||
self.itemIsValid[i] = item.value().length > 0;
|
||||
self.itemIsValid[i] = item.value !== '';
|
||||
}
|
||||
self.itemIds[i] = item.options('id') || item.id;
|
||||
self.$items[i] = Ox.FormItem({element: item}).appendTo(that);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue