diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-01-19 14:34:49 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-01-19 14:36:46 +0100 |
commit | 35df2adaf8a2c5b4fa61f58049f409ca087c0547 (patch) | |
tree | 77ad32fbd1829811fc23aa11d8f75e751a6ec041 /modules | |
parent | 2008ccd69991eedc698b9013dbab020fd3be993c (diff) |
luci-mod-network: fix creating new interfaces
Fixes: #5646
Fixes: 1c798d1a08 ("luci-base: form.js: allow nesting Grid and Table sections")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index a26d51bc5e..f8c7c6a7ff 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -1158,6 +1158,9 @@ return view.extend({ protoclass.addDevice(device.formvalue('_new_')); m.children[0].addedSection = section_id; + + ui.hideModal(); + ui.showModal(null, E('p', { 'class': 'spinning' }, [ _('Loading data…') ])); }).then(L.bind(m.children[0].renderMoreOptionsModal, m.children[0], nameval)); }); }) |