luci-base: form.js: rework section add/remove event handling
authorJo-Philipp Wich <jo@mein.io>
Tue, 20 Aug 2019 13:04:13 +0000 (15:04 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 10 Sep 2019 13:28:16 +0000 (15:28 +0200)
commit745878d6cd5aa498916cea13d6887d500bc5c32b
tree5a85dc07dfe727af307cb5fedb70715155948443
parentb0dde567ca79c328e62736e88317dd4a8459bb0d
luci-base: form.js: rework section add/remove event handling

 - Redraw map even when it could not be saved due to validation errors
 - Use createHandlerFn() for attaching event handlers
 - Convert buttons to <button> element to allow use of spinning class

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js