From 454cec0dc481c1e490b80f86defefe7fe0e8de75 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 16 Aug 2024 01:35:49 -0700 Subject: [PATCH] colorselect interactive preview update --- docs/assets/js/ColorSelect.js | 2 ++ docs/color_select_menu.md | 36 ++++++++++++++--------------------- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/docs/assets/js/ColorSelect.js b/docs/assets/js/ColorSelect.js index 45ed23682d..7b91c9c992 100644 --- a/docs/assets/js/ColorSelect.js +++ b/docs/assets/js/ColorSelect.js @@ -135,6 +135,7 @@ function moveAddButton(slot) { prevAddSlot.classList.remove('add-slot'); prevAddSlot.classList.add('empty'); prevAddSlot.innerHTML = ''; + prevAddSlot.onclick = null; // Remove the click handler for empty slots } // Make the current slot the new add slot @@ -169,6 +170,7 @@ function deleteSlot(slot) { prevAddSlot.classList.remove('add-slot'); prevAddSlot.classList.add('empty'); prevAddSlot.innerHTML = ''; + prevAddSlot.onclick = null; // Disable click on the now-empty slot } // Turn the deleted slot into the new add slot diff --git a/docs/color_select_menu.md b/docs/color_select_menu.md index e44a40de70..0aea0cb20c 100644 --- a/docs/color_select_menu.md +++ b/docs/color_select_menu.md @@ -7,22 +7,6 @@ grand_parent: Vortex Engine ---