summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-04-04 15:28:44 +0300
committerGitHub <noreply@github.com>2017-04-04 15:28:44 +0300
commit1390a6465d643b16738052ccbb1583fd20e8db8f (patch)
tree54fd303e725c65eb86ba70d0b4ec51e17baaec1c /applications
parentae542668f5a15feec663235b29574ecf8ec53e61 (diff)
parent03ae05549d4dc3fd705a110192ad84bf144298c0 (diff)
Merge pull request #1096 from dibdot/app-adblock
luci-app-adblock: sync with adblock 2.5.1
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua8
-rw-r--r--applications/luci-app-adblock/luasrc/view/adblock/query.htm2
2 files changed, 5 insertions, 5 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 7919b71516..b8318fe994 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
@@ -30,14 +30,14 @@ if data.adblock == nil then
btn.inputstyle = nil
btn.disabled = true
elseif dnsFile1 ~= "" or dnsFile2 ~= "" then
- btn.inputtitle = "Suspend adblock"
+ btn.inputtitle = translate("Suspend adblock")
btn.inputstyle = "reset"
btn.disabled = false
function btn.write()
luci.sys.call("/etc/init.d/adblock suspend >/dev/null 2>&1")
end
else
- btn.inputtitle = "Resume adblock"
+ btn.inputtitle = translate("Resume adblock")
btn.inputstyle = "apply"
btn.disabled = false
function btn.write()
@@ -51,8 +51,8 @@ o2.rmempty = false
o3 = s:option(Value, "adb_iface", translate("Restrict interface reload trigger to certain interface(s)"),
translate("Space separated list of interfaces that trigger a reload action. "..
- "To disable reload trigger at all set it to 'false'."))
-o3.rmempty =false
+ "To disable reload trigger at all remove all entries."))
+o3.rmempty =true
-- Runtime information
diff --git a/applications/luci-app-adblock/luasrc/view/adblock/query.htm b/applications/luci-app-adblock/luasrc/view/adblock/query.htm
index be606301ec..5e064af858 100644
--- a/applications/luci-app-adblock/luasrc/view/adblock/query.htm
+++ b/applications/luci-app-adblock/luasrc/view/adblock/query.htm
@@ -25,7 +25,7 @@ This is free software, licensed under the Apache License, Version 2.0
;
input.parentNode.style.display = 'block';
input.style.display = 'inline';
- stxhr.post('<%=url('admin/services/adblock/advanced/result/')%>' + domain, { token: '<%=token%>' },
+ stxhr.post('<%=luci.dispatcher.build_url('admin/services/adblock/advanced/result/')%>' + domain, { token: '<%=token%>' },
function(x)
{
if (x.responseText)