fixed bug with downloading directory listing in json from menu

This commit is contained in:
coderaiser 2012-11-06 06:34:49 -05:00
parent 4971ab76e9
commit 7bb27fb50f
2 changed files with 6 additions and 5 deletions

View file

@ -67,6 +67,9 @@ and linux.
* Removed unneeded windows check.
* Fixed bug with downloading directory
listing in json from menu.
2012.10.01, Version 0.1.7

View file

@ -248,9 +248,7 @@ CloudServer.generateHeaders = function(pName, pGzip){
if(pGzip)
lRet['content-encoding'] = 'gzip';
console.log(lRet);
return lRet;
};
@ -635,9 +633,9 @@ CloudServer._fillJSON = function(pStats, pFiles){
var lReaded_f = CloudServer.indexReaded(lList);
lReaded_f(false, lFileData);
}
}else{
}else{
DirPath = DirPath.substr(DirPath, DirPath.lastIndexOf('/') );
var lQuyery = CloudServer.Queries[DirPath];
DirPath = DirPath.substr( DirPath.lastIndexOf('/') );
DirPath += '.json';
CloudServer.Queries[DirPath] = lQuyery;
/* в обычном режиме(когда js включен