fixed blacklist loading sheet

pull/612/head
Justin Richer 2014-06-04 13:33:31 -04:00
parent 00b35ddd9d
commit 737eec432a
1 changed files with 3 additions and 2 deletions

View File

@ -282,9 +282,10 @@ var BlackListListView = Backbone.View.extend({
}
$('#loadingbox').sheet('show');
$('#loading').html('blacklist');
$('#loading').html('<span class="label" id="loading-blacklist">Blacklist</span> ');
$.when(this.model.fetchIfNeeded()).done(function() {
$('#loading-blacklist').addClass('label-success');
$('#loadingbox').sheet('hide');
callback();
});
@ -298,7 +299,7 @@ var BlackListListView = Backbone.View.extend({
e.preventDefault();
var _self = this;
$('#loadingbox').sheet('show');
$('#loading').html('blacklist');
$('#loading').html('<span class="label" id="loading-scopes">Blacklist</span> ');
$.when(this.model.fetch()).done(function() {
$('#loadingbox').sheet('hide');