From fda4ba598c0ba1c06f5de43554b40cf0d415d047 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 7 Feb 2019 19:10:34 +0100 Subject: luci-base: replace uci change pages with client side modal dialog Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/themes/material/header.htm | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'themes/luci-theme-material/luasrc') diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm index 9521314e1f..7ce195cc9f 100644 --- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm +++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm @@ -155,26 +155,6 @@ write('') 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('%s: %d' %{ - url(category, 'uci/changes'), - http.urlencode(http.formvalue('redir') or table.concat(disp.context.request, "/")), - translate('Unsaved Changes'), - ucichanges - }) - end - end - end -%> @@ -209,7 +189,6 @@ <%=boardinfo.hostname or "?"%>
- <% render_changes() %>