summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-07-07 19:09:12 +0200
committerJo-Philipp Wich <jo@mein.io>2019-07-07 19:12:59 +0200
commitbce291e6c9ada6efd8014e48da0ac516f2ef4b00 (patch)
tree27f98a4b0e0cd05a19f937c8bd68fe90054a0991 /modules/luci-base
parentf8e6caf5525b802dfbaf150ca3d64f92620b2d50 (diff)
luci-base: form.js: reload map data when saving modal forms
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js
index 8bb0da4a40..dd7ba6ef60 100644
--- a/modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/modules/luci-base/htdocs/luci-static/resources/form.js
@@ -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() {});