skip cache on table refresh
parent
200b332dc6
commit
70b9ac36b1
|
@ -290,7 +290,7 @@ var BlackListListView = Backbone.View.extend({
|
||||||
$('#loadingbox').sheet('show');
|
$('#loadingbox').sheet('show');
|
||||||
$('#loading').html('blacklist');
|
$('#loading').html('blacklist');
|
||||||
|
|
||||||
$.when(this.model.fetchIfNeeded()).done(function() {
|
$.when(this.model.fetch()).done(function() {
|
||||||
$('#loadingbox').sheet('hide');
|
$('#loadingbox').sheet('hide');
|
||||||
_self.render();
|
_self.render();
|
||||||
});
|
});
|
||||||
|
|
|
@ -300,11 +300,15 @@ var ClientListView = Backbone.View.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
refreshTable:function() {
|
refreshTable:function() {
|
||||||
|
$('#loadingbox').sheet('show');
|
||||||
|
$('#loading').html('clients');
|
||||||
|
|
||||||
var _self = this;
|
var _self = this;
|
||||||
$.when(this.model.fetchIfNeeded(),
|
$.when(this.model.fetch(),
|
||||||
this.options.whiteListList.fetchIfNeeded(),
|
this.options.whiteListList.fetch(),
|
||||||
this.options.stats.fetchIfNeeded(),
|
this.options.stats.fetch(),
|
||||||
this.options.systemScopeList.fetchIfNeeded()).done(function() {
|
this.options.systemScopeList.fetch()).done(function() {
|
||||||
|
$('#loadingbox').sheet('hide');
|
||||||
_self.render();
|
_self.render();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,9 +108,9 @@ var WhiteListListView = Backbone.View.extend({
|
||||||
$('#loadingbox').sheet('show');
|
$('#loadingbox').sheet('show');
|
||||||
$('#loading').html('whitelist');
|
$('#loading').html('whitelist');
|
||||||
|
|
||||||
$.when(this.model.fetchIfNeeded(),
|
$.when(this.model.fetch(),
|
||||||
this.options.clientList.fetchIfNeeded(),
|
this.options.clientList.fetch(),
|
||||||
this.options.systemScopeList.fetchIfNeeded()).done(function() {
|
this.options.systemScopeList.fetch()).done(function() {
|
||||||
$('#loadingbox').sheet('hide');
|
$('#loadingbox').sheet('hide');
|
||||||
_self.render();
|
_self.render();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue