From 489767c41c3528761a024c96c5376ac652457294 Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Sun, 27 Jul 2025 16:04:27 +0200 Subject: Update openTab javscript to use evt.target --- qemu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu.py b/qemu.py index 27da57f..8cb3583 100644 --- a/qemu.py +++ b/qemu.py @@ -87,10 +87,10 @@ function openTab(evt) { var i, group, groupElements; // Find the group name from the class of the button that triggered - group = evt.originalTarget.className.replace(" tablinks", "").replace(" active", "") + group = evt.target.className.replace(" tablinks", "").replace(" active", "") // The active tab is the same as the id of the button that triggered - activeTab = evt.originalTarget.id + activeTab = evt.target.id // Get all elements with our group groupElements = document.getElementsByClassName(group); -- cgit v1.2.3