Fix jquery 404 on /register

This commit is contained in:
Calvin Montgomery 2017-08-19 16:13:15 -07:00
parent ae7098085c
commit 9f0444a962
1 changed files with 2 additions and 3 deletions

View File

@ -56,8 +56,7 @@ html(lang="en")
strong Registration Successful strong Registration Successful
p Thanks for registering, #{registerName}! Now you can <a href="/login">Login</a> to use your account. p Thanks for registering, #{registerName}! Now you can <a href="/login">Login</a> to use your account.
include footer include footer
+footer() +footer()
script(src="/js/jquery.js")
script(type="text/javascript"). script(type="text/javascript").
function verify() { function verify() {
var valid = checkUsername(); var valid = checkUsername();
@ -78,7 +77,7 @@ html(lang="en")
stateError('Username must not be empty') stateError('Username must not be empty')
return false; return false;
} else if (!(/^[-\w\u00c0-\u00ff]{1,20}$/).test(name)) { } else if (!(/^[-\w\u00c0-\u00ff]{1,20}$/).test(name)) {
stateError("Username must consist of 1-20 characters" + stateError("Username must consist of 1-20 characters" +
" a-Z, A-Z, 0-9, -, or _."); " a-Z, A-Z, 0-9, -, or _.");
return false; return false;
} else { } else {