Update how spinner visibility is controlled
This commit is contained in:
parent
a50e2fb0f1
commit
24832be636
@ -43,9 +43,7 @@
|
||||
</span>
|
||||
</form>
|
||||
|
||||
<div id="spinner">
|
||||
<img src="/mixed/img/spinner.gif">
|
||||
</div>
|
||||
<div id="spinner" hidden><img src="/mixed/img/spinner.gif"></div>
|
||||
|
||||
<div class="scan-disable">
|
||||
<div id="query-parser-select" class="input-group"></div>
|
||||
|
@ -15,9 +15,7 @@
|
||||
<link rel="stylesheet alternate" type="text/css" href="/mixed/css/display-dark.css" data-yomichan-theme-name="dark">
|
||||
</head>
|
||||
<body>
|
||||
<div id="spinner">
|
||||
<img src="/mixed/img/spinner.gif">
|
||||
</div>
|
||||
<div id="spinner" hidden><img src="/mixed/img/spinner.gif"></div>
|
||||
|
||||
<div id="navigation-header" class="navigation-header" hidden><div class="navigation-header-actions">
|
||||
<button class="action-button action-previous"><img src="/mixed/img/source-term.svg" class="icon-image" title="Source term (Alt + B)" alt></button>
|
||||
|
@ -50,7 +50,6 @@ ol, ul {
|
||||
}
|
||||
|
||||
#spinner {
|
||||
display: none;
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
right: 0.36em;
|
||||
|
@ -705,7 +705,9 @@ class Display {
|
||||
}
|
||||
|
||||
setSpinnerVisible(visible) {
|
||||
this.spinner.style.display = visible ? 'block' : '';
|
||||
if (this.spinner !== null) {
|
||||
this.spinner.hidden = !visible;
|
||||
}
|
||||
}
|
||||
|
||||
getEntry(index) {
|
||||
|
Loading…
Reference in New Issue
Block a user