You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2012/04/12 00:30:59 UTC
[2/3] bada commit: fixing sample app
fixing sample app
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada/commit/f727b2ef
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada/tree/f727b2ef
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada/diff/f727b2ef
Branch: refs/heads/master
Commit: f727b2efbb0674e16e344445c36fd6a0f8a31e88
Parents: 9ca9d91
Author: Anis Kadri <an...@gmail.com>
Authored: Wed Apr 11 15:22:56 2012 -0700
Committer: Anis Kadri <an...@gmail.com>
Committed: Wed Apr 11 15:22:56 2012 -0700
----------------------------------------------------------------------
Res/index.html | 2 +-
Res/main.js | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada/blob/f727b2ef/Res/index.html
----------------------------------------------------------------------
diff --git a/Res/index.html b/Res/index.html
index e2ccb8a..6d44ac5 100755
--- a/Res/index.html
+++ b/Res/index.html
@@ -82,6 +82,6 @@
<input onclick="notificationBeep()" type="submit" value="Notification.beep">
</div>
</body>
- <script type="text/javascript" src="phonegap/phonegap.js"></script>
+ <script type="text/javascript" src="cordova/cordova.js"></script>
<script type="text/javascript" src="main.js"></script>
</html>
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada/blob/f727b2ef/Res/main.js
----------------------------------------------------------------------
diff --git a/Res/main.js b/Res/main.js
index 542d493..6199795 100755
--- a/Res/main.js
+++ b/Res/main.js
@@ -20,7 +20,7 @@ function onGeoLocationError(error) {
function getCurrentPosition() {
var geolocation = document.getElementById('geolocation');
try {
- Geolocation.usePhoneGap();
+ Geolocation.useCordova();
geolocation.style.display = 'block';
navigator.geolocation.getCurrentPosition(onGeoLocationSuccess, onGeoLocationError, { frequency: 3000 });
} catch(e) {
@@ -33,7 +33,7 @@ function toggleWatchPosition(em) {
em.value = "GeoLocation.StopWatching";
geolocation.style.display = 'block';
try {
- Geolocation.usePhoneGap();
+ Geolocation.useCordova();
watchLocationID = navigator.geolocation.watchPosition(onGeoLocationSuccess, onGeoLocationError, { frequency: 3000 });
} catch(e) {
alert(e.message);
@@ -145,7 +145,7 @@ function getSystemInfo() {
var system = document.getElementById("system");
system.style.display = "block";
system.innerHTML = 'Device Name: ' + device.name + '<br />' +
- 'Device PhoneGap: ' + device.phonegap + '<br />' +
+ 'Device Cordova: ' + device.cordova + '<br />' +
'Device Platform: ' + device.platform + '<br />' +
'Device UUID: ' + device.uuid + '<br />' +
'Device Version: ' + device.version + '<br />';