diff --git a/src/document-blocked.html b/src/document-blocked.html
index ebc38ddf9..36c26444d 100644
--- a/src/document-blocked.html
+++ b/src/document-blocked.html
@@ -17,24 +17,24 @@
-
+
_
-
zoom-inzoom-out
+
zoom-inzoom-out
-
-
-
diff --git a/src/js/document-blocked.js b/src/js/document-blocked.js
index 7e91bdfa8..9e4f15cb7 100644
--- a/src/js/document-blocked.js
+++ b/src/js/document-blocked.js
@@ -53,9 +53,13 @@ let details = {};
}
}
- if ( Array.isArray(lists) === false || lists.length === 0 ) { return; }
+ if ( Array.isArray(lists) === false || lists.length === 0 ) {
+ qs$('#whyex').style.setProperty('visibility', 'collapse');
+ return;
+ }
const parent = qs$('#whyex > ul');
+ parent.firstElementChild.remove(); // remove placeholder element
for ( const list of lists ) {
const listElem = dom.clone('#templates .filterList');
const sourceElem = qs$(listElem, '.filterListSource');
@@ -68,7 +72,7 @@ let details = {};
}
parent.appendChild(listElem);
}
- qs$('#whyex').style.removeProperty('display');
+ qs$('#whyex').style.removeProperty('visibility');
})();
/******************************************************************************/