luci-base: form.js: reload map data when saving modal forms

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-07-07 19:09:12 +02:00
parent f8e6caf552
commit bce291e6c9

View file

@ -1059,6 +1059,7 @@ var CBITableSection = CBITypedSection.extend({
handleModalSave: function(modalMap, ev) {
return modalMap.save()
.then(L.bind(this.map.load, this.map))
.then(L.bind(this.map.reset, this.map))
.then(L.ui.hideModal)
.catch(function() {});