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>
29 lines
686 B
HTML
29 lines
686 B
HTML
<script type="text/javascript">//<![CDATA[
|
|
XHR.poll(-1, '<%=url("admin/services/minidlna_status")%>', null,
|
|
function(x, st)
|
|
{
|
|
var tb = document.getElementById('minidlna_status');
|
|
if (st && tb)
|
|
{
|
|
if (st.running)
|
|
{
|
|
tb.innerHTML = String.format(
|
|
'<%:The miniDLNA service is active, serving %d audio, %d video and %d image files.%>',
|
|
st.audio, st.video, st.image
|
|
);
|
|
}
|
|
else
|
|
{
|
|
tb.innerHTML = '<em><%:The miniDLNA service is not running.%></em>';
|
|
}
|
|
}
|
|
}
|
|
);
|
|
//]]></script>
|
|
|
|
<fieldset class="cbi-section">
|
|
<legend><%:miniDLNA Status%></legend>
|
|
<p id="minidlna_status">
|
|
<em><%:Collecting data...%></em>
|
|
</p>
|
|
</fieldset>
|