renamed config options ouath_client_id and oauth_client_secre to github_id and github_secret. Added dropbox_id option.

This commit is contained in:
coderaiser 2012-12-03 08:44:39 -05:00
parent a6ef735553
commit 72eebd2287
5 changed files with 19 additions and 16 deletions

View file

@ -8,8 +8,8 @@ var CloudCommander, Util, DOM, $, Github, cb;
APIURL = '/api/v1',
AuthURL = APIURL + '/auth',
ClientIdURL = APIURL + '/client_id',
CLIENT_ID,
GitHubIdURL = APIURL + '/github_id',
GitHub_ID,
Cache = DOM.Cache,
GithubLocal,
User,
@ -46,9 +46,9 @@ var CloudCommander, Util, DOM, $, Github, cb;
function setConfig(pCallBack){
DOM.ajax({
url : ClientIdURL,
url : GitHubIdURL,
success : function(pData){
CLIENT_ID = pData;
GitHub_ID = pData;
Util.exec(pCallBack);
}
});
@ -113,7 +113,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
//window.open('welcome.html', 'welcome','width=300,height=200,menubar=yes,status=yes')">
window.location =
'https://github.com/login/oauth/authorize?client_id=' +
CLIENT_ID + '&&scope=repo,user,gist';
GitHub_ID + '&&scope=repo,user,gist';
}
}