diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-08 00:46:01 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-08 00:46:01 +0000 |
commit | d3e65f3e1d70dd45e1587e3a308a10925091cc90 (patch) | |
tree | aefc5d2c8d686f6ac3a2f623762d6c2da6e2ce48 /libs/cbi/luasrc/view | |
parent | 4854a46c680066a7914a521552d84c9df90c7d6c (diff) |
libs/cbi: auto-select appropriate option if create field is focused
Diffstat (limited to 'libs/cbi/luasrc/view')
-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 7474b77be..fb1f5e516 100644 --- a/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm +++ b/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm @@ -54,7 +54,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 value, "checked", "checked")%> /> <div style="background-color:<%=fwm.zone.get_color()%>; padding:0.5em; display:inline"> <label<%=attr("for", cbid .. "_new")%>><em><%:a_s_ipt_zone_unspec_create unspecified -or- create:%> </em></label> - <input style="width:6em" type="text"<%=attr("name", cbid .. ".newzone")%> /> + <input style="width:6em" type="text"<%=attr("name", cbid .. ".newzone")%> onfocus="document.getElementById('<%=cbid%>_new').checked=true" /> </div> </li> </ul> |