From 2e5285979bd79761fde93e05148c0748ca3f62b4 Mon Sep 17 00:00:00 2001 From: jerrykuku Date: Mon, 15 Feb 2021 23:38:03 +0800 Subject: [PATCH] fix some error --- Makefile | 4 +-- htdocs/luci-static/argon/js/polyfill.min.js | 3 +++ luasrc/view/themes/argon/header.htm | 2 +- luasrc/view/themes/argon/sysauth.htm | 28 ++++++++++----------- 4 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 htdocs/luci-static/argon/js/polyfill.min.js diff --git a/Makefile b/Makefile index 56747a8..1f78622 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,8 @@ include $(TOPDIR)/rules.mk LUCI_TITLE:=Argon Theme LUCI_DEPENDS:= -PKG_VERSION:=2.2.5 -PKG_RELEASE:=20200914 +PKG_VERSION:=2.2.6 +PKG_RELEASE:=20210215 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/htdocs/luci-static/argon/js/polyfill.min.js b/htdocs/luci-static/argon/js/polyfill.min.js new file mode 100644 index 0000000..4729194 --- /dev/null +++ b/htdocs/luci-static/argon/js/polyfill.min.js @@ -0,0 +1,3 @@ +/* Disable minification (remove `.min` from URL path) for more info */ + +(function(undefined) {}).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {}); \ No newline at end of file diff --git a/luasrc/view/themes/argon/header.htm b/luasrc/view/themes/argon/header.htm index f0030f1..1da2486 100644 --- a/luasrc/view/themes/argon/header.htm +++ b/luasrc/view/themes/argon/header.htm @@ -114,7 +114,7 @@ <%=css %> <% end -%> - + diff --git a/luasrc/view/themes/argon/sysauth.htm b/luasrc/view/themes/argon/sysauth.htm index eec4efa..0820aa5 100644 --- a/luasrc/view/themes/argon/sysauth.htm +++ b/luasrc/view/themes/argon/sysauth.htm @@ -82,25 +82,23 @@ } }) - <% else %> -
0 and currentBg["type"] ~= "mp4") then + bg_url = currentBg.url + end %> - style="background-image:url(<%=bg_url%>)" - <% elseif (bgcount > 0 and currentBg["type"] ~= "mp4") then %> - style="background-image:url(<%=currentBg.url%>)" - <% end %> - >
- +
<% end %>