luci/applications/luci-app-ltqtapi/luasrc/view/telephony_status.htm
Florian Eckert 121e7fea66 luci-app-*: use default poll interval
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>
2018-12-20 10:20:23 +01:00

31 lines
982 B
HTML

<script type="text/javascript">//<![CDATA[
XHR.poll(-1, '<%=url('admin/telephony/status')%>', null,
function(x, st)
{
var tb = document.getElementById('telephony_status_table');
if (st && tb)
{
tb.removeChild(tb.firstChild);
tb.appendChild(E('<div class="tr cbi-section-table-row cbi-rowstyle-1">', [
E('<div class="td">', st.status),
E('<div class="td">', st.line1),
E('<div class="td">', st.line2)
]));
}
}
);
//]]></script>
<fieldset class="cbi-section">
<legend><%:Current Telephony State%></legend>
<div class="table cbi-section-table" id="telephony_status_table">
<div class="tr cbi-section-table-titles">
<div class="th cbi-section-table-cell"><%:Uplink%></div>
<div class="th cbi-section-table-cell"><%:Port1%></div>
<div class="th cbi-section-table-cell"><%:Port2%></div>
</div>
<div class="tr cbi-section-table-row">
<div class="td" colspan="5"><em><br /><%:Collecting data...%></em></div>
</div>
</div>
</fieldset>