mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-02 12:42:12 +00:00
renamed fm_header to fm-header
This commit is contained in:
parent
58a3ae07b1
commit
922fd50b5b
10 changed files with 41 additions and 36 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue