Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3890 in Sprint 30.
  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    20
    Vote Rating
    0
    Martin Hujer is on a distinguished road

      0  

    Default 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() + '&nbsp;' + 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}&nbsp;{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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,641
    Vote Rating
    434
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Tags for this Thread