summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-05-09 13:38:09 +0200
committerGitHub <noreply@github.com>2018-05-09 13:38:09 +0200
commit3b709d8cdfe35f8ad22929c6fa29ed515f130317 (patch)
tree6343d8aac3beed0d4c0a18551de0b495b7d17e0b /applications
parentffb654310e4b6f6b89f2c22508f200017ab1fa56 (diff)
parent3aae6ce82ef385d2c77a2c2073d231797bef4c13 (diff)
Merge pull request #1780 from dibdot/adblock
luci-app-adblock: support new workflow
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua b/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua
index 3786c7a4e..ec5a75cef 100644
--- a/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua
+++ b/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua
@@ -24,8 +24,9 @@ m = Map("adblock", translate("Adblock"),
.. translatef("For further information "
.. "<a href=\"%s\" target=\"_blank\">"
.. "check the online documentation</a>", "https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md"))
+m.apply_on_parse = true
-function m.on_after_commit(self)
+function m.on_apply(self)
luci.sys.call("/etc/init.d/adblock reload >/dev/null 2>&1")
luci.http.redirect(luci.dispatcher.build_url("admin", "services", "adblock"))
end