From 24832be63693d8f04797ed45041ffbd3e8ac3f9d Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 27 Dec 2019 15:10:51 -0500 Subject: Update how spinner visibility is controlled --- ext/mixed/css/display.css | 1 - ext/mixed/js/display.js | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/mixed') diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css index ff42771a..ce64cc49 100644 --- a/ext/mixed/css/display.css +++ b/ext/mixed/css/display.css @@ -50,7 +50,6 @@ ol, ul { } #spinner { - display: none; position: fixed; z-index: 1; right: 0.36em; diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index f61e76b5..f5b2225d 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -705,7 +705,9 @@ class Display { } setSpinnerVisible(visible) { - this.spinner.style.display = visible ? 'block' : ''; + if (this.spinner !== null) { + this.spinner.hidden = !visible; + } } getEntry(index) { -- cgit v1.2.3