mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
minor changes
This commit is contained in:
parent
37847df395
commit
0db6d3370b
4 changed files with 78 additions and 33 deletions
|
|
@ -1,5 +1,4 @@
|
|||
var CloudCommander, Util, DOM, $, Github, cb;
|
||||
/* temporary callback function for work with github */
|
||||
/* module for work with github */
|
||||
|
||||
(function(){
|
||||
|
|
@ -18,6 +17,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
|
||||
cloudcmd.Storage = {};
|
||||
|
||||
/* temporary callback function for work with github */
|
||||
cb = function (err, data){ console.log(err || data);};
|
||||
|
||||
/* PRIVATE FUNCTIONS */
|
||||
|
|
@ -43,15 +43,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
}
|
||||
|
||||
function setConfig(pCallBack){
|
||||
/*
|
||||
cloudcmd.loadConfig(function(){
|
||||
var lConfig = cloudcmd.Config;
|
||||
CLIENT_ID = lConfig.oauth_client_id;
|
||||
|
||||
Util.exec(pCallBack);
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
DOM.ajax({
|
||||
url : ClientIdURL,
|
||||
success : function(pData){
|
||||
|
|
@ -122,7 +114,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
CLIENT_ID + '&&scope=repo,user,gist';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function getUserData(){
|
||||
var lName, lRepoNames,
|
||||
lGetTree = function(pError ,pData){
|
||||
|
|
@ -135,7 +127,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
else
|
||||
Util.log(pError);
|
||||
},
|
||||
|
||||
|
||||
lShowRepos = function(pError, pRepos){
|
||||
lRepoNames = pRepos || [];
|
||||
Util.log('Repositories: ');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue