X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;ds=sidebyside;f=public%2Fjs%2Faccount.js;h=c19d30ee9abd763a444452884884e49f337f60e7;hb=4360d632b91c3e17a776bc9308eba3a3915f7005;hp=ae4e3ecc213e5645bbddc22aac5a2b8379933864;hpb=9efd079d59d269811abc4c551b2f39ab2e6a05fb;p=syj.git diff --git a/public/js/account.js b/public/js/account.js index ae4e3ec..c19d30e 100644 --- a/public/js/account.js +++ b/public/js/account.js @@ -11,13 +11,7 @@ document.observe("dom:loaded", function() { $$('.error').invoke('remove'); - errorElements = $$('#account_email, #account_password').findAll( - function(elt) { - return (!elt.check(function() { - return !this.value.strip().empty(); - }, SyjStrings.notEmptyField)); - }); - + errorElements = this.checkEmptyElements(SyjStrings.notEmptyField); if (!errorElements.length) { control = $("account_password");