修正保护名单管理未选中数据删除不校验问题

This commit is contained in:
zhangwenqing
2019-05-30 10:36:44 +08:00
parent 95dc4a7e5f
commit b1bf4d1185

View File

@@ -64,7 +64,6 @@
var str=""; var str="";
checkboxes.each(function(){ checkboxes.each(function(){
if(true == $(this).is(':checked')){ if(true == $(this).is(':checked')){
str+=$(this).attr("id")+","; str+=$(this).attr("id")+",";
} }
}); });
@@ -72,21 +71,20 @@
ids = str.substr(0,str.length-1); ids = str.substr(0,str.length-1);
} }
var canDel=true; if(ids.length > 0){
if(canDel){ top.$.jBox.confirm("<spring:message code='confirm_message'/>","<spring:message code='info'/>",function(v,h,f){
var added = "";
top.$.jBox.confirm("<spring:message code='confirm_message'/>"+added,"<spring:message code='info'/>",function(v,h,f){
if(v=="ok"){ if(v=="ok"){
window.location = url+"&ids="+ids; window.location = url+"&ids="+ids;
} }
},{buttonsFocus:1}); },{buttonsFocus:1});
top.$('.jbox-body .jbox-icon').css('top','55px'); top.$('.jbox-body .jbox-icon').css('top','55px');
}else{ }else{
$.jBox.tip(tip); top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
return false; return;
} }
} }
</script> </script>
</head> </head>