1 /* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
2 and is published under the AGPL license. */
4 document.observe("dom:loaded", function() {
5 var form = $("loginform");
8 form.observe("submit", function(evt) {
9 var loginput = $("login_user");
10 $$('.error').invoke('remove');
12 if (!loginput.check(function() { return !this.value.strip().empty(); }, SyjStrings.userEmptyWarn)) {
13 loginput.highlight('#F08080').activate();