mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
minor changes
This commit is contained in:
parent
c8286a0aad
commit
cd536ba7c6
4 changed files with 24 additions and 10 deletions
|
|
@ -1 +1,8 @@
|
|||
<li draggable class><span class="mini-icon {type}"></span><span class=name><a href="{link}" title="{name}" draggable=true>{name}</a></span><span class=size>{size}</span><span class=owner>{owner}</span><span class=mode>{mode}</span></li>
|
||||
<li draggable class>
|
||||
<span class="mini-icon {type}"></span>
|
||||
<span class=name>
|
||||
<a href="{link}" title="{name}" target="{target}" draggable=true>{name}</a>
|
||||
</span>
|
||||
<span class=size>{size}</span><span class=owner>{owner}</span>
|
||||
<span class=mode>{mode}</span>
|
||||
</li>
|
||||
|
|
@ -1 +1,4 @@
|
|||
<li class=path><span class="path-icon clear-cache" id=clear-cache title="clear cache (Ctrl+D)"></span><span class="path-icon refresh-icon" title="refresh (Ctrl+R)"><a href="{link}"></a></span><span>{path}</span></li>
|
||||
<li class=path>
|
||||
<span class="path-icon clear-cache" id=clear-cache title="clear cache (Ctrl+D)"></span><span class="path-icon refresh-icon" title="refresh (Ctrl+R)"><a href="{link}"></a></span>
|
||||
<span>{path}</span>
|
||||
</li>
|
||||
|
|
@ -864,8 +864,10 @@ var CloudCommander, Util,
|
|||
var lCurrent;
|
||||
if(pPosition && pPosition.top)
|
||||
lCurrent = DOM.getRefreshButton().parentElement;
|
||||
else
|
||||
lCurrent = DOM.getCurrentFile().firstChild.nextSibling;
|
||||
else{
|
||||
var lFile = DOM.getCurrentFile();
|
||||
lCurrent = DOM.getByClass('name', lFile)[0];
|
||||
}
|
||||
|
||||
/* show loading icon if it not showed */
|
||||
|
||||
|
|
|
|||
|
|
@ -342,6 +342,7 @@ var CloudFunc, exports, Util;
|
|||
lFileTable += Util.render(pTemplate,{
|
||||
type : 'directory',
|
||||
link : lLink,
|
||||
target : '',
|
||||
name : '..',
|
||||
size : '<dir>',
|
||||
owner : '.',
|
||||
|
|
@ -353,12 +354,13 @@ var CloudFunc, exports, Util;
|
|||
var lFile = files[i];
|
||||
|
||||
lFileTable += Util.render(pTemplate,{
|
||||
type : lFile.size === 'dir' ? 'directory' : 'text-file',
|
||||
link : FS + lPath + lFile.name,
|
||||
name : lFile.name,
|
||||
size : lFile.size === 'dir' ? '<dir>' : CloudFunc.getShortSize( lFile.size ),
|
||||
owner : !lFile.uid ? 'root' : lFile.uid,
|
||||
mode : CloudFunc.getSymbolicPermissions(lFile.mode)
|
||||
type : lFile.size === 'dir' ? 'directory' : 'text-file',
|
||||
link : FS + lPath + lFile.name,
|
||||
target : lFile.size === 'dir' ? '' : "_blank",
|
||||
name : lFile.name,
|
||||
size : lFile.size === 'dir' ? '<dir>' : CloudFunc.getShortSize( lFile.size ),
|
||||
owner : !lFile.uid ? 'root' : lFile.uid,
|
||||
mode : CloudFunc.getSymbolicPermissions(lFile.mode)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue