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>
Sun, 20 Jan 2019 11:00:37 +0000 (12:00 +0100)
commitf1a5b179dd6f0d1cf91a47f4e7ff13759de9cf8f
treec978a6426bfb506f9e14ddbf978d4cfcab36c5cd
parent1f423b1141173231c22edbd97fb99ac2f55f28c2
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>
(cherry picked from commit 9e6949849d7a34d17a7e43c79038f26a9b98d879)
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