mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
added ability to upload files to dropbox
This commit is contained in:
parent
1a2b74990a
commit
9eed915772
31 changed files with 4034 additions and 129 deletions
|
|
@ -62,11 +62,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
if ( Util.isContainStr(lCode, '?code=') ){
|
||||
lCode = lCode.replace('?code=','');
|
||||
|
||||
DOM.ajax({
|
||||
type : 'put',
|
||||
url : AuthURL,
|
||||
data: lCode,
|
||||
success: function(pData){
|
||||
var lSuccess = function(pData){
|
||||
if(pData && pData.token){
|
||||
lToken = pData.token;
|
||||
|
||||
|
|
@ -76,8 +72,15 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
}
|
||||
else
|
||||
Util.log("Worning: token not getted...");
|
||||
}
|
||||
});
|
||||
},
|
||||
lData = {
|
||||
type : 'put',
|
||||
url : AuthURL,
|
||||
data : lCode,
|
||||
success : lSuccess
|
||||
};
|
||||
|
||||
DOM.ajax(lData);
|
||||
}
|
||||
else
|
||||
//window.open('welcome.html', 'welcome','width=300,height=200,menubar=yes,status=yes')">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue