luci-base: form.js: reload map data when saving modal forms
authorJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 17:09:12 +0000 (19:09 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 17:12:59 +0000 (19:12 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js

index 8bb0da4a40fd18d319b3e6c34b73ebec9bc8451a..dd7ba6ef605c98bcb86ea6acaf7e4eb013085fac 100644 (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() {});