diff options
-rw-r--r-- | applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js | 16 | ||||
-rw-r--r-- | applications/luci-app-adblock/po/templates/adblock.pot | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js index da93bc38a0..042e7dcb11 100644 --- a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js +++ b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js @@ -609,6 +609,22 @@ return view.extend({ o.optional = true; o.rmempty = true; + o = s.taboption('sources', form.DummyValue, '_sub'); + o.rawhtml = true; + o.default = '<em><b>1Hosts List Selection</b></em>'; + + o = s.taboption('sources', form.DynamicList, 'adb_hst_sources', _('Variants')); + for (var i = 0; i < categories.length; i++) { + code = categories[i].match(/^(\w+);/)[1].trim(); + if (code === 'hst') { + list = categories[i].match(/^\w+;(.*);/)[1].trim(); + path = categories[i].match(/^.*;(.*$)/)[1].trim(); + o.value(path, list); + } + } + o.optional = true; + o.rmempty = true; + return m.render(); }, handleReset: null diff --git a/applications/luci-app-adblock/po/templates/adblock.pot b/applications/luci-app-adblock/po/templates/adblock.pot index ee3d7317f0..21403b1542 100644 --- a/applications/luci-app-adblock/po/templates/adblock.pot +++ b/applications/luci-app-adblock/po/templates/adblock.pot @@ -727,6 +727,7 @@ msgstr "" #: applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js:584 #: applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js:600 +#: applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js:616 msgid "Variants" msgstr "" |