summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-bootstrap
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-04-26 08:21:59 +0200
committerJo-Philipp Wich <jo@mein.io>2018-04-26 08:26:30 +0200
commit736d8fee47275c36b83949a141363c16cda04be4 (patch)
tree074dfebca89f3da325bfdebfbe5f1d12ecf138f6 /themes/luci-theme-bootstrap
parent8459ec0ec8321a3a4e153f31398e1fe0a9306885 (diff)
themes: add common class to uci change indicator
Add a common CSS class name to the change indicator and modify the openwrt.org theme to hide it when no changes are present, similar to all other themes. This is needed for upcoming uci apply handling changes to be able to auto-hide the indicator without page reload after an apply. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-bootstrap')
-rw-r--r--themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm2
1 files changed, 1 insertions, 1 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 0441c9583..7596236a6 100644
--- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
+++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
@@ -145,7 +145,7 @@
end
if ucichanges > 0 then
- write('<a class="label notice" href="%s?redir=%s">%s: %d</a>' %{
+ write('<a class="uci_change_indicator" class="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'),