Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1222 in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    134
    Vote Rating
    1
    stefankendall is an unknown quantity at this point

      1  

    Default [PR3] Ext.Msg.prompt not returning entered value, or honoring default starting value

    [PR3] Ext.Msg.prompt not returning entered value, or honoring default starting value


    Ext.Msg.prompt is no longer passing the input value to the callback function, nor is it honoring default values.

    Code:
    Ext.Msg.prompt('Percentage', 'Some text', function(button, text) {
            if (button == "ok") {
                console.log( text );
            }
        }, this, false, "34", {type: 'number'});
    In Sencha Touch 1.1.1, the text variable is set to the value in the prompted input. In PR3, I always get null. Also, in 1.1.1, the input shown is defaulted to the value "34", and in PR3 the input is blank.

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Thanks for the report.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  3. #3
    Touch Premium Member lylepratt's Avatar
    Join Date
    Dec 2010
    Location
    Austin, Texas
    Posts
    159
    Vote Rating
    0
    lylepratt is on a distinguished road

      0  

    Default


    Any chance you could post the code/patch that fixed this so people like me could use an override to get this functionality in the interim?
    Twitter: lylepratt

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    1
    Vote Rating
    0
    darko123 is on a distinguished road

      0  

    Default


    The text variable gets the value from the input now, this is fixed in PR4, but default value for prompt still doesn't work.

  5. #5
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Opening the default value as a separate issue.

    Sencha Inc

    Jamie Avins

    @jamieavins

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar