Results 1 to 2 of 2

Thread: PullRefresh resetRefreshState() doesn't use pullTpl

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3890 in a recent build.
  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    34
    Vote Rating
    2
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Vote Rating
    1297
      0  

    Default

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •