summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js')
-rw-r--r--applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js
index ce9041e8f8..ab36223983 100644
--- a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js
+++ b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js
@@ -378,7 +378,7 @@ return view.extend({
s3.anonymous = true;
s3.addremove = true;
- o = s3.option(form.DummyValue, "_size", "Size");
+ o = s3.option(form.DummyValue, "_size", _("Size"));
o.modalonly = false;
o.cfgvalue = function (section_id) {
let url = uci.get(pkg.Name, section_id, "url");
@@ -399,6 +399,10 @@ return view.extend({
o.value("allow", _("Allow"));
o.value("block", _("Block"));
o.default = "block";
+ o.textvalue = function (section_id) {
+ var val = this.cfgvalue(section_id);
+ return val == "allow" ? _("Allow") : _("Block");
+ };
o = s3.option(form.Value, "url", _("URL"));
o.optional = false;