label-important to label-danger

v1.18.x
psychobunny 12 years ago
parent a008cf971d
commit 8be896aebb

@ -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!');

@ -169,14 +169,14 @@
if(data && data.length === 0) {
$('#user-notfound-notify').html('User not found!')
.show()
.addClass('label-important')
.addClass('label-danger')
.removeClass('label-success');
}
else {
$('#user-notfound-notify').html(data.length + ' user'+(data.length>1?'s':'') + ' found!')
.show()
.addClass('label-success')
.removeClass('label-important');
.removeClass('label-danger');
}
initUsers();

@ -41,7 +41,7 @@
if(data === null) {
$('#user-notfound-notify').html('You need to be logged in to search!')
.show()
.addClass('label-important')
.addClass('label-danger')
.removeClass('label-success');
return;
}
@ -57,14 +57,14 @@
if(data && data.length === 0) {
$('#user-notfound-notify').html('User not found!')
.show()
.addClass('label-important')
.addClass('label-danger')
.removeClass('label-success');
}
else {
$('#user-notfound-notify').html(data.length + ' user'+(data.length>1?'s':'') + ' found!')
.show()
.addClass('label-success')
.removeClass('label-important');
.removeClass('label-danger');
}
});

@ -8,7 +8,7 @@ define(['taskbar'], function(taskbar) {
};
function createImageLabel(img, postImages) {
var imageLabel = $('<div class="label"><span>'+ img.name +'</span></div>');
var imageLabel = $('<div class="label label-primary"><span>'+ img.name +'</span></div>');
var closeButton = $('<button class="close">&times;</button>');
closeButton.on('click', function(e) {

@ -16,7 +16,7 @@
<span><i class="icon-circle-blank"></i> <span>offline</span></span>
</div>
<div class="{show_banned}">
<span class="label label-important">banned</span>
<span class="label label-danger">banned</span>
</div>
<div id="user-actions">
<a id="follow-btn" href="#" class="btn hide">Follow</a>

@ -140,14 +140,14 @@
<div class="control-group">
<label class="control-label" for="inputNewPassword">Password</label>
<div class="controls">
<input type="password" id="inputNewPassword" placeholder="New Password" value=""><br/><span id="password-notify" class="label label-important"></span>
<input type="password" id="inputNewPassword" placeholder="New Password" value=""><br/><span id="password-notify" class="label label-danger"></span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputNewPasswordAgain">Confirm Password</label>
<div class="controls">
<input type="password" id="inputNewPasswordAgain" placeholder="Confirm Password" value=""><br/><span id="password-confirm-notify" class="label label-important"></span>
<input type="password" id="inputNewPasswordAgain" placeholder="Confirm Password" value=""><br/><span id="password-confirm-notify" class="label label-danger"></span>
</div>
</div>

@ -11,7 +11,7 @@
<div class="search {search_display} well">
<input id="search-user" type="text" placeholder="Enter a username to search"/><br />
<i class="icon-spinner icon-spin none"></i>
<span id="user-notfound-notify" class="label label-important hide">User not found!</span><br/>
<span id="user-notfound-notify" class="label label-danger hide">User not found!</span><br/>
</div>
<ul id="users-container" class="users">

@ -85,7 +85,7 @@
<i class="icon-star"></i><span class="user_rep_{posts.uid} formatted-number">{posts.user_rep}</span>
<div id="ids_{posts.pid}_{posts.uid}" class="chat hidden-xs" title="Chat"><i class="icon-comment"></i></div>
</div>
<span class="label label-important {posts.show_banned}">banned</span>
<span class="label label-danger {posts.show_banned}">banned</span>
</div>
<div class="span11 col-md-12-tablet">
<div class="post-block speech-bubble">

@ -11,7 +11,7 @@
<div class="search {search_display} well">
<input id="search-user" type="text" placeholder="Enter a username to search"/><br />
<i class="icon-spinner icon-spin none"></i>
<span id="user-notfound-notify" class="label label-important hide">User not found!</span><br/>
<span id="user-notfound-notify" class="label label-danger hide">User not found!</span><br/>
</div>
<ul id="users-container" class="users">

Loading…
Cancel
Save