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