mirror of
https://github.com/placeAtlas/atlas.git
synced 2025-01-19 00:32:05 +01:00
Disable delete button when only 1 period
Disable it or hide it?
This commit is contained in:
parent
736db1bc98
commit
251e6b7af8
1 changed files with 1 additions and 0 deletions
|
@ -792,6 +792,7 @@ function initPeriodGroups() {
|
||||||
endPeriodEl.value = end
|
endPeriodEl.value = end
|
||||||
if (startPeriodEl.max == 0) periodGroupEl.classList.add('no-time-slider')
|
if (startPeriodEl.max == 0) periodGroupEl.classList.add('no-time-slider')
|
||||||
else periodGroupEl.classList.remove('no-time-slider')
|
else periodGroupEl.classList.remove('no-time-slider')
|
||||||
|
if (pathWithPeriods.length === 1) periodDeleteEl.classList.add("disabled")
|
||||||
|
|
||||||
startPeriodEl.addEventListener('input', event => {
|
startPeriodEl.addEventListener('input', event => {
|
||||||
timelineSlider.value = parseInt(event.target.value)
|
timelineSlider.value = parseInt(event.target.value)
|
||||||
|
|
Loading…
Add table
Reference in a new issue