From 6e7699e8ca8cb81d970cf1e06a4a5174ae3752c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=83=A1?= <3203164629@qq.com> Date: Thu, 20 Jun 2024 00:47:35 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=89=E6=8B=A9=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E7=AA=97=E5=8F=A3=E7=82=B9=E5=87=BB=E7=A1=AE=E5=AE=9A?= =?UTF-8?q?=E5=90=8E=E6=97=A0=E6=B3=95=E5=85=B3=E9=97=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 小胡 <3203164629@qq.com> --- dzz/system/template/filelist.htm | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/dzz/system/template/filelist.htm b/dzz/system/template/filelist.htm index 843df2f..18c5182 100644 --- a/dzz/system/template/filelist.htm +++ b/dzz/system/template/filelist.htm @@ -286,26 +286,26 @@ function canclecreate(obj, node) { $(obj).closest('.layer').remove(); inst.delete_node(node); } -function submitdata(){ - var fid = $('#'+ctrlid).val(); - if(!fid){ -// showDialog(__lang.please_select_dir); - showmessage(__lang.please_select_dir,"danger",2000,1); +function submitdata() { + var fid = $('#' + ctrlid).val(); + if (!fid) { + //showDialog(__lang.please_select_dir); + showmessage(__lang.please_select_dir, "danger", 2000, 1); + return false; + }else{ + $.post(MOD_URL+'&op=positionlist&do=geffolderinfo',{'fid':fid},function(data){ + try{if(typeof parent.showWindow_callback == 'function') parent.showWindow_callback(fid,data);}catch(e){} + if(parent.$callback){ + try{ parent.$callback(fid,data);}catch(e){} + }else{ + try{ opened.$callback(fid,data);}catch(e){} + } + + hide_window(); + },'json') + } return false; - }else{ - $.post(MOD_URL+'&op=positionlist&do=geffolderinfo',{'fid':fid},function(data){ - try{if(typeof parent.showWindow_callback == 'function') parent.showWindow_callback(fid,data);}catch(e){} - if(parent.$callback){ - try{ parent.$callback(fid,data);}catch(e){} - }else{ - try{ opened.$callback(fid,data);}catch(e){} - } - - hide_window(); - },'json') } - return false; -} function hide_window(){ if(opened){ window.close();