X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=public%2Fjs%2Fcontact.js;h=e41734110f7ca7426ef60a72459c6ef2048c1147;hb=4360d632b91c3e17a776bc9308eba3a3915f7005;hp=1213e6eb5e9c7ef9f04eb11db339a8a5eb3aef39;hpb=9efd079d59d269811abc4c551b2f39ab2e6a05fb;p=syj.git diff --git a/public/js/contact.js b/public/js/contact.js index 1213e6e..e417341 100644 --- a/public/js/contact.js +++ b/public/js/contact.js @@ -10,12 +10,7 @@ document.observe("dom:loaded", function() { $$('.error').invoke('remove'); - errorElements = $$('input:not([type="submit"]),textarea').findAll( - function(elt) { - return (!elt.check(function() { - return !this.value.strip().empty(); - }, SyjStrings.notEmptyField)); - }); + errorElements = this.checkEmptyElements(SyjStrings.notEmptyField); if (!errorElements.length) { control = $("contact_email");