luci-app-adblock: sync with 4.1.3-6
authorDirk Brenken <dev@brenken.org>
Tue, 10 May 2022 16:11:39 +0000 (18:11 +0200)
committerDirk Brenken <dev@brenken.org>
Tue, 10 May 2022 16:11:39 +0000 (18:11 +0200)
* remove support for shallalist

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 1eddbe0f3f0b00366694424f1445ea6cceb7d7d5)
Signed-off-by: Dirk Brenken <dev@brenken.org>
applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js

index 060e7eaa3581d417106eb8f784fa084b3cf1af6b..7e9e87eeebb3c507e74d1e3e9492444b19120f06 100644 (file)
@@ -579,21 +579,6 @@ return view.extend({
                        categories = result[1].trim().split('\n');
                }
 
-               o = s.taboption('sources', form.DummyValue, '_sub');
-               o.rawhtml = true;
-               o.default = '<em><b>Shallalist Archive Selection</b></em>';
-
-               o = s.taboption('sources', form.DynamicList, 'adb_sha_sources', _('Categories'));
-               for (var i = 0; i < categories.length; i++) {
-                       code = categories[i].match(/^(\w+);/)[1].trim();
-                       if (code === 'sha') {
-                               category = categories[i].match(/^\w+;(.*$)/)[1].trim();
-                               o.value(category);
-                       }
-               }
-               o.optional = true;
-               o.rmempty = true;
-
                o = s.taboption('sources', form.DummyValue, '_sub');
                o.rawhtml = true;
                o.default = '<em><b>UTCapitole Archive Selection</b></em>';