luci-app-firewall: rely on auto-serialization for combobox choices
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
5b09d39e9c
commit
5cfad4338f
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@
|
|||
</td>
|
||||
<td class="cbi-section-table-cell" style="width:110px">
|
||||
<input type="text" class="cbi-input-text" id="_newfwd.intaddr" name="_newfwd.intaddr" data-type="host" data-optional="true"<%=
|
||||
ifattr(#keys > 0, "data-choices", luci.util.serialize_json({keys, vals}))
|
||||
ifattr(#keys > 0, "data-choices", {keys, vals})
|
||||
%>/>
|
||||
</td>
|
||||
<td class="cbi-section-table-cell" style="width:110px">
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
</td>
|
||||
<td class="cbi-section-table-cell" style="width:110px">
|
||||
<input type="text" class="cbi-input-text" id="_newsnat.dip" name="_newsnat.dip" placeholder="<%:Do not rewrite%>" data-type="ip4addr" data-optional="true"<%=
|
||||
ifattr(#keys > 0, "data-choices", luci.util.serialize_json({ keys, vals }))
|
||||
ifattr(#keys > 0, "data-choices", { keys, vals })
|
||||
%> />
|
||||
</td>
|
||||
<td class="cbi-section-table-cell" style="width:110px">
|
||||
|
|
Loading…
Reference in a new issue