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
18c1af8e29
commit
931bb7979a
1 changed files with 2 additions and 11 deletions
|
|
@ -112,7 +112,7 @@
|
|||
};
|
||||
|
||||
if(n){
|
||||
var i, lDirPath = getDirPath(lReq);
|
||||
var i, lDirPath = getCleanPath(lReq);
|
||||
|
||||
for(i = 0; i < n; i++){
|
||||
var lName = lDirPath + lFiles[i],
|
||||
|
|
@ -188,7 +188,7 @@
|
|||
var lJSON = [],
|
||||
lJSONFile = {},
|
||||
lList,
|
||||
lDirPath = getDirPath(lReq);
|
||||
lDirPath = getCleanPath(lReq);
|
||||
|
||||
lJSON[0] = {
|
||||
path : lDirPath,
|
||||
|
|
@ -349,15 +349,6 @@
|
|||
return lPath;
|
||||
}
|
||||
|
||||
function getDirPath(pReq){
|
||||
var lPath = getPath(pReq);
|
||||
|
||||
/* Если мы не в корне добавляем слеш к будующим ссылкам */
|
||||
if(lPath !== '/')
|
||||
lPath += '/';
|
||||
|
||||
return lPath;
|
||||
}
|
||||
|
||||
function getCleanPath(pReq){
|
||||
var lPath = getPath(pReq),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue