minor changes

This commit is contained in:
coderaiser 2012-12-18 07:15:57 -05:00
parent d13c0de0b1
commit c2df4431eb
3 changed files with 37 additions and 11 deletions

View file

@ -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
};