Bug 2645 - phonegap example : SMS preview support
authorEugene Ostroukhov <eugeneo@symbian.org>
Thu, 10 Jun 2010 17:29:22 -0700
changeset 370 fc90176b0859
parent 369 0a31422d2116
child 371 8c790948988d
Bug 2645 - phonegap example : SMS preview support
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);