Oops...
authorPhilippe Le Hegaret <plh@w3.org>
Thu, 25 Aug 2011 14:17:22 -0400
changeset 84 394aeb65212e
parent 83 cba0ea819312
child 85 ff2542653a41
Oops...
src/main/resources/scripts/tracker.js
--- a/src/main/resources/scripts/tracker.js	Thu Aug 25 14:13:28 2011 -0400
+++ b/src/main/resources/scripts/tracker.js	Thu Aug 25 14:17:22 2011 -0400
@@ -234,9 +234,10 @@
   document.getElementById("start").textContent = "Start";
   document.getElementById("stop").disabled = true;
   if (app.currentActivity.events.length > 2) {
-  	!Util.postNewResourceAsJSON(user.getPostRunURI(),app.currentActivity)) {      
-    if (!Util.store.set("track_gps_app", app.currentActivity)) {
-      Util.log("[ERROR] Can't store the workout");
+  	if (!Util.postNewResourceAsJSON(user.getPostRunURI(),app.currentActivity)) {      
+    	if (!Util.store.set("track_gps_app", app.currentActivity)) {
+      		Util.log("[ERROR] Can't store the workout");
+    	}
     }
   } else {
   	Util.log("[ERROR] Your workout doesn't contain enought events");