PDA

View Full Version : [FIXED-117] Pull Refresh: Last updated doesn't update



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.

rdougan
3 Jun 2011, 2:41 PM
Thanks for the bug report.

edspencer
5 Jul 2011, 1:41 PM
Thanks - this is now fixed and will form part of the upcoming 1.1.1 release