added ability to upload files to dropbox

This commit is contained in:
coderaiser 2012-12-17 10:52:33 -05:00
parent 1a2b74990a
commit 9eed915772
31 changed files with 4034 additions and 129 deletions

View file

@ -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')">