X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-ui-debug.js;h=f7ccb4bad7babb861d87f3ab735eae290604473c;hb=5344d97355040aaebaad2e3f2a12a4961736c373;hp=6e488cd02b944d202065eb1049632a6738023fe7;hpb=6687379e0b1cb0a7ea1a497a972b7b167be763c4;p=roojs1 diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 6e488cd02b..f7ccb4bad7 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -24599,7 +24599,26 @@ Roo.extend(Roo.form.BasicForm, Roo.util.Observable, { return valid; }, - + /** + * Returns array of invalid form fields. + * @return Array + */ + + invalidFields : function() + { + var ret = []; + this.items.each(function(f){ + if(f.validate()){ + return; + } + ret.push(f); + + }); + + return ret; + }, + + /** * DEPRICATED Returns true if any fields in this form have changed since their original load. * @return Boolean