summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPA4WDH2025-07-27 16:04:27 +0200
committerPA4WDH2025-07-27 16:04:27 +0200
commit489767c41c3528761a024c96c5376ac652457294 (patch)
treea8f49cd03452e8d038e7aa38294682d4d6abb5b4
parentAdd comment with URL for new versions (diff)
downloadqemu.py-489767c41c3528761a024c96c5376ac652457294.tar.gz
qemu.py-489767c41c3528761a024c96c5376ac652457294.tar.bz2
qemu.py-489767c41c3528761a024c96c5376ac652457294.zip
Update openTab javscript to use evt.target
-rw-r--r--qemu.py4
1 files 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);