skip cache on table refresh

pull/567/head
Justin Richer 2014-03-16 19:40:25 -04:00
parent 200b332dc6
commit 70b9ac36b1
3 changed files with 12 additions and 8 deletions

View File

@ -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();
}); });

View File

@ -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();
}); });
} }

View File

@ -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();
}); });