mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
minor changes
This commit is contained in:
parent
d13c0de0b1
commit
c2df4431eb
3 changed files with 37 additions and 11 deletions
|
|
@ -72,7 +72,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
Util.exec(pCallBack);
|
||||
}
|
||||
else
|
||||
Util.log("Worning: token not getted...");
|
||||
Util.log('Worning: token not getted...');
|
||||
},
|
||||
lData = {
|
||||
type : 'put',
|
||||
|
|
@ -83,14 +83,23 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
|
||||
DOM.ajax(lData);
|
||||
}
|
||||
else
|
||||
window.open('https://github.com/login/oauth/authorize?client_id=' +
|
||||
GitHub_ID + '&&scope=repo,user,gist', 'Cloud Commander Auth');
|
||||
/*
|
||||
window.location =
|
||||
'https://github.com/login/oauth/authorize?client_id=' +
|
||||
GitHub_ID + '&&scope=repo,user,gist';
|
||||
*/
|
||||
else{
|
||||
|
||||
var lUrl = '//' + window.location.host + '/auth/github',
|
||||
left = 140,
|
||||
top = 187,
|
||||
width = 1000,
|
||||
height = 650,
|
||||
|
||||
lOptions = 'left=' + left +
|
||||
',top=' + top +
|
||||
',width=' + width +
|
||||
',height=' + height +
|
||||
',personalbar=0,toolbar=0' +
|
||||
',scrollbars=1,resizable=1';
|
||||
|
||||
window.open(lUrl, 'Cloud Commander Auth', lOptions);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -143,7 +152,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
lFiles = {},
|
||||
lHost = CloudCommander.HOST,
|
||||
lOptions = {
|
||||
description: "Uplouded by Cloud Commander from " + lHost,
|
||||
description: 'Uplouded by Cloud Commander from ' + lHost,
|
||||
|
||||
public: true
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue