mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-06-18 19:28:48 +02:00
Use proper button disable
This commit is contained in:
parent
251e6b7af8
commit
abf9209359
|
@ -792,7 +792,7 @@ function initPeriodGroups() {
|
|||
endPeriodEl.value = end
|
||||
if (startPeriodEl.max == 0) periodGroupEl.classList.add('no-time-slider')
|
||||
else periodGroupEl.classList.remove('no-time-slider')
|
||||
if (pathWithPeriods.length === 1) periodDeleteEl.classList.add("disabled")
|
||||
if (pathWithPeriods.length === 1) periodDeleteEl.disabled = ""
|
||||
|
||||
startPeriodEl.addEventListener('input', event => {
|
||||
timelineSlider.value = parseInt(event.target.value)
|
||||
|
|
|
@ -362,7 +362,7 @@ <h5 class="modal-title" id="exportModalLabel">Export Entry</h5>
|
|||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Done</button>
|
||||
<a id="exportDirectPost" class="btn btn-primary disabled" href="#" target="_blank" rel="noopener noreferrer">Post Direct to Reddit</a>
|
||||
<a id="exportDirectPost" class="btn btn-primary disabled" aria-disabled="true" href="#" target="_blank" rel="noopener noreferrer">Post Direct to Reddit</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue