X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=public%2Fjs%2Faccount.js;h=ae4e3ecc213e5645bbddc22aac5a2b8379933864;hp=f6e204a29339816e71bc80565bcd17cea1052f51;hb=9efd079d59d269811abc4c551b2f39ab2e6a05fb;hpb=aa1b3365fcf3d78fbe20166a03fc92fab3928708 diff --git a/public/js/account.js b/public/js/account.js index f6e204a..ae4e3ec 100644 --- a/public/js/account.js +++ b/public/js/account.js @@ -30,7 +30,7 @@ document.observe("dom:loaded", function() { if (!errorElements.length) { control = $("account_password"); - if (control.check(function() { + if (!control.check(function() { return this.value === $("account_password_confirm").value; }, SyjStrings.passwordNoMatchWarn)) { errorElements.push(control); @@ -50,7 +50,7 @@ document.observe("dom:loaded", function() { * if there are errors, cancel submission */ if (errorElements.length) { - errorElements[0].focus(); + errorElements[0].highlight('#F08080').focus(); errorElements[0].select(); evt.stop(); }