Commit a5b93417 authored by Van's avatar Van

fixed #282

parent 43a9dd83
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
return; return;
} }
if ($("#userPassword").val().replace(/\s/g, "") === "") { if ($("#userPassword").val() === "") {
$("#tip").text("${passwordEmptyLabel}"); $("#tip").text("${passwordEmptyLabel}");
$("#userPassword").focus(); $("#userPassword").focus();
return; return;
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
} else if (2 > userName.length || userName.length > 20) { } else if (2 > userName.length || userName.length > 20) {
$("#tip").text("${nameTooLongLabel}"); $("#tip").text("${nameTooLongLabel}");
$("#userName").focus(); $("#userName").focus();
} else if ($("#userPassword").val().replace(/\s/g, "") === "") { } else if ($("#userPassword").val() === "") {
$("#tip").text("${passwordEmptyLabel}"); $("#tip").text("${passwordEmptyLabel}");
$("#userPassword").focus(); $("#userPassword").focus();
} else if ($("#userPassword").val() !== $("#userPasswordConfirm").val()) { } else if ($("#userPassword").val() !== $("#userPasswordConfirm").val()) {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment