增加删除所有配置规则功能.
This commit is contained in:
@@ -265,6 +265,29 @@ function initSpoofingIp(){
|
||||
}
|
||||
})
|
||||
}
|
||||
function clearPolicies(){
|
||||
top.$.jBox.confirm("<spring:message code='confirm_message'/>","Clear Policies",function(v,h,f){
|
||||
if(v=="ok"){
|
||||
$.ajax({
|
||||
type:'get',
|
||||
url:'${ctx}/sys/clearPolicies',
|
||||
dataType:'json',
|
||||
async:false,
|
||||
success:function(data,textStatus){
|
||||
if(data){
|
||||
top.$.jBox.info('Policies Cleaning Successful!', 'Waring', {closed:function(v,h,f){
|
||||
window.location.href = "${ctx}/index";
|
||||
}});
|
||||
top.$('.jbox-body .jbox-icon').css('top','55px');
|
||||
}else{
|
||||
alertx("Policies Cleanup Failure!");
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
top.$('.jbox-body .jbox-icon').css('top','55px');
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.bodyhi{
|
||||
@@ -391,6 +414,15 @@ background:#3d3d3d;
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown dropdown-user nav" style="display: none">
|
||||
<a href="javascript:clearPolicies()" id="helpHref" target="_self" >
|
||||
<i class="fa fa-remove"></i>
|
||||
<span class="username username-hide-on-mobile" id="help">
|
||||
Clear Policies
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</c:if>
|
||||
<li class="dropdown dropdown-user nav">
|
||||
<a href="${pageContext.request.contextPath}/static/PotPlayerSetup64.exe" id="helpHref" target="_self" >
|
||||
|
||||
Reference in New Issue
Block a user