修复不能显示未保存配置的bug 同时修复一些小的显示Bug

This commit is contained in:
jerrykuku 2020-01-04 20:37:50 +08:00
parent 53a8baea39
commit bf38a6cb85
3 changed files with 12 additions and 6 deletions

View File

@ -8,8 +8,8 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=Argon Theme LUCI_TITLE:=Argon Theme
LUCI_DEPENDS:= LUCI_DEPENDS:=
PKG_VERSION:=1.3 PKG_VERSION:=1.4
PKG_RELEASE:=01-20191111 PKG_RELEASE:=01-20200101
include $(TOPDIR)/feeds/luci/luci.mk include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -1429,6 +1429,9 @@ footer > a {
position: fixed; position: fixed;
z-index: 100; z-index: 100;
} }
.main-left::-webkit-scrollbar {width: 5px;height: 1px;}
.main-left::-webkit-scrollbar-thumb {background-color: #f6f9fc}
.main-left::-webkit-scrollbar-track {background-color:#fff ;}
.main-right { .main-right {
@ -1493,6 +1496,7 @@ table > tbody > tr > td, table > tbody > tr > th, table > tfoot > tr > td, table
.cbi-section-table { .cbi-section-table {
border: none; border: none;
margin: 0 !important;
} }
@ -2350,8 +2354,7 @@ select[multiple="multiple"] {
overflow-y: visible; overflow-y: visible;
} }
#cbi-network .cbi-section , #cbi-network .cbi-section .cbi-section-node{ #cbi-network .cbi-section , #cbi-network .cbi-section .cbi-section-node{
overflow-x:auto;
overflow-y: visible;
} }
.cbi-section-node .cbi-value{ .cbi-section-node .cbi-value{
padding: 0.3rem 0rem 0.3rem 1rem; padding: 0.3rem 0rem 0.3rem 1rem;

View File

@ -174,9 +174,12 @@
-- calculate the number of unsaved changes -- calculate the number of unsaved changes
if tree.nodes[category] and tree.nodes[category].ucidata then if tree.nodes[category] and tree.nodes[category].ucidata then
local ucichanges = 0 local ucichanges = 0
local i, j
for i, j in pairs(require("luci.model.uci").cursor():changes()) do for i, j in pairs(require("luci.model.uci").cursor():changes()) do
ucichanges = ucichanges + #j for k, l in pairs(j) do
for m, n in pairs(l) do
ucichanges = ucichanges + 1;
end
end
end end
if ucichanges > 0 then if ucichanges > 0 then