cleanup and upgrade

This commit is contained in:
DOHA 2016-01-09 22:22:58 +02:00 committed by David Morley
parent d8a8c1c135
commit 2ee1f4b36b
1 changed files with 7 additions and 7 deletions

View File

@ -15,20 +15,20 @@
<title><spring:message code="label.pages.home.title"></spring:message></title> <title><spring:message code="label.pages.home.title"></spring:message></title>
<script type="text/javascript"> <script type="text/javascript">
function validate() { function validate() {
if (document.f.j_username.value == "" if (document.f.username.value == ""
&& document.f.j_password.value == "") { && document.f.password.value == "") {
alert("${noUser} & ${noPass}"); alert("${noUser} & ${noPass}");
document.f.j_username.focus(); document.f.username.focus();
return false; return false;
} }
if (document.f.j_username.value == "") { if (document.f.username.value == "") {
alert("${noUser}"); alert("${noUser}");
document.f.j_username.focus(); document.f.username.focus();
return false; return false;
} }
if (document.f.j_password.value == "") { if (document.f.password.value == "") {
alert("${noPass}"); alert("${noPass}");
document.f.j_password.focus(); document.f.password.focus();
return false; return false;
} }
} }