-
29 Nov 2012 3:03 AM #1
Ext.device.notification.show with phonegap
Ext.device.notification.show with phonegap
REQUIRED INFORMATIONExt version tested:
- Sencha Touch 2.1
- Packaged app android and iphone
- reference error : butons is undefined
- foo
- bar
I think butons should be buttons....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 ); },
-
29 Nov 2012 10:18 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
This has already been reported: http://www.sencha.com/forum/showthread.php?248789
The fix will be part of the next release.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
This issue duplicates another issue.


Reply With Quote