diff options
Diffstat (limited to 'applications/luci-app-banip/htdocs')
-rw-r--r-- | applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js | 9 |
1 files changed, 8 insertions, 1 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 bb5804a90e..850b9a446f 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 @@ -1,4 +1,5 @@ 'use strict'; +'require dom'; 'require view'; 'require poll'; 'require fs'; @@ -11,6 +12,12 @@ button handling */ function handleAction(ev) { + if (ev === 'restart') { + let map = document.querySelector('.cbi-map'); + dom.callClassMethod(map, 'save').then(function() { + classes.ui.changes.apply(false); + }); + } return fs.exec_direct('/etc/init.d/banip', [ev]) } @@ -222,7 +229,7 @@ return view.extend({ 'click': ui.createHandlerFn(this, function () { return handleAction('restart'); }) - }, [_('Restart')]) + }, [_('Apply & Restart')]) ]) ]); }, o, this); |