summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/Article.js2
-rw-r--r--js/PrefFilterTree.js6
2 files changed, 2 insertions, 6 deletions
diff --git a/js/Article.js b/js/Article.js
index 35101a1f8..f2c4007f5 100644
--- a/js/Article.js
+++ b/js/Article.js
@@ -234,7 +234,7 @@ define(["dojo/_base/declare"], function (declare) {
e.offsetTop < ctr.scrollTop) {
// expanded cdm has a 4px margin now
- ctr.scrollTop = parseInt(e.offsetTop) - 4;
+ ctr.scrollTop = e.offsetTop;
Element.hide("floatingTitle");
}
diff --git a/js/PrefFilterTree.js b/js/PrefFilterTree.js
index 4f4e02d95..4f6979f99 100644
--- a/js/PrefFilterTree.js
+++ b/js/PrefFilterTree.js
@@ -35,7 +35,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
},
getLabel: function(item) {
- let label = item.name;
+ let label = String(item.name);
const feed = this.model.store.getValue(item, 'feed');
const inverse = this.model.store.getValue(item, 'inverse');
@@ -46,10 +46,6 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
if (inverse)
label += " (" + __("Inverse") + ")";
- /* if (item.param)
- label = "<span class=\"labelFixedLength\">" + label +
- "</span>" + item.param[0]; */
-
return label;
},
getIconClass: function (item, opened) {