mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update luci-base
This commit is contained in:
parent
54f07a7e1e
commit
0a00c769a1
41 changed files with 885 additions and 3727 deletions
|
@ -1226,13 +1226,14 @@ function TypedSection.parse(self, novld)
|
|||
local stval = RESORT_PREFIX .. self.config .. "." .. self.sectiontype
|
||||
local order = self.map:formvalue(stval)
|
||||
if order and #order > 0 then
|
||||
local sid
|
||||
local num = 0
|
||||
local sids, sid = { }, nil
|
||||
for sid in util.imatch(order) do
|
||||
self.map.uci:reorder(self.config, sid, num)
|
||||
num = num + 1
|
||||
sids[#sids+1] = sid
|
||||
end
|
||||
if #sids > 0 then
|
||||
self.map.uci:reorder(self.config, sids)
|
||||
self.changed = true
|
||||
end
|
||||
self.changed = (num > 0)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue