themes/openwrt: add an AJAX activity indicator toggle to turn refreshes on and off
[project/luci.git] / themes / openwrt / luasrc / view / themes / openwrt.org / header.htm
index 33a0de976c67ec18934d5ec32c89e598f6b2a617..c401a12e6b2f8dd6b887dbdff00769e681a2f549 100644 (file)
@@ -131,6 +131,11 @@ require("luci.http").prepare_content("application/xhtml+xml")
 <div class="hostinfo">
        <%=hostname%> | <%=luci.version.distversion%> |
        <%: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>
 
 <ul id="modemenu"><%