# HG changeset patch # User Paul Beusterien # Date 1278708917 25200 # Node ID c9364c38809d08e8dc056f322f95a40632a5e69f # Parent d1f103499eee5b8c6ed25a91e7bf9e5dc79883a5 fix 2643. Supply alerts when vibrate or beep is called in the previewer. And enable sysinfo functions to be called by putting embed tag in phonegap wizard html file diff -r d1f103499eee -r c9364c38809d org.symbian.tools.wrttools.previewer/preview/script/lib/systeminfo.js --- a/org.symbian.tools.wrttools.previewer/preview/script/lib/systeminfo.js Thu Jul 08 13:58:10 2010 -0700 +++ b/org.symbian.tools.wrttools.previewer/preview/script/lib/systeminfo.js Fri Jul 09 13:55:17 2010 -0700 @@ -28,9 +28,6 @@ */ sysObject.language = 'EN'; - - - /* * Power information services */ @@ -43,14 +40,12 @@ sysObject.onchargelevel = null; sysObject.onchargerconnected = null; - - /* * Beep tone control services */ - sysObject.beep = function(frequency, duration){ } - - + sysObject.beep = function(frequency, duration){ + alert("Beep is not implemented in the previewer."); + }; /* * Network Information services @@ -63,8 +58,6 @@ // value range between: {0-7} sysObject.networkregistrationstatus = 0; - - /* * Display and keypad illumination information and control services @@ -87,8 +80,6 @@ sysObject.lightblink = function(lighttarget, duration, onduration, offduration, intensity){ } sysObject.lightoff = function(lighttarget, duration, fadeout){ } - - /* * Vibration information and control services */ @@ -99,12 +90,13 @@ // Vibration setting in the user profile is off. sysObject.vibrasettings = 2; - sysObject.startvibra = function(duration, intensity){ } + sysObject.startvibra = function(duration, intensity){ + alert("Vibrate is not implemented in the previewer."); + }; - sysObject.stopvibra = function(){ } - - - + sysObject.stopvibra = function(){ + alert("Vibrate is not implemented in the previewer."); + }; /* * Memory and file system information services diff -r d1f103499eee -r c9364c38809d org.symbian.tools.wrttools.product/launch/WRT IDE Product (Mac OS X).launch --- a/org.symbian.tools.wrttools.product/launch/WRT IDE Product (Mac OS X).launch Thu Jul 08 13:58:10 2010 -0700 +++ b/org.symbian.tools.wrttools.product/launch/WRT IDE Product (Mac OS X).launch Fri Jul 09 13:55:17 2010 -0700 @@ -21,8 +21,8 @@ - - + + diff -r d1f103499eee -r c9364c38809d org.symbian.tools.wrttools/projecttemplates/phonegap.zip Binary file org.symbian.tools.wrttools/projecttemplates/phonegap.zip has changed