mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
added ID for every folder
This commit is contained in:
parent
dd98d259a4
commit
2c4a4d00a9
2 changed files with 18 additions and 10 deletions
14
server.js
14
server.js
|
|
@ -86,13 +86,13 @@ try {
|
|||
/* добавляем модуль с функциями */
|
||||
var CloudFunc;
|
||||
try {
|
||||
CloudFunc = require(CloudServer.LIBDIR +
|
||||
CloudFunc = require(CloudServer.LIBDIR +
|
||||
'/cloudfunc');
|
||||
|
||||
CloudServer.Cache = require(CloudServer.LIBDIRSERVER +
|
||||
CloudServer.Cache = require(CloudServer.LIBDIRSERVER +
|
||||
'/object').Cache;
|
||||
|
||||
CloudServer.Minify = require(CloudServer.LIBDIRSERVER +
|
||||
CloudServer.Minify = require(CloudServer.LIBDIRSERVER +
|
||||
'/object').Minify;
|
||||
}catch(pError){
|
||||
console.log('could not found one of Cloud Commander SS files');
|
||||
|
|
@ -541,13 +541,17 @@ CloudServer._readDir=function (pError, pFiles)
|
|||
'client.min.js')
|
||||
:lIndex;
|
||||
|
||||
lIndex=lIndex.toString().replace('<div id=fm class=no-js>','<div id=fm class=no-js>'+lList);
|
||||
lIndex=lIndex.toString().replace('<div id=fm class=no-js>',
|
||||
'<div id=fm class=no-js>'+lList);
|
||||
|
||||
/* меняем title */
|
||||
lIndex=lIndex.replace('<title>Cloud Commander</title>',
|
||||
'<title>'+CloudFunc.setTitle()+'</title>');
|
||||
|
||||
/* отображаем панель быстрых клавишь */
|
||||
lList=lIndex;
|
||||
/* если браузер поддерживает gzip-сжатие*/
|
||||
|
||||
/* если браузер поддерживает gzip-сжатие*/
|
||||
lHeader=CloudServer.generateHeaders('text/html',CloudServer.Gzip);
|
||||
}catch(error){console.log(error);}
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue