projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
69406a2
)
libs/web: track submit state in network_ifacelist widget, fixes deselecting all membe...
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 14 Sep 2011 09:28:16 +0000
(09:28 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 14 Sep 2011 09:28:16 +0000
(09:28 +0000)
libs/web/luasrc/view/cbi/network_ifacelist.htm
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/view/cbi/network_ifacelist.htm
b/libs/web/luasrc/view/cbi/network_ifacelist.htm
index
a1b9f74
..
192bcac
100644
(file)
--- a/
libs/web/luasrc/view/cbi/network_ifacelist.htm
+++ b/
libs/web/luasrc/view/cbi/network_ifacelist.htm
@@
-3,12
+3,15
@@
<%-
local utl = require "luci.util"
local net = require "luci.model.network".init()
<%-
local utl = require "luci.util"
local net = require "luci.model.network".init()
+ local cbeid = luci.cbi.FEXIST_PREFIX .. self.config .. "." .. section .. "." .. self.option
local iface
local ifaces = net:get_interfaces()
local iface
local ifaces = net:get_interfaces()
- local value = self:formvalue(section)
-
- if not value or value == "" then
+ local value
+
+ if self.map:formvalue(cbeid) == "1" then
+ value = self:formvalue(section) or self.default or ""
+ else
value = self:cfgvalue(section) or self.default
end
value = self:cfgvalue(section) or self.default
end
@@
-29,6
+32,7
@@
end
-%>
end
-%>
+<input type="hidden" name="<%=cbeid%>" value="1" />
<ul style="margin:0; list-style-type:none">
<% for _, iface in ipairs(ifaces) do
local link = iface:adminlink()
<ul style="margin:0; list-style-type:none">
<% for _, iface in ipairs(ifaces) do
local link = iface:adminlink()