Use "danger" class instead of "warning" for error messages

This commit is contained in:
James Wang 2016-01-02 13:26:02 -05:00
parent 16733cc00a
commit 9b50731b9b
2 changed files with 2 additions and 2 deletions

View file

@ -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");});
}
});
}

View file

@ -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();
}
});