luci-app-firewall: rely on auto-serialization for combobox choices

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2016-02-10 19:38:33 +01:00
parent 5b09d39e9c
commit 5cfad4338f
2 changed files with 2 additions and 2 deletions

View file

@ -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">

View file

@ -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">