From abf9209359f4df2debcaa0f05311c8ddec7e4d2d Mon Sep 17 00:00:00 2001 From: Hans5958 Date: Sun, 1 May 2022 11:05:16 +0700 Subject: [PATCH] Use proper button disable --- web/_js/draw.js | 2 +- web/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/_js/draw.js b/web/_js/draw.js index e67b1071..bfe77bf5 100644 --- a/web/_js/draw.js +++ b/web/_js/draw.js @@ -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) diff --git a/web/index.html b/web/index.html index 97eeded3..256a1d65 100644 --- a/web/index.html +++ b/web/index.html @@ -362,7 +362,7 @@