mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
added path template
This commit is contained in:
parent
34d7a1b89e
commit
4fb7815583
4 changed files with 41 additions and 34 deletions
|
|
@ -295,7 +295,7 @@ var CloudFunc, exports, Util;
|
|||
* [{path:'путь',size:'dir'},
|
||||
* {name:'имя',size:'размер',mode:'права доступа'}]
|
||||
*/
|
||||
CloudFunc.buildFromJSON = function(pJSON, pTemplate)
|
||||
CloudFunc.buildFromJSON = function(pJSON, pTemplate, pPathTemplate)
|
||||
{
|
||||
var files = pJSON,
|
||||
/* сохраняем путь каталога в котором мы сейчас находимся*/
|
||||
|
|
@ -313,19 +313,10 @@ var CloudFunc, exports, Util;
|
|||
*/
|
||||
lRefreshPath = CloudFunc.removeLastSlash(lPath),
|
||||
|
||||
lFileTable =
|
||||
'<li class=path>'+
|
||||
'<span class="path-icon clear-cache"' +
|
||||
'id=clear-cache ' +
|
||||
'title="clear cache (Ctrl+D)">' +
|
||||
'</span>' +
|
||||
'<span class="path-icon ' + CloudFunc.REFRESHICON + '"' +
|
||||
' title="refresh (Ctrl+R)">' +
|
||||
'<a href="' + FS + lRefreshPath + '">' +
|
||||
'</a>' +
|
||||
'</span>' +
|
||||
'<span>' + lHtmlPath + '</span>' +
|
||||
'</li>',
|
||||
lFileTable = Util.render(pPathTemplate, {
|
||||
link: FS + lRefreshPath,
|
||||
path: lHtmlPath
|
||||
}),
|
||||
|
||||
fileTableTitles = ['name','size','owner','mode'];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue