From 8531eb53ecf7b6569a6247f76b26e213113feee1 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 20 Feb 2012 19:00:10 +0530 Subject: [PATCH] ups, wrong api url in js --- chaloBEST/static/js/editstops.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chaloBEST/static/js/editstops.js b/chaloBEST/static/js/editstops.js index 50257d6..8274ddc 100644 --- a/chaloBEST/static/js/editstops.js +++ b/chaloBEST/static/js/editstops.js @@ -12,7 +12,8 @@ $(function() { } else { $that.data("loaded", true); var $list = $('#' + name + 'List'); - $.post("/" + name, {}, function(items) { + var url = "/" + API_BASE + "/" + name; + $.post(url, {}, function(items) { $.each(items, function(i,v) { var $li = $('
  • ') .addClass("listItem")