Authored by skinny.wu

添加筛选错误信息的按钮

... ... @@ -73,6 +73,8 @@
<div class="container-fluid">
<button id = "btn_only_error" class="btn btn-default" style="margin-top: 15px" onclick="onlyErrorBtnOnClick()">Only Errors</button>
<%--<div class="widget-box" style="background: white">--%>
<%--<div class="widget-title" style="background: white">--%>
<%--<h5>DNS Monitor状态 host: ${host} uid: ${uid} </h5>--%>
... ... @@ -81,6 +83,8 @@
<input id = "host" value="${host}" type="hidden" >
<input id = "uid" value="${uid}" type="hidden" >
<%--<div class="container-fluid">--%>
<div id="div_table" style="margin-top: 15px">
... ...
... ... @@ -75,3 +75,18 @@ function aHref(page) {
getHistroyInfo();
}
//当Only Btn点击,则更改isFailedStatus状态,同时修改btn的样式
function onlyErrorBtnOnClick() {
currentPage = 0;
if(isFailedStatus == false) {
isFailedStatus = true;
document.getElementById("btn_only_error").className= "btn btn-primary";
} else {
isFailedStatus = false;
document.getElementById("btn_only_error").className="btn btn-default";
}
getHistroyInfo();
}
... ...