From 91d04c69e94ed2ae32b7544abc70b83afa196f16 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 25 Mar 2019 21:43:31 +0800 Subject: [PATCH] Update files.js --- route/static/app/files.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route/static/app/files.js b/route/static/app/files.js index 4810f2936..78821b72c 100755 --- a/route/static/app/files.js +++ b/route/static/app/files.js @@ -982,7 +982,7 @@ function reName(type, fileName) { icon: 16, time: 10000 }); - $.post('/files?action=MvFile', 'sfile=' + oldFileName + '&dfile=' + newFileName, function(rdata) { + $.post('/files/mv_file', 'sfile=' + oldFileName + '&dfile=' + newFileName, function(rdata) { layer.closeAll(); layer.msg(rdata.msg, { icon: rdata.status ? 1 : 2 @@ -1083,7 +1083,7 @@ function PasteTo(path,copyName,cutName,fileName){ icon: 16, time: 0,shade: [0.3, '#000'] }); - $.post('/files?action=MvFile', 'sfile=' + encodeURIComponent(cutName) + '&dfile=' + encodeURIComponent(path + '/'+fileName), function(rdata) { + $.post('/files/mv_file', 'sfile=' + encodeURIComponent(cutName) + '&dfile=' + encodeURIComponent(path + '/'+fileName), function(rdata) { layer.closeAll(); layer.msg(rdata.msg, { icon: rdata.status ? 1 : 2