added ID for every folder

This commit is contained in:
coderaiser 2012-07-24 14:45:12 -04:00
parent dd98d259a4
commit 2c4a4d00a9
2 changed files with 18 additions and 10 deletions

View file

@ -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{