diff --git a/classes/pref/filters.php b/classes/pref/filters.php
index e60628f8f..e48615395 100755
--- a/classes/pref/filters.php
+++ b/classes/pref/filters.php
@@ -429,7 +429,7 @@ class Pref_Filters extends Handler_Protected {
$data = htmlspecialchars(json_encode($line));
- print "
".
+ print "".
"".$this->getRuleName($line)."".
"";
}
@@ -473,7 +473,7 @@ class Pref_Filters extends Handler_Protected {
$data = htmlspecialchars(json_encode($line));
- print "".
+ print "".
"".$this->getActionName($line)."".
"";
}
diff --git a/include/feedbrowser.php b/include/feedbrowser.php
index 8ebeb20cc..a0b1b6e8f 100644
--- a/include/feedbrowser.php
+++ b/include/feedbrowser.php
@@ -53,12 +53,10 @@
$site_url = htmlspecialchars($line["site_url"]);
$subscribers = $line["subscribers"];
- $check_box = "";
- $class = ($feedctr % 2) ? "even" : "odd";
-
$site_url = "
".
@@ -75,11 +73,9 @@
$feed_url = htmlspecialchars($line["feed_url"]);
$site_url = htmlspecialchars($line["site_url"]);
- $check_box = "";
- $class = ($feedctr % 2) ? "even" : "odd";
-
if ($line['articles_archived'] > 0) {
$archived = sprintf(_ngettext("%d archived article", "%d archived articles", (int) $line['articles_archived']), $line['articles_archived']);
$archived = " ($archived)";
diff --git a/js/functions.js b/js/functions.js
index 59912905d..ce6d7aca9 100755
--- a/js/functions.js
+++ b/js/functions.js
@@ -53,6 +53,15 @@ Array.prototype.remove = function(s) {
}
};
+const ListUtils = {
+ onChecked: function(elem) {
+ // account for dojo checkboxes
+ elem = elem.domNode || elem;
+
+ elem.up("li").toggleClassName("Selected");
+ }
+};
+
const Utils = {
_rpc_seq: 0,
hotkey_prefix: 0,
@@ -984,12 +993,6 @@ function toggleSelectRowById(sender, id) {
return toggleSelectRow(sender, row);
}
-/* this is for dijit Checkbox */
-function toggleSelectListRow2(sender) {
- const row = sender.domNode.parentNode;
- return toggleSelectRow(sender, row);
-}
-
/* this is for dijit Checkbox */
function toggleSelectRow2(sender, row, is_cdm) {
@@ -1137,7 +1140,7 @@ const Filters = {
new dijit.form.CheckBox({
onChange: function () {
- this.domNode.up("li").toggleClassName("Selected");
+ ListUtils.onChecked(this);
},
}, cb);
@@ -1186,7 +1189,7 @@ const Filters = {
new dijit.form.CheckBox({
onChange: function () {
- this.domNode.up("li").toggleClassName("Selected");
+ ListUtils.onChecked(this);
},
}, cb);