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

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="";
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("<spring:message code='confirm_message'/>"+added,"<spring:message code='info'/>",function(v,h,f){
if(ids.length > 0){
top.$.jBox.confirm("<spring:message code='confirm_message'/>","<spring:message code='info'/>",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("<spring:message code='one_more'/>", "<spring:message code='info'/>");
return;
}
}
</script>
</head>