api calls

This commit is contained in:
Jeena Paradies 2013-05-26 09:51:01 +02:00
parent 422dbd34ff
commit f73ce7d196
10 changed files with 371 additions and 86 deletions

View file

@ -1,11 +1,11 @@
define([
"helper/HostApp",
"helper/Core",
"helper/Paths",
"helper/APICalls",
"lib/URI"
],
function(HostApp, Core, Paths, URI) {
function(HostApp, Core, APICalls, URI) {
function Search() {
@ -79,7 +79,7 @@ function(HostApp, Core, Paths, URI) {
var _this = this;
Paths.getURL(url.toString(), "GET", function(resp) {
APICalls.http_call(url.toString(), "GET", function(resp) {
var results = JSON.parse(resp.responseText).results;
if (results && results.length > 0) {