Results 1 to 2 of 2

Thread: Ext.device.notification.show with phonegap

    This issue duplicates another issue.
  1. #1
    Sencha User
    Join Date
    Aug 2012
    Location
    Fabrgues, France
    Posts
    50
    Vote Rating
    0
      0  

    Default Ext.device.notification.show with phonegap

    REQUIRED INFORMATIONExt version tested:
    • Sencha Touch 2.1
    Browser versions tested against:
    • Packaged app android and iphone
    Description:
    • reference error : butons is undefined
    Steps to reproduce the problem:
    • foo
    • bar
    Check Phonegap.jshere is the code I found in this file
    Code:
        show: function() {        var config = this.callParent(arguments),
                buttons = (config.buttons) ? config.buttons.join(',') : null,
                onShowCallback = function(index) {
                    if (config.callback) {
                        config.callback.apply(config.scope, (config.buttons) ? [config.buttons[index - 1]].toLowerCase() : []);
                    }
                };
    
    
            // change Ext.MessageBox buttons into normal arrays
            var ln = butons.length;
            if (ln && typeof buttons[0] != "string") {
                var newButtons = [],
                    i;
    
    
                for (i = 0; i < ln; i++) {
                    newButtons.push(buttons[i].text);
                }
    
    
                buttons = newButtons;
            }
    
    
            navigator.notification.confirm(
                config.message, // message
                onShowCallback, // callback
                config.title, // title
                buttons // array of button names
            );
        },
    I think butons should be buttons....

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    This has already been reported: http://www.sencha.com/forum/showthread.php?248789

    The fix will be part of the next release.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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