aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-27 18:19:49 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-16 22:39:26 -0500
commitd512c111f6a5918eb3dfca3c0e3d5d69e73fb8b7 (patch)
tree71c8b6c2f35b160870379d9317ae8aa733401ef3 /ext/mixed/js/display.js
parent97f7df33027e8c8baced23da02b74a5fbd0a14cf (diff)
Update how content display is changed
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r--ext/mixed/js/display.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index efe33ee6..eabb73ca 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -456,15 +456,14 @@ class Display {
}
setContentOrphaned() {
- const definitions = document.querySelector('#definitions');
const errorOrphaned = document.querySelector('#error-orphaned');
- if (definitions !== null) {
- definitions.style.setProperty('display', 'none', 'important');
+ if (this.container !== null) {
+ this.container.hidden = true;
}
if (errorOrphaned !== null) {
- errorOrphaned.style.setProperty('display', 'block', 'important');
+ errorOrphaned.hidden = false;
}
this.updateNavigation(null, null);