fixed blacklist loading sheet
parent
00b35ddd9d
commit
737eec432a
|
@ -282,9 +282,10 @@ var BlackListListView = Backbone.View.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#loadingbox').sheet('show');
|
$('#loadingbox').sheet('show');
|
||||||
$('#loading').html('blacklist');
|
$('#loading').html('<span class="label" id="loading-blacklist">Blacklist</span> ');
|
||||||
|
|
||||||
$.when(this.model.fetchIfNeeded()).done(function() {
|
$.when(this.model.fetchIfNeeded()).done(function() {
|
||||||
|
$('#loading-blacklist').addClass('label-success');
|
||||||
$('#loadingbox').sheet('hide');
|
$('#loadingbox').sheet('hide');
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
@ -298,7 +299,7 @@ var BlackListListView = Backbone.View.extend({
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var _self = this;
|
var _self = this;
|
||||||
$('#loadingbox').sheet('show');
|
$('#loadingbox').sheet('show');
|
||||||
$('#loading').html('blacklist');
|
$('#loading').html('<span class="label" id="loading-scopes">Blacklist</span> ');
|
||||||
|
|
||||||
$.when(this.model.fetch()).done(function() {
|
$.when(this.model.fetch()).done(function() {
|
||||||
$('#loadingbox').sheet('hide');
|
$('#loadingbox').sheet('hide');
|
||||||
|
|
Loading…
Reference in New Issue