cleanup and upgrade

This commit is contained in:
DOHA 2016-01-09 22:22:58 +02:00
parent 5154c5ba88
commit f060700cec
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>
<script type="text/javascript">
function validate() {
if (document.f.j_username.value == ""
&& document.f.j_password.value == "") {
if (document.f.username.value == ""
&& document.f.password.value == "") {
alert("${noUser} & ${noPass}");
document.f.j_username.focus();
document.f.username.focus();
return false;
}
if (document.f.j_username.value == "") {
if (document.f.username.value == "") {
alert("${noUser}");
document.f.j_username.focus();
document.f.username.focus();
return false;
}
if (document.f.j_password.value == "") {
if (document.f.password.value == "") {
alert("${noPass}");
document.f.j_password.focus();
document.f.password.focus();
return false;
}
}