parent
68580dad72
commit
70a81dd1ee
|
@ -267,6 +267,11 @@ var BlackListListView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
load:function(callback) {
|
||||
if (this.model.isFetched) {
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
|
||||
$('#loadingbox').show();
|
||||
$('#loading').html('blacklist');
|
||||
|
||||
|
|
|
@ -236,6 +236,14 @@ var ClientListView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
load:function(callback) {
|
||||
if (this.model.isFetched &&
|
||||
this.options.whiteListList.isFetched &&
|
||||
this.options.stats.isFetched &&
|
||||
this.options.systemScopeList.isFetched) {
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
|
||||
$('#loadingbox').show();
|
||||
$('#loading').html('clients');
|
||||
|
||||
|
|
|
@ -37,6 +37,13 @@ var ApprovedSiteListView = Backbone.View.extend({
|
|||
initialize:function() { },
|
||||
|
||||
load:function(callback) {
|
||||
if (this.model.isFetched &&
|
||||
this.options.clientList.isFetched &&
|
||||
this.options.systemScopeList.isFetched) {
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
|
||||
$('#loadingbox').show();
|
||||
$('#loading').html('approved sites');
|
||||
|
||||
|
|
|
@ -135,6 +135,11 @@ var SystemScopeListView = Backbone.View.extend({
|
|||
tagName: 'span',
|
||||
|
||||
load:function(callback) {
|
||||
if (this.model.isFetched) {
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
|
||||
$('#loadingbox').show();
|
||||
$('#loading').html('approved sites');
|
||||
|
||||
|
|
|
@ -312,6 +312,14 @@ var TokenListView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
load:function(callback) {
|
||||
if (this.model.access.isFetched &&
|
||||
this.model.refresh.isFetched &&
|
||||
this.options.clientList.isFetched &&
|
||||
this.options.systemScopeList.isFetched) {
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
|
||||
$('#loadingbox').show();
|
||||
$('#loading').html('tokens');
|
||||
|
||||
|
|
|
@ -51,6 +51,13 @@ var WhiteListListView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
load:function(callback) {
|
||||
if (this.model.isFetched &&
|
||||
this.options.clientList.isFetched &&
|
||||
this.options.systemScopeList.isFetched) {
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
|
||||
$('#loadingbox').show();
|
||||
$('#loading').html('whitelist');
|
||||
|
||||
|
|
Loading…
Reference in New Issue