summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-banip/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-banip/htdocs/luci-static/resources/view')
-rw-r--r--applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js
index 850b9a446f..8027bb9a53 100644
--- a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js
+++ b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js
@@ -14,11 +14,14 @@
function handleAction(ev) {
if (ev === 'restart') {
let map = document.querySelector('.cbi-map');
- dom.callClassMethod(map, 'save').then(function() {
- classes.ui.changes.apply(false);
+ return dom.callClassMethod(map, 'save')
+ .then(L.bind(ui.changes.apply, ui.changes))
+ .then(function() {
+ return fs.exec_direct('/etc/init.d/banip', [ev]);
});
+ } else {
+ return fs.exec_direct('/etc/init.d/banip', [ev]);
}
- return fs.exec_direct('/etc/init.d/banip', [ev])
}
return view.extend({