chenged description

This commit is contained in:
coderaiser 2012-12-20 07:05:04 -05:00
parent caa15189a1
commit 7e7095a642
2 changed files with 15 additions and 24 deletions

View file

@ -5,8 +5,8 @@
"minification" : {
"js" : false,
"css" : false,
"html" : true,
"img" : true
"html" : false,
"img" : false
},
"github_key" : "891c251b925e4e967fa9",
"github_secret" : "afe9bed1e810c5dc44c4c2a953fc6efb1e5b0545",

View file

@ -9,29 +9,20 @@ var CloudCommander, Util, DOM, gapi;
function authorize(pData){
/* https://developers.google.com/drive/credentials */
Util.setTimeout({
func : function(pCallBack){
var lCLIENT_ID = '255175681917.apps.googleusercontent.com',
lSCOPES = 'https://www.googleapis.com/auth/drive',
lParams = {
'client_id' : lCLIENT_ID,
'scope' : lSCOPES,
'immediate' : true
};
gapi.auth.authorize(lParams, pCallBack);
},
callback : function(pAuthResult){
var lRet;
if (pAuthResult && !pAuthResult.error){
uploadFile(pData);
lRet = true;
}
return lRet;
}
var lCLIENT_ID = '255175681917.apps.googleusercontent.com',
lSCOPES = 'https://www.googleapis.com/auth/drive',
lParams = {
'client_id' : lCLIENT_ID,
'scope' : lSCOPES,
'immediate' : false
};
setTimeout(function() {
gapi.auth.authorize(lParams, function(pAuthResult){
if (pAuthResult && !pAuthResult.error)
uploadFile(pData);
});
}, 500);
}
function load(pData){