renamed fm_header to fm-header

This commit is contained in:
coderaiser 2012-12-17 05:49:18 -05:00
parent 58a3ae07b1
commit 922fd50b5b
10 changed files with 41 additions and 36 deletions

View file

@ -8,7 +8,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
Cache = DOM.Cache,
APIURL,
AuthURL = APIURL + '/auth',
AuthURL,
GitHub_ID,
GithubLocal,
@ -45,6 +45,8 @@ var CloudCommander, Util, DOM, $, Github, cb;
cloudcmd.getConfig(function(pConfig){
GitHub_ID = pConfig.github_key;
APIURL = pConfig.api_url;
AuthURL = APIURL + '/auth';
Util.exec(pCallBack);
});
}
@ -126,6 +128,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
*/
cloudcmd.GitHub.createGist = function(pContent, pFileName){
if(pContent){
DOM.Images.showLoad();
if(!pFileName)
pFileName = Util.getDate();
@ -144,7 +147,11 @@ var CloudCommander, Util, DOM, $, Github, cb;
lOptions.files = lFiles;
lGist.create(lOptions, cb);
lGist.create(lOptions, function(pError, pData){
DOM.Images.hideLoad();
console.log(pError || pData);
console.log(pData && pData.html_url);
});
}
return pContent;