Revision: 23910
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 16, 2010 15:53 by theshoveller
Initial Code
if (Ext && Ext.form.VTypes) { var email = /^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,4}$/; Ext.apply(Ext.form.VTypes, { EmailList: function(val) { var addrs = val.split(','); var idx = Ext.each(addrs, function(item) { return email.test(item.trim()); }); return !Ext.type(idx); }, EmailListText: 'Not a valid email address or comma separated list of email addresses.' }); }
Initial URL
Initial Description
Initial Title
Adding an ExtJS VType of EmailList
Initial Tags
Initial Language
JavaScript