From cd1a979593ab90753cda98ac5fa69e23037758d7 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 3 Apr 2018 13:16:44 +0200 Subject: luci-app-mwan3: remove diag-rc-legend field id On the material theme the "Collecting data" hint in the status pages was still present on the page even though the command was sucessfull executed. Remove the legend tag and move the info "Collecting data" to the "diag-rc-output" tag will solve this issue. Signed-off-by: Florian Eckert --- .../luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm | 3 ++- applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm | 4 +--- applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm | 3 --- applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm | 5 +++-- .../luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm | 4 +--- 5 files changed, 7 insertions(+), 12 deletions(-) (limited to 'applications/luci-app-mwan3') diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm b/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm index 4ec0edf04..fcc1bcf69 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm @@ -69,6 +69,7 @@ XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface_
<%:MWAN Interfaces%>
- <%:Loading%><%:Collecting data...%> + <%:Loading%> + <%:Collecting data...%>
diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm index 70eac7252..bcc23beb3 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm @@ -18,9 +18,7 @@ XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "detailed_status")%>', null, function(x) { - var legend = document.getElementById('diag-rc-legend'); var output = document.getElementById('diag-rc-output'); - legend.style.display = 'none'; output.innerHTML = String.format('
%h
', x.responseText); } ); @@ -32,9 +30,9 @@
<%:INFO: MWAN not running%>
<%end%>
- <%:Collecting data...%> <%:Loading%> + <%:Collecting data...%>
diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm index f1c5d8fd9..22f4734dd 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm @@ -31,7 +31,6 @@ function update_status(iface, task) { - var legend = document.getElementById('diag-rc-legend'); var output = document.getElementById('diag-rc-output'); output.innerHTML = @@ -45,7 +44,6 @@ stxhr.post('<%=url('admin/status/mwan')%>/diagnostics_display' + '/' + iface + '/' + task, { token: '<%=token%>' }, function(x) { - legend.style.display = 'none'; output.innerHTML = String.format('
%h
', x.responseText); } ); @@ -86,7 +84,6 @@ diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm index cb476967f..4518bd658 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm @@ -15,6 +15,7 @@ -<%+mwan/overview_status_interface%> - +
+ <%+mwan/overview_status_interface%> +
<%+footer%> diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm index 77d009231..f60e0da0a 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm @@ -18,9 +18,7 @@ XHR.poll(15, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "troubleshooting_display")%>', null, function(x) { - var legend = document.getElementById('diag-rc-legend'); var output = document.getElementById('diag-rc-output'); - legend.style.display = 'none'; output.innerHTML = String.format('
%h
', x.responseText); } ); @@ -32,9 +30,9 @@
<%:INFO: MWAN not running%>
<%end%>
- <%:Collecting data...%> <%:Loading%> + <%:Collecting data...%>
-- cgit v1.2.3