diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-08 02:31:19 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-08 02:31:19 +0000 |
commit | 9199b2ca02510d796be62d9b1fea46aff6dbe05d (patch) | |
tree | 5b6e287931821a14b6216a142059687db0d2d503 /libs/cbi/luasrc | |
parent | 6ba1aef019e891bf10bd4bdcb34cd61cf813f881 (diff) |
libs/cbi: fix bug in form prefill of zone picker widgets
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/firewall_zonelist.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm b/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm index 0523786641..dcc14fb2dc 100644 --- a/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm +++ b/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm @@ -81,7 +81,7 @@ $Id$ <input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="radio"<%=attr("id", cbid .. "_new") .. attr("name", cbid) .. attr("value", "-") .. ifattr(not selected, "checked", "checked")%> /> <div style="background-color:<%=fwm.zone.get_color()%>; padding:0.5em; display:inline"> <label<%=attr("for", cbid .. "_new")%>><em><%:unspecified -or- create:%> </em></label> - <input style="width:6em" type="text"<%=attr("name", cbid .. ".newzone") .. ifattr(not selected, "value", self.default)%> onfocus="document.getElementById('<%=cbid%>_new').checked=true" /> + <input style="width:6em" type="text"<%=attr("name", cbid .. ".newzone") .. ifattr(not selected, "value", luci.http.formvalue(cbid .. ".newzone") or self.default)%> onfocus="document.getElementById('<%=cbid%>_new').checked=true" /> </div> </li> <% end %> |