ups, wrong api url in js

This commit is contained in:
Sanj 2012-02-20 19:00:10 +05:30
parent caafe71240
commit 8531eb53ec

View File

@ -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 = $('<li />')
.addClass("listItem")