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:51:40 +0000 (14:51 +0100)
commitb0836b037e55bfc9201e60a9446f2f7800d7f195
tree47871f8002e8d7b34b12e66b53ef48d520e4673b
parent0d0a3f4d0df44387fe9bec0c5597f6c491f44eec
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>
modules/luci-base/htdocs/luci-static/resources/ui.js