ups, wrong api url in js
This commit is contained in:
parent
caafe71240
commit
8531eb53ec
|
@ -12,7 +12,8 @@ $(function() {
|
||||||
} else {
|
} else {
|
||||||
$that.data("loaded", true);
|
$that.data("loaded", true);
|
||||||
var $list = $('#' + name + 'List');
|
var $list = $('#' + name + 'List');
|
||||||
$.post("/" + name, {}, function(items) {
|
var url = "/" + API_BASE + "/" + name;
|
||||||
|
$.post(url, {}, function(items) {
|
||||||
$.each(items, function(i,v) {
|
$.each(items, function(i,v) {
|
||||||
var $li = $('<li />')
|
var $li = $('<li />')
|
||||||
.addClass("listItem")
|
.addClass("listItem")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user