Oops...
--- 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");