Replace all XHR poll time number with -1 so they will use the default poll interval time value from "/etc/config/luci". If this is not set then 5 seconds as default is used. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
36 lines
840 B
HTML
36 lines
840 B
HTML
<%#
|
|
Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
|
|
This is free software, licensed under the Apache License, Version 2.0
|
|
-%>
|
|
|
|
<%+header%>
|
|
<%+adblock/adblock_css%>
|
|
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function log_update()
|
|
{
|
|
XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "logread")%>', null,
|
|
function(x)
|
|
{
|
|
if (!x)
|
|
{
|
|
return;
|
|
}
|
|
var view = document.getElementById("view_id");
|
|
view.value = x.responseText;
|
|
view.scrollTop = view.scrollHeight;
|
|
});
|
|
}
|
|
window.onload = log_update();
|
|
//]]>
|
|
</script>
|
|
|
|
<div class="cbi-map">
|
|
<div class="cbi-section">
|
|
<div class="cbi-section-descr"><%:The syslog output, pre-filtered for adblock related messages only.%></div>
|
|
<textarea id="view_id" readonly="readonly" wrap="off" value=""></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<%+footer%>
|