luci-base: form.js: support passing a callback to Map.save()
authorJo-Philipp Wich <jo@mein.io>
Mon, 12 Aug 2019 17:45:18 +0000 (19:45 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 14 Aug 2019 20:58:15 +0000 (22:58 +0200)
commit3b335f2764bfda3f18e13bf492e461977599e411
tree9def28745ad364d846f999c30e3410add409ac10
parent082fd9ff10be9cd5223bde0b444664eeea5c20ee
luci-base: form.js: support passing a callback to Map.save()

The given callback function will be executed after the map is parsed,
but before the uci is saved. This is useful to add further uci changes
before the map is re-rendered.

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