From a6f94959fe64857adcbfc9448798442444c7a21a Mon Sep 17 00:00:00 2001 From: patriceac <48073125+patriceac@users.noreply.github.com> Date: Fri, 24 Feb 2023 01:16:14 -0800 Subject: [PATCH 1/2] DOM tweaking to identify custom categories This is purely a DOM update to be able to identify the custom category a given custom image modifier is part of, e.g. using .closest() from a custom modifier plugin. No UI change. --- ui/media/js/image-modifiers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/media/js/image-modifiers.js b/ui/media/js/image-modifiers.js index fa2ece77..b7b0d11b 100644 --- a/ui/media/js/image-modifiers.js +++ b/ui/media/js/image-modifiers.js @@ -115,6 +115,7 @@ function createModifierGroup(modifierGroup, initiallyExpanded, removeBy) { modifiersEl.appendChild(brk) let e = document.createElement('div') + e.className = 'custom-modifier-category' e.appendChild(titleEl) e.appendChild(modifiersEl) From 5698473891a00f6cf3a21dd19fd6ded1c614d2a1 Mon Sep 17 00:00:00 2001 From: patriceac <48073125+patriceac@users.noreply.github.com> Date: Fri, 24 Feb 2023 13:55:18 -0800 Subject: [PATCH 2/2] Renaming custom-modifier-category to modifier-category --- ui/media/js/image-modifiers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/media/js/image-modifiers.js b/ui/media/js/image-modifiers.js index b7b0d11b..68d18d37 100644 --- a/ui/media/js/image-modifiers.js +++ b/ui/media/js/image-modifiers.js @@ -115,7 +115,7 @@ function createModifierGroup(modifierGroup, initiallyExpanded, removeBy) { modifiersEl.appendChild(brk) let e = document.createElement('div') - e.className = 'custom-modifier-category' + e.className = 'modifier-category' e.appendChild(titleEl) e.appendChild(modifiersEl)