From 069e15c10ed10b45673c2365f78fe8918753f19d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 8 Nov 2015 19:32:08 -0500 Subject: use jqxhr style callbacks --- StoneIsland/www/js/sdk/account.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'StoneIsland/www/js/sdk/account.js') diff --git a/StoneIsland/www/js/sdk/account.js b/StoneIsland/www/js/sdk/account.js index 3dfe2cfe..7e7eb3dc 100644 --- a/StoneIsland/www/js/sdk/account.js +++ b/StoneIsland/www/js/sdk/account.js @@ -5,7 +5,7 @@ sdk.account = (function(){ // https://gist.github.com/fanfare/d18498e7fa25acbd4486 var account = {} account.signup = function(opt){ - $.ajax({ + return $.ajax({ method: "POST", url: sdk.path("Account.API/1.5", "users.json"), headers: { @@ -26,7 +26,7 @@ sdk.account = (function(){ } account.login = function(opt){ - $.ajax({ + return $.ajax({ method: "POST", url: sdk.path("Account.API/1.5", "authfull.json"), headers: { -- cgit v1.2.3-70-g09d2