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');
$('#loading').html('blacklist');
$.when(this.model.fetchIfNeeded()).done(function() {
$.when(this.model.fetch()).done(function() {
$('#loadingbox').sheet('hide');
_self.render();
});

View File

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

View File

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