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,10 +1,10 @@
define([
"helper/HostApp",
"helper/Paths",
"helper/APICalls",
"helper/Cache"
],
function(HostApp, Paths, Cache) {
function(HostApp, APICalls, Cache) {
function Sidebar() {
@ -121,10 +121,10 @@ function(HostApp, Paths, Cache) {
} else {
Paths.findProfileURL(entity, function(profile_url) {
APICalls.findProfileURL(entity, function(profile_url) {
if (profile_url) {
Paths.getURL(profile_url, "GET", function(resp) {
APICalls.http_call(profile_url, "GET", function(resp) {
var p = JSON.parse(resp.responseText);
if (p && p != "null") {
_this.cache.profiles.setItem(entity, p);