minor changes

This commit is contained in:
coderaiser 2013-02-25 09:28:41 -05:00
parent 03ce2ac3ae
commit 0b1ad61343
3 changed files with 5 additions and 4 deletions

View file

@ -528,7 +528,6 @@ CloudCmd._ajaxLoad = function(pPath, pOptions){
pOptions = {};
/* Отображаем красивые пути */
var lFSPath = decodeURI(pPath),
lNOJSPath = Util.removeStr( lFSPath, '?json' ),
lCleanPath = Util.removeStr( lNOJSPath, CloudFunc.FS ) || '/',

View file

@ -1275,14 +1275,16 @@ var CloudCommander, Util,
lParent = lCurrent.parentElement,
lName = DOM.getCurrentName(lCurrent),
lUrl = DOM.getCurrentPath(lCurrent);
if( DOM.isCurrentIsDir(lCurrent) )
lUrl += '?dir';
if(lCurrent && lParent && lName !== '..'){
DOM.Images.showLoad();
CloudCommander.getConfig(function(pConfig){
lUrl = pConfig && pConfig.api_url + lUrl;
lUrl = decodeURI(lUrl);
lUrl = pConfig && pConfig.api_url + lUrl;
DOM.ajax({
method : 'DELETE',
url : lUrl,

View file

@ -108,7 +108,7 @@
var p = pParams,
lQuery = main.getQuery(p.request);
p.name = Util.removeStr(pParams.name, [CloudFunc.FS, '?dir']) || '/';
p.name = Util.removeStr(p.name, [CloudFunc.FS, '?dir']) || '/';
switch(p.method){
case 'GET':
fs.stat(p.name, function(pError, pStat){