From 5b09d39e9ccd2a048353e9415497b0d3efe580f1 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 10 Feb 2016 19:36:37 +0100 Subject: luci-base: cbi: rely on auto-serialization for combobox choices Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/view/cbi/value.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/luasrc/view/cbi/value.htm b/modules/luci-base/luasrc/view/cbi/value.htm index e6e0287ef3..c8c905eb11 100644 --- a/modules/luci-base/luasrc/view/cbi/value.htm +++ b/modules/luci-base/luasrc/view/cbi/value.htm @@ -12,7 +12,7 @@ ifattr(self.datatype, "data-type", self.datatype) .. ifattr(self.datatype, "data-optional", self.optional or self.rmempty) .. ifattr(self.combobox_manual, "data-manual", self.combobox_manual) .. - ifattr(#self.keylist > 0, "data-choices", luci.util.serialize_json({ self.keylist, self.vallist })) + ifattr(#self.keylist > 0, "data-choices", { self.keylist, self.vallist }) %> /> <% if self.password then %><% end %> <%+cbi/valuefooter%> -- cgit v1.2.3