projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-app-nlbw: fix sporadic premature EOF when rendering JSON data
[project/luci.git]
/
applications
/
luci-app-mwan3
/
luasrc
/
view
/
mwan
/
openwrt_overview_status.htm
diff --git
a/applications/luci-app-mwan3/luasrc/view/mwan/openwrt_overview_status.htm
b/applications/luci-app-mwan3/luasrc/view/mwan/openwrt_overview_status.htm
index
9329b92
..
335c95c
100644
(file)
--- a/
applications/luci-app-mwan3/luasrc/view/mwan/openwrt_overview_status.htm
+++ b/
applications/luci-app-mwan3/luasrc/view/mwan/openwrt_overview_status.htm
@@
-1,5
+1,5
@@
<script type="text/javascript">//<![CDATA[
<script type="text/javascript">//<![CDATA[
- XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "
network", "mwan", "overview
", "interface_status")%>', null,
+ XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "
status", "mwan
", "interface_status")%>', null,
function(x, mArray)
{
var status = document.getElementById('mwan_status_text');
function(x, mArray)
{
var status = document.getElementById('mwan_status_text');
@@
-13,19
+13,19
@@
switch (mArray.wans[i].status)
{
case 'online':
switch (mArray.wans[i].status)
{
case 'online':
- stat = '
Online (tracking active)
';
+ stat = '
<%:Online (tracking active)%>
';
cssc = 'wanon';
break;
case 'notMonitored':
cssc = 'wanon';
break;
case 'notMonitored':
- stat = '
Online (tracking off)
';
+ stat = '
<%:Online (tracking off)%>
';
cssc = 'wanon';
break;
case 'offline':
cssc = 'wanon';
break;
case 'offline':
- stat = '
Offline
';
+ stat = '
<%:Offline%>
';
cssc = 'wanoff';
break;
case 'notEnabled':
cssc = 'wanoff';
break;
case 'notEnabled':
- stat = '
Disabled
';
+ stat = '
<%:Disabled%>
';
cssc = 'wanoff';
break;
}
cssc = 'wanoff';
break;
}
@@
-38,7
+38,7
@@
}
else
{
}
else
{
- status.innerHTML = '<strong>
No MWAN interfaces found
</strong>';
+ status.innerHTML = '<strong>
<%:No MWAN interfaces found%>
</strong>';
}
}
);
}
}
);
@@
-46,16
+46,13
@@
<fieldset id="interface_field" class="cbi-section">
<legend><%:MWAN Interface Live Status%></legend>
<fieldset id="interface_field" class="cbi-section">
<legend><%:MWAN Interface Live Status%></legend>
- <div id="mwan_status_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" />
Collecting data...
</div>
+ <div id="mwan_status_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" />
<%:Collecting data...%>
</div>
</fieldset>
<style type="text/css">
.container { /* container for entire page. fixes bootstrap theme's ridiculously small page width */
max-width: 1044px;
}
</fieldset>
<style type="text/css">
.container { /* container for entire page. fixes bootstrap theme's ridiculously small page width */
max-width: 1044px;
}
- #interface_field {
- padding: 12px 20px 20px 20px;
- }
#mwan_status_text {
display: table;
font-size: 14px;
#mwan_status_text {
display: table;
font-size: 14px;