From b1bf4d118521f4f0dc5d12ffc2db55f6b9c8fbd5 Mon Sep 17 00:00:00 2001 From: zhangwenqing Date: Thu, 30 May 2019 10:36:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BF=9D=E6=8A=A4=E5=90=8D?= =?UTF-8?q?=E5=8D=95=E7=AE=A1=E7=90=86=E6=9C=AA=E9=80=89=E4=B8=AD=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=88=A0=E9=99=A4=E4=B8=8D=E6=A0=A1=E9=AA=8C=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/basics/protectionInfoList.jsp | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/basics/protectionInfoList.jsp b/src/main/webapp/WEB-INF/views/basics/protectionInfoList.jsp index e44cb75bb..5d593e11a 100644 --- a/src/main/webapp/WEB-INF/views/basics/protectionInfoList.jsp +++ b/src/main/webapp/WEB-INF/views/basics/protectionInfoList.jsp @@ -64,7 +64,6 @@ var str=""; checkboxes.each(function(){ if(true == $(this).is(':checked')){ - str+=$(this).attr("id")+","; } }); @@ -72,21 +71,20 @@ ids = str.substr(0,str.length-1); } - var canDel=true; - if(canDel){ - var added = ""; - - top.$.jBox.confirm(""+added,"",function(v,h,f){ + if(ids.length > 0){ + top.$.jBox.confirm("","",function(v,h,f){ if(v=="ok"){ window.location = url+"&ids="+ids; - } },{buttonsFocus:1}); top.$('.jbox-body .jbox-icon').css('top','55px'); - }else{ - $.jBox.tip(tip); - return false; - } + + }else{ + top.$.jBox.tip("", ""); + return; + + } + }