luci-mod-network: interfaces.js: map remove action to network.deleteNetwork()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
809f16d4ce
commit
e630b32498
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue