ln8r
2 Jun 2011, 3:14 PM
The "last updated" text in the Pull Refresh plugin doesn't seem to update. I managed to fix this by changing the onLoadComplete function in PullRefresh.js to include the following new line:
onLoadComplete: function() {
var me = this;
if (this.isLoading) {
this.isLoading = false;
this.lastUpdated = new Date(); //this is the fix
this.setViewState('pull');
this.updatedEl.setHTML(Ext.util.Format.date(this.lastUpdated, "m/d/Y h:iA"));
setTimeout(function() {
me.scroller.updateBoundary(me.snappingAnimationDuration);
}, 100);
}
}
Apologies if this has already been reported. I did attempt a search.
onLoadComplete: function() {
var me = this;
if (this.isLoading) {
this.isLoading = false;
this.lastUpdated = new Date(); //this is the fix
this.setViewState('pull');
this.updatedEl.setHTML(Ext.util.Format.date(this.lastUpdated, "m/d/Y h:iA"));
setTimeout(function() {
me.scroller.updateBoundary(me.snappingAnimationDuration);
}, 100);
}
}
Apologies if this has already been reported. I did attempt a search.