1
0
Fork 0
forked from 0x2620/oxjs

change autovalidate function for input elements so that it returns, along with the new value, a valid flag that indicates if the value is already valid

This commit is contained in:
rlx 2011-10-22 14:50:31 +00:00
commit cfc5baef61
4 changed files with 23 additions and 14 deletions

View file

@ -36,10 +36,11 @@ Ox.FormElementGroup = function(options, self) {
float: self.options.float // fixme: make this a class
})
.bindEvent({
autovalidate: function(data) {
that.triggerEvent({autovalidate: data});
},
validate: function(data) {
that.triggerEvent({
validate: data
});
that.triggerEvent({validate: data});
}
})
.appendTo(that);