aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/static/triggerseditor.js
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-10 17:47:59 -0400
committerhistoria <[not public]>2026-07-10 17:47:59 -0400
commit141161781dd26bc0a84b0d50b291368b5bce0e54 (patch)
treef8f086b1ef2246fb0684ae4cb712ee093f297ed4 /internal/admin/static/triggerseditor.js
parent451fdf82ce1385c16d0d88cd5b2a878ba4cba22c (diff)
downloadthehouseoficarus-141161781dd26bc0a84b0d50b291368b5bce0e54.tar.gz
fix(admin): triggers page styling fixes
Diffstat (limited to 'internal/admin/static/triggerseditor.js')
-rw-r--r--internal/admin/static/triggerseditor.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/admin/static/triggerseditor.js b/internal/admin/static/triggerseditor.js
index 28d97a5..03018a9 100644
--- a/internal/admin/static/triggerseditor.js
+++ b/internal/admin/static/triggerseditor.js
@@ -175,6 +175,13 @@ function renderTriggerEditor(id, data) {
$('#editorMain').innerHTML = html;
ced_setupSearchFields();
+ var segLabels = document.querySelectorAll('.seg-toggle label');
+ for (var i = 0; i < segLabels.length; i++) {
+ segLabels[i].addEventListener('mousedown', function(e) {
+ var r = this.querySelector('input[type="radio"]');
+ if (r) r.checked = true;
+ });
+ }
}
function saveTrigger() {