luci2: fix rendering of LuCI2.cbi.MultiValue
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 4 Nov 2013 16:41:20 +0000 (16:41 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 4 Nov 2013 16:41:20 +0000 (16:41 +0000)
luci2/htdocs/luci2/luci2.js

index 98cd4411df400b785b093a5e8966ec9eae6cb467..6481c0bd90416c989d2f6e092e8c482527bc53da 100644 (file)
@@ -3902,16 +3902,13 @@ function LuCI2()
                                for (var i = 0; i < this.choices.length; i++)
                                {
                                        $('<label />')
+                                               .addClass('checkbox')
                                                .append($('<input />')
-                                                       .addClass('cbi-input-checkbox')
                                                        .attr('type', 'checkbox')
                                                        .attr('value', this.choices[i][0])
                                                        .prop('checked', s[this.choices[i][0]]))
                                                .append(this.choices[i][1])
                                                .appendTo(t);
-
-                                       $('<br />')
-                                               .appendTo(t);
                                }
 
                        return t;