Actually use proper button disable

This commit is contained in:
mxdanger 2022-04-30 21:35:36 -07:00
parent ca7656d7d5
commit 12a98f7154

View file

@ -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.disabled = ""
if (pathWithPeriods.length === 1) periodDeleteEl.disabled = true;
startPeriodEl.addEventListener('input', event => {
timelineSlider.value = parseInt(event.target.value)