From: Jo-Philipp Wich Date: Wed, 10 Feb 2016 18:38:33 +0000 (+0100) Subject: luci-app-firewall: rely on auto-serialization for combobox choices X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5cfad4338f4749aee0a8d81e3b3727ec6630485d;p=project%2Fluci.git luci-app-firewall: rely on auto-serialization for combobox choices Signed-off-by: Jo-Philipp Wich --- diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm index 4a5bcfd6fa..b3079f3a48 100644 --- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm +++ b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm @@ -61,7 +61,7 @@ 0, "data-choices", luci.util.serialize_json({keys, vals})) + ifattr(#keys > 0, "data-choices", {keys, vals}) %>/> diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm index 817c046c8c..ce275111d8 100644 --- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm +++ b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm @@ -48,7 +48,7 @@ 0, "data-choices", luci.util.serialize_json({ keys, vals })) + ifattr(#keys > 0, "data-choices", { keys, vals }) %> />