minor changes

This commit is contained in:
coderaiser 2012-11-22 05:57:40 -05:00
parent 37847df395
commit 0db6d3370b
4 changed files with 78 additions and 33 deletions

View file

@ -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: ');