mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
03ce2ac3ae
commit
0b1ad61343
3 changed files with 5 additions and 4 deletions
|
|
@ -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 ) || '/',
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue