org.symbian.tools.wrttools.previewer/preview/script/lib/widget.js
changeset 371 8c790948988d
parent 369 0a31422d2116
child 378 d75225f3e1c6
equal deleted inserted replaced
370:fc90176b0859 371:8c790948988d
    49 	 *     openURL()
    49 	 *     openURL()
    50 	 * @return {Void}
    50 	 * @return {Void}
    51 	 */
    51 	 */
    52 	widget.openURL = function(url){
    52 	widget.openURL = function(url){
    53 		if (url) {
    53 		if (url) {
       
    54 			if (url.substring(0, 4) == "tel:") {
       
    55 				var sz = "Number " + url.substring(4) + " was dialed";
       
    56 				window.alert(sz);
       
    57 			}
       
    58 
    54 			window.open(url, "New Widget Window", 'height=200 width=250');
    59 			window.open(url, "New Widget Window", 'height=200 width=250');
    55 		}
    60 		}
    56 	};
    61 	};
    57 	
    62 	
    58 	
    63