Use "danger" class instead of "warning" for error messages
This commit is contained in:
parent
16733cc00a
commit
9b50731b9b
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ function login(email, password) {
|
|||
display_message("status", "success", "Success!", function() {$("#login").removeAttr("disabled");});
|
||||
// wait then redirect or whatever
|
||||
} else {
|
||||
display_message("status", "warning", data.message, function() {$("#login").removeAttr("disabled");});
|
||||
display_message("status", "danger", data.message, function() {$("#login").removeAttr("disabled");});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ function register(name, username, password, password_confirm, email, captcha_res
|
|||
display_message("status", "success", "Success!", function() {$("#register").removeAttr("disabled")});
|
||||
// wait then redirect or whatever
|
||||
} else {
|
||||
display_message("status", "warning", data.message, function() {$("#register").removeAttr("disabled")});
|
||||
display_message("status", "danger", data.message, function() {$("#register").removeAttr("disabled")});
|
||||
grecaptcha.reset();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue