# HG changeset patch # User Eugene Ostroukhov # Date 1276216162 25200 # Node ID fc90176b08590fc8206eff248863d33122cd882b # Parent 0a31422d211676566dcd00742e9f88f0b5beab43 Bug 2645 - phonegap example : SMS preview support diff -r 0a31422d2116 -r fc90176b0859 org.symbian.tools.wrttools.previewer/preview/script/lib/sapi/Messaging.js --- a/org.symbian.tools.wrttools.previewer/preview/script/lib/sapi/Messaging.js Thu Jun 10 17:06:55 2010 -0700 +++ b/org.symbian.tools.wrttools.previewer/preview/script/lib/sapi/Messaging.js Thu Jun 10 17:29:22 2010 -0700 @@ -39,7 +39,7 @@ this.ChangeStatus = __ChangeStatus; this.Delete = __Delete; this.Cancel = __Cancel; - } + }; device.implementation.extend(provider, Interface, new MessagingService() ); @@ -121,8 +121,9 @@ if (typeof callback == 'function') { return context.callAsync(this, arguments.callee, criteria, callback); } - - context.notify(_t('%s:: Send : message sent!').arg(provider)); + var message = _t('Sent %s message \"%s\" to %s').arg(criteria.MessageType, criteria.BodyText, criteria.To) + context.notify(message); + window.alert(message); // return success return error(device.implementation.ERR_SUCCESS);