增加删除所有配置规则功能.

This commit is contained in:
zhangwenqing
2019-04-16 16:46:16 +08:00
parent 3bd9c15566
commit a1998f24f7
11 changed files with 123 additions and 2 deletions

View File

@@ -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" >