luci/modules/luci-base/luasrc/view/cbi
Jo-Philipp Wich fcc9cd6a9a luci-base: fix field section add button/input field names
Some CBI map models, mainly the Network -> VLAN page, expect a valid
previous section ID in their Section:create() callback.

Previous refactoring of the tblsection markup broke this behaviour as
the "section" loop variable was accidentally localized, causing it to
be undefined outside of the loop body which caused the section add
button and name input fields to get rendered with a wrong "name"
attribute.

Fix this by moving the "section" variable declaration out of the loop
and by readding references to it in the non-anonymous section add case.

Fixes FS#1657
Fixes 002c4d1d5 ("luci-base: add "Name" label to autogenerated title column")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-16 17:34:26 +02:00
..
apply_widget.htm luci-base: apply_widget: various fixes 2018-07-12 18:10:10 +02:00
browser.htm luci-base: fix browser.htm template 2018-03-01 12:31:50 +01:00
button.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00
cell_valuefooter.htm treewide: convert HTML tables to div 2018-05-28 15:18:45 +02:00
cell_valueheader.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00
compound.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
delegator.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
dropdown.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00
dvalue.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
dynlist.htm luci-base: cbi: further refactoring 2016-02-10 18:11:49 +01:00
error.htm Globally convert headline anchors into name attributes. 2015-10-06 13:30:33 +02:00
filebrowser.htm luci-base: escape path strings and field parameter 2018-04-07 11:43:44 +02:00
firewall_zoneforwards.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00
firewall_zonelist.htm treewide: switch firewall zone, network and iface lists to dropdown code 2018-06-08 08:19:20 +02:00
footer.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00
full_valuefooter.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00
full_valueheader.htm luci-base: refactor cbi dependency handling code 2016-01-18 17:05:36 +01:00
fvalue.htm luci-base: view: make checkboxes and radio buttons styleable 2016-03-03 22:06:39 +01:00
header.htm luci-base: fix placement of CBI strings 2018-07-09 17:04:10 +02:00
lvalue.htm luci-base: view: make checkboxes and radio buttons styleable 2016-03-03 22:06:39 +01:00
map.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00
mvalue.htm luci-base: mvalue: fix column wrapping 2017-01-26 00:07:26 +01:00
network_ifacelist.htm luci-base: fix handling alias interfaces in ifacelist widget 2018-07-15 17:28:38 +02:00
network_netinfo.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
network_netlist.htm treewide: switch firewall zone, network and iface lists to dropdown code 2018-06-08 08:19:20 +02:00
nsection.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00
nullsection.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00
simpleform.htm treewide: always include cbi.js 2018-07-09 11:51:43 +02:00
tabcontainer.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
tabmenu.htm luci-base: improve tab hide logic 2016-01-18 11:23:11 +01:00
tblsection.htm luci-base: fix field section add button/input field names 2018-07-16 17:34:26 +02:00
tsection.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00
tvalue.htm luci-base: cbi: refactor event handling js 2016-01-18 19:34:02 +01:00
ucisection.htm luci-base: cbi: further refactoring 2016-02-10 18:11:49 +01:00
upload.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00
value.htm luci-base: cbi: rely on auto-serialization for combobox choices 2016-02-10 19:36:37 +01:00
valuefooter.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
valueheader.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00