minor changes

This commit is contained in:
coderaiser 2013-02-18 08:10:52 -05:00
parent df1429880a
commit 256253de03
4 changed files with 34 additions and 29 deletions

View file

@ -1,27 +1,27 @@
<!DOCTYPE html>
<html>
<head></head>
<body>
<script>
var Util;
(function(Util){
"use strict";
if(window.opener){
var cloudcmd = window.opener.CloudCommander;
cloudcmd.getModules(function(pModules){
var lStorage = Util.findObjByNameInArr(pModules, 'storage'),
lGitHub = Util.findObjByNameInArr(lStorage, 'GitHub'),
GitHub_ID = lGitHub && lGitHub.key;
window.location =
'https://github.com/login/oauth/authorize?client_id=' +
GitHub_ID + '&&scope=repo,user,gist';
});
}
})(Util);
</script>
</body>
<!DOCTYPE html>
<html>
<head></head>
<body>
<script src=/lib/util.js>
var Util;
(function(Util){
"use strict";
if(window.opener){
var cloudcmd = window.opener.CloudCommander;
cloudcmd.getModules(function(pModules){
var lStorage = Util.findObjByNameInArr(pModules, 'storage'),
lGitHub = Util.findObjByNameInArr(lStorage, 'GitHub'),
GitHub_ID = lGitHub && lGitHub.key;
window.location =
'https://github.com/login/oauth/authorize?client_id=' +
GitHub_ID + '&&scope=repo,user,gist';
});
}
})(Util);
</script>
</body>
</html>