libs/cbi: auto-select appropriate option if create field is focused
This commit is contained in:
parent
4854a46c68
commit
d3e65f3e1d
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue