mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
df1429880a
commit
256253de03
4 changed files with 34 additions and 29 deletions
|
|
@ -136,8 +136,6 @@ while menu is showing now.
|
|||
* Added ability to remove /fs/no-js when go up to root
|
||||
directory.
|
||||
|
||||
* Removed reflows maded by js.
|
||||
|
||||
|
||||
2012.12.12, Version 0.1.8
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
"api_url" : "/api/v1",
|
||||
"appcache" : false,
|
||||
"minification" : {
|
||||
"js" : true,
|
||||
"js" : false,
|
||||
"css" : true,
|
||||
"html" : true,
|
||||
"img" : true
|
||||
|
|
|
|||
|
|
@ -337,6 +337,13 @@ function baseInit(pCallBack){
|
|||
DOM.Cache.set('/', CloudCmd._getJSONfromFileTable());
|
||||
});
|
||||
|
||||
/* выделяем строку с первым файлом */
|
||||
var lFmHeader = DOM.getByClass('fm-header');
|
||||
if(lFmHeader && lFmHeader[0]){
|
||||
var lCurrent = lFmHeader[0].nextSibling;
|
||||
DOM.setCurrentFile(lCurrent);
|
||||
}
|
||||
|
||||
/* показываем элементы, которые будут работать только, если есть js */
|
||||
var lFM = DOM.getById('fm');
|
||||
lFM.className='localstorage';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue