~ use a relative link to fetch workouts
authortgambet
Fri, 26 Aug 2011 16:01:59 -0400
changeset 121 1f8c4d9b2f51
parent 120 41c2ee29ab55
child 122 b29d8749df21
~ use a relative link to fetch workouts
src/main/resources/scripts/map.js
--- a/src/main/resources/scripts/map.js	Fri Aug 26 15:49:32 2011 -0400
+++ b/src/main/resources/scripts/map.js	Fri Aug 26 16:01:59 2011 -0400
@@ -73,7 +73,7 @@
 var workouts, graph;
 
 function getWorkouts() {
-	workouts = Util.requestJSON('http://localhost:2719/user/[email protected]/workouts');
+	workouts = Util.requestJSON('/user/[email protected]/workouts');
 	return workouts;
 	//return Util.requestJSON('http://localhost:2719/user/jdoe/workouts');
 	//return [ { "activity": "http://dbpedia.org/resource/Running", "date": 1312971214000, "duration": 6652, "distance": 12.000000, "json": "http://localhost:2719/user/[email protected]/workout/4e56a110ccf2406c3515bccb.json", "gpx": "http://localhost:2719/user/[email protected]/workout/4e56a110ccf2406c3515bccb.gpx" }, { "activity": "http://dbpedia.org/resource/Running", "date": 1309083594000, "duration": 14703, "distance": 12.000000, "json": "http://localhost:2719/user/[email protected]/workout/4e56a250ccf23d3128a27d0f.json", "gpx": "http://localhost:2719/user/[email protected]/workout/4e56a250ccf23d3128a27d0f.gpx" } ];