luci-base: fix cbi dropdown quirks with MS Edge
authorJo-Philipp Wich <jo@mein.io>
Wed, 17 Oct 2018 05:43:54 +0000 (07:43 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 17 Oct 2018 06:07:48 +0000 (08:07 +0200)
commit9e6949849d7a34d17a7e43c79038f26a9b98d879
tree1dea5701efd58e00fd593f3fec20cd1d09bd3725
parent703cd248680d9fd5bae647487ce702ec8d86410f
luci-base: fix cbi dropdown quirks with MS Edge

On MS Edge, the behaviour of "value" attributes on "li" elements is
unreliable, so use the "data-" prefix to circumvent the problem.

Ref: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/19320991/
Fixes: #2224
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js
modules/luci-base/luasrc/view/cbi/dropdown.htm
modules/luci-base/luasrc/view/cbi/firewall_zonelist.htm
modules/luci-base/luasrc/view/cbi/network_ifacelist.htm
modules/luci-base/luasrc/view/cbi/network_netlist.htm