diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-02-07 19:10:34 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-07-07 15:25:49 +0200 |
commit | fda4ba598c0ba1c06f5de43554b40cf0d415d047 (patch) | |
tree | d8158138283846efcd93726eec778790ebcd78ce /themes/luci-theme-openwrt | |
parent | 1dd910148eaf7b9ed7130d1a067465dd43940da3 (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-openwrt')
-rw-r--r-- | themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm index c5186c40c..fbe030d18 100644 --- a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm @@ -125,25 +125,6 @@ end end end - - local function render_changes() - if tree.nodes[category] and tree.nodes[category].ucidata then - local ucic = 0 - local i, j - for i, j in pairs(require("luci.model.uci").cursor():changes()) do - ucic = ucic + #j - end - - if ucic > 0 then - write('<div id="savemenu" class="uci_change_indicator"><a class="warning" href="%s?redir=%s">%s: %d</a></div>' %{ - url(category, 'uci/changes'), - http.urlencode(http.formvalue('redir') or table.concat(disp.context.request, "/")), - translate('Unsaved Changes'), - ucic - }) - end - end - end -%> <?xml version="1.0" encoding="utf-8"?> @@ -234,8 +215,6 @@ </ul> <% end %> -<% render_changes() %> - <div class="clear"></div> </div> |