summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-bootstrap/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-02-07 19:10:34 +0100
committerJo-Philipp Wich <jo@mein.io>2019-07-07 15:25:49 +0200
commitfda4ba598c0ba1c06f5de43554b40cf0d415d047 (patch)
treed8158138283846efcd93726eec778790ebcd78ce /themes/luci-theme-bootstrap/luasrc
parent1dd910148eaf7b9ed7130d1a067465dd43940da3 (diff)
luci-base: replace uci change pages with client side modal dialog
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-bootstrap/luasrc')
-rw-r--r--themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm22
1 files changed, 0 insertions, 22 deletions
diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
index d784e4ff94..697c5c7bf1 100644
--- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
+++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
@@ -130,27 +130,6 @@
write('</ul>')
end
end
-
- local function render_changes()
- -- calculate the number of unsaved changes
- if tree.nodes[category] and tree.nodes[category].ucidata then
- local ucichanges = 0
-
- local i, j
- for i, j in pairs(require("luci.model.uci").cursor():changes()) do
- ucichanges = ucichanges + #j
- end
-
- if ucichanges > 0 then
- write('<a class="uci_change_indicator label notice" href="%s?redir=%s">%s: %d</a>' %{
- url(category, 'uci/changes'),
- http.urlencode(http.formvalue('redir') or table.concat(disp.context.request, "/")),
- translate('Unsaved Changes'),
- ucichanges
- })
- end
- end
- end
-%>
<!DOCTYPE html>
<html lang="<%=luci.i18n.context.lang%>">
@@ -179,7 +158,6 @@
<a class="brand" href="#"><%=boardinfo.hostname or "?"%></a>
<% render_topmenu() %>
<div class="pull-right">
- <% render_changes() %>
<span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
<span class="label success" id="xhr_poll_status_on"><%:Auto Refresh%> <%:on%></span>
<span class="label" id="xhr_poll_status_off" style="display:none"><%:Auto Refresh%> <%:off%></span>