From 18e4267683e5aa6db9750e05ceb98543e55e31ea Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 25 Mar 2019 23:31:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/static/app/files.js | 34 +++++++++++++++--------------- route/templates/default/files.html | 10 ++++----- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/route/static/app/files.js b/route/static/app/files.js index d2f0e1038..43c6872ce 100755 --- a/route/static/app/files.js +++ b/route/static/app/files.js @@ -404,13 +404,13 @@ function getFiles(Path) { "+fmp[3]+"\ "+fmp[4]+"\ \ - "+lan.files.file_menu_copy+" | \ - "+lan.files.file_menu_mv+" | \ - "+lan.files.file_menu_rename+" | \ - "+lan.files.file_menu_auth+" | \ - "+lan.files.file_menu_zip+" | \ + 复制batch | \ + 剪切 | \ + 重命名 | \ + 权限 | \ + 压缩 | \ "+bodyZip+download+"\ - "+lan.files.file_menu_del+"\ + 删除\ "; } else{ @@ -600,11 +600,11 @@ function showSeclect(){ var count = totalFile(); var BatchTools = ''; if(count > 1){ - BatchTools = '\ - \ - \ - \ - ' + BatchTools = '\ + \ + \ + \ + ' $("#Batch").html(BatchTools); }else{ $("#Batch").html(BatchTools); @@ -638,7 +638,7 @@ window.onresize = function(){ } //批量操作 -function Batch(type,access){ +function batch(type,access){ var path = $("#DirPathPlace input").val(); var el = document.getElementsByTagName('input'); var len = el.length; @@ -668,7 +668,7 @@ function Batch(type,access){ layer.closeAll(); } if(type == 4){ - AllDeleteFileSub(data,path); + allDeleteFileSub(data,path); setCookie('BatchPaste',oldType); return; } @@ -901,15 +901,15 @@ function deleteDir(dirName){ }); } //批量删除文件 -function AllDeleteFileSub(data,path){ - layer.confirm(lan.files.del_all_msg,{title:lan.files.del_all_file,closeBtn:2,icon:3},function(){ - layer.msg("
"+lan.public.the+"
",{icon:16,time:0,shade: [0.3, '#000']}); +function allDeleteFileSub(data,path){ + layer.confirm('您确实要把这些文件放入回收站吗?',{title:'批量删除文件',closeBtn:2,icon:3},function(){ + layer.msg("
正在处理,请稍候...
",{icon:16,time:0,shade: [0.3, '#000']}); setTimeout(function(){getSpeed('.myspeed');},1000); $.post('files?action=SetBatchData',data,function(rdata){ layer.closeAll(); getFiles(path); layer.msg(rdata.msg,{icon:1}); - }); + },'json'); }); } diff --git a/route/templates/default/files.html b/route/templates/default/files.html index 51ba835be..2476ed562 100755 --- a/route/templates/default/files.html +++ b/route/templates/default/files.html @@ -48,11 +48,11 @@