diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-09-24 08:05:11 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-24 08:07:50 +0200 |
commit | e630b32498767164004e965f34471d70d6e6f51c (patch) | |
tree | bf5179c23897d961975cdd1ef4f7d43c85248de3 | |
parent | 809f16d4ceab8a14a790ce1a1abbc2ce26c2b9f8 (diff) |
luci-mod-network: interfaces.js: map remove action to network.deleteNetwork()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js | 6 |
1 files changed, 6 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 624718dd8..b49d36d46 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 @@ -740,6 +740,12 @@ return L.view.extend({ }, this)); }; + s.handleRemove = function(section_id, ev) { + return network.deleteNetwork(section_id).then(L.bind(function(section_id, ev) { + return form.GridSection.prototype.handleRemove.apply(this, [section_id, ev]); + }, this, section_id, ev)); + }; + o = s.option(form.DummyValue, '_ifacebox'); o.modalonly = false; o.textvalue = function(section_id) { |