luci-base: ui.js: implement UIDropdown.{add,clear}Choices()
authorJo-Philipp Wich <jo@mein.io>
Mon, 30 Dec 2019 13:04:18 +0000 (14:04 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 30 Dec 2019 13:52:27 +0000 (14:52 +0100)
commitb440eafb692354df18efac8f8e7e024d91ffde1b
tree80f48144afb6a198881ffd80e82eda7bb55ea230
parentbb07c50f5e3036cf164b567c65fd2d1f34795b0f
luci-base: ui.js: implement UIDropdown.{add,clear}Choices()

The new `addChoices()` and `clearChoices()` functions allow clearing and
adding new options to existing dropdown instances respectively.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b0836b037e55bfc9201e60a9446f2f7800d7f195)
modules/luci-base/htdocs/luci-static/resources/ui.js