label-important to label-danger

This commit is contained in:
psychobunny
2013-08-24 00:43:03 +08:00
parent a008cf971d
commit 8be896aebb
9 changed files with 15 additions and 15 deletions

View File

@@ -221,10 +221,10 @@ $(document).ready(function() {
passwordvalid = utils.isPasswordValid(password.val());
if (password.val().length < 6) {
password_notify.html('Password too short');
password_notify.attr('class', 'label label-important');
password_notify.attr('class', 'label label-danger');
} else if(!passwordvalid) {
password_notify.html('Invalid password');
password_notify.attr('class', 'label label-important');
password_notify.attr('class', 'label label-danger');
} else {
password_notify.html('OK!');
password_notify.attr('class', 'label label-success');
@@ -236,7 +236,7 @@ $(document).ready(function() {
function onPasswordConfirmChanged() {
if(password.val() !== password_confirm.val()) {
password_confirm_notify.html('Passwords must match!');
password_confirm_notify.attr('class', 'label label-important');
password_confirm_notify.attr('class', 'label label-danger');
passwordsmatch = false;
} else {
password_confirm_notify.html('OK!');