summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-06-10 10:20:31 +0300
committerGitHub <noreply@github.com>2017-06-10 10:20:31 +0300
commita94e2000cdf88ecb19e339ac87fb596822ab46af (patch)
treeb9704991f7f616f3e011e5d6b7a7cfc7e73fc632 /applications
parent75c8eba73312dcbf2f3bf79e873b5a57ea9a2062 (diff)
parentbd482566f479bdc62e85964a0ec9af4a34294860 (diff)
Merge pull request #1188 from dibdot/master
luci-app-adblock: sync with adblock 2.7.1
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua8
1 files changed, 7 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 fe269656f3..38086c9eb4 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
@@ -17,7 +17,13 @@ m = Map("adblock", translate("Adblock"),
.. "see online documentation</a>", "https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md"))
function m.on_after_commit(self)
- luci.sys.call("/etc/init.d/adblock reload >/dev/null 2>&1")
+ function e3.validate(self, value)
+ if value == "0" then
+ luci.sys.call("/etc/init.d/adblock reload >/dev/null 2>&1")
+ else
+ luci.sys.call("/etc/init.d/adblock start >/dev/null 2>&1")
+ end
+ end
luci.http.redirect(luci.dispatcher.build_url("admin", "services", "adblock"))
end