style : 'padding-right:6px;',
href : 'javascript:void(0);',
onclick : function() {
- self.resetStore();
self.cachedQueryOpts.offset = self.displayOffset -= self.displayLimit;
if(self.displayOffset < 0)
self.cachedQueryOpts.offset = self.displayOffset = 0;
- if(self.dataLoader)
- self.dataLoader()
- else
- self.loadAll(self.cachedQueryOpts, self.cachedQuerySearch);
+ self.refresh();
}
});
style : 'padding-right:6px;',
href : 'javascript:void(0);',
onclick : function() {
- self.resetStore();
self.cachedQueryOpts.offset = self.displayOffset += self.displayLimit;
- if(self.dataLoader)
- self.dataLoader()
- else
- self.loadAll(self.cachedQueryOpts, self.cachedQuerySearch);
+ self.refresh();
}
});
this.setStore(this.buildAutoStore());
},
+ refresh : function() {
+ this.resetStore();
+ if (this.dataLoader)
+ this.dataLoader()
+ else
+ this.loadAll(this.cachedQueryOpts, this.cachedQuerySearch);
+ },
+
loadAll : function(opts, search) {
dojo.require('openils.PermaCrud');
if(this.loadProgressIndicator)