-
8 Jan 2013 8:15 AM #1
PullRefresh resetRefreshState() doesn't use pullTpl
PullRefresh resetRefreshState() doesn't use pullTpl
REQUIRED INFORMATION
Ext version tested:- Sencha Touch 2.1, 2.2a (680260429f69af82ac622edec7f037b2ab954ba6)
Description:- PullRefresh resetRefreshState() uses its own message template and ignores set pullTpl.
Code:resetRefreshState: function() { var me = this; me.isRefreshing = false; me.lastUpdated = new Date(); me.setViewState('pull'); me.updatedEl.setHtml(this.getLastUpdatedText() + ' ' + Ext.util.Format.date(me.lastUpdated, "m/d/Y h:iA")); <----hardcoded template and datetime format }
Steps to reproduce the problem:- Use this template, on first pullrefresh date is properly formated (Czech).
Code:<tpl for="."> <div class="x-list-pullrefresh"> <div class="x-list-pullrefresh-arrow"></div> <div class="x-loading-spinner"> <span class="x-loading-top"></span> <span class="x-loading-right"></span> <span class="x-loading-bottom"></span> <span class="x-loading-left"></span> </div> <div class="x-list-pullrefresh-wrap"> <h3 class="x-list-pullrefresh-message">{message}</h3> <div class="x-list-pullrefresh-updated">{lastUpdatedText} {lastUpdated:date("d. m. Y H:i")}</div> </div> </div> </tpl>
The result that was expected:- Datetime in ("d. m. Y H:i") format in second pullrefresh
The result that occurs instead:- Datetime in ("m/d/Y h:iA") format in second pullrefresh
-
8 Jan 2013 9:02 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
Thanks for the report! I have opened a bug in our bug tracker.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-3890
in
Sprint 30.


Reply With Quote