]> dev.renevier.net Git - syj.git/blobdiff - public/js/login.js
allow anonymous routes creation
[syj.git] / public / js / login.js
index 44d8e080734c868b8a02137aed5658e94f105ed3..ee9dd9ca6f0043d4fd9993f2661f38a2caa093f2 100644 (file)
@@ -6,9 +6,11 @@ document.observe("dom:loaded", function() {
     form.focus();
 
     form.observe("submit", function(evt) {
+        var loginput = $("login_user");
         $$('.error').invoke('remove');
 
-        if (!$("login_user").check(function() { return !this.value.strip().empty(); }, SyjStrings.userEmptyWarn)) {
+        if (!loginput.check(function() { return !this.value.strip().empty(); }, SyjStrings.userEmptyWarn)) {
+            loginput.highlight('#F08080').activate();
             evt.stop();
             return;
         }