From ef1bc4133c71bff4916dfe480a85fa64c3b76e97 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 16 Nov 2012 08:11:02 -0500 Subject: [PATCH] minor changes --- lib/client/storage/_github.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/client/storage/_github.js b/lib/client/storage/_github.js index 2bbfb2bb..2733df08 100644 --- a/lib/client/storage/_github.js +++ b/lib/client/storage/_github.js @@ -69,13 +69,14 @@ var CloudCommander, Util, DOM, $, Github; if ( Util.isContainStr(lCode, '?code=') ){ lCode = lCode.replace('?code=',''); - - $.ajax( - {type:'put', + $.ajax({ + type:'put', url:'/api/v1/auth', data: lCode, - success: function(pDate){ - console.log(pDate);} + success: function(pData){ + if(pData) + GithubStore.Login(pData.token); + } }); /*