themes/openwrt: add an AJAX activity indicator toggle to turn refreshes on and off
This commit is contained in:
parent
3b2d4ab183
commit
d77b837364
2 changed files with 19 additions and 0 deletions
|
@ -166,6 +166,20 @@ div.hostinfo {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#xhr_poll_status {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#xhr_poll_status #xhr_poll_status_off {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #FF0000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#xhr_poll_status #xhr_poll_status_on {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #00FF00;
|
||||||
|
}
|
||||||
|
|
||||||
#menubar {
|
#menubar {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -131,6 +131,11 @@ require("luci.http").prepare_content("application/xhtml+xml")
|
||||||
<div class="hostinfo">
|
<div class="hostinfo">
|
||||||
<%=hostname%> | <%=luci.version.distversion%> |
|
<%=hostname%> | <%=luci.version.distversion%> |
|
||||||
<%:Load%>: <%="%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" % load15%>
|
<%:Load%>: <%="%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" % load15%>
|
||||||
|
<span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
|
||||||
|
| <%:Auto Refresh%>:
|
||||||
|
<span id="xhr_poll_status_on"><%:on%></span>
|
||||||
|
<span id="xhr_poll_status_off" style="display:none"><%:off%></span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul id="modemenu"><%
|
<ul id="modemenu"><%
|
||||||
|
|
Loading…
Reference in a new issue