asn 作为域,已被策略引用并下发时,此asn不允许被删除
This commit is contained in:
@@ -45,15 +45,20 @@
|
||||
ids.push($(this).attr("id"));
|
||||
asnIds.push($(this).attr("asnId"));
|
||||
groupIds.push($(this).attr("asnGroup"));
|
||||
/* if($(this).attr("isIssued")==1){
|
||||
if($(this).attr("isUsed")==1){
|
||||
canDel=false;
|
||||
} */
|
||||
}
|
||||
}
|
||||
});
|
||||
if(str.substr(str.length-1)== ','){
|
||||
ids = str.substr(0,str.length-1);
|
||||
}
|
||||
var tip='<spring:message code="can_not_delete_asn_group_with_audited_ip"/>';
|
||||
var tip='<spring:message code="can_not_delete_issued_ans_group"/>';
|
||||
if(!canDel){
|
||||
$.jBox.tip(tip);
|
||||
return false;
|
||||
}
|
||||
if(str.substr(str.length-1)== ','){
|
||||
ids = str.substr(0,str.length-1);
|
||||
}
|
||||
tip='<spring:message code="can_not_delete_asn_group_with_audited_ip"/>';
|
||||
if(asnIds.length>0){
|
||||
$.ajax({
|
||||
type:'post',
|
||||
@@ -278,7 +283,7 @@
|
||||
<tbody>
|
||||
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
||||
<tr>
|
||||
<td><input type="checkbox" class="i-checks" id="${cfg.id}" asnId="${cfg.asnId}" isValid="${cfg.isValid}" asnGroup="${cfg.groupId}"></td>
|
||||
<td><input type="checkbox" class="i-checks" id="${cfg.id}" asnId="${cfg.asnId}" isValid="${cfg.isValid}" isUsed="${cfg.isUsed}" asnGroup="${cfg.groupId}"></td>
|
||||
<td>
|
||||
<a href="javascript:;" data-original-title="${cfg.organization}"
|
||||
class="tooltips" data-flag="false" data-html="true" data-placement="top">
|
||||
|
||||
Reference in New Issue
Block a user