Skip to content

Commit dd20897

Browse files
author
Vlad Saye
committed
Fixed settings button
1 parent b5962c4 commit dd20897

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ six==1.16.0
3030
SQLAlchemy==2.0.23
3131
typing-extensions==4.9.0
3232
urllib3==2.1.0
33-
uWSGI==2.0.23
3433
waitress==2.1.2
3534
werkzeug==3.0.1
3635
wsproto==1.2.0

webapp/static/js/rtlDataDisplay.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,12 @@ document.getElementById("settingsBtn").onclick = function() {
525525
document.getElementById("settingsPopup").style.display = "block";
526526
};
527527

528-
document.querySelector(".close-btn").onclick = function() {
529-
document.getElementById("settingsPopup").style.display = "none";
530-
document.getElementById("olympusPopup").style.display = "none";
531-
};
528+
document.querySelectorAll(".close-btn").forEach(button => {
529+
button.addEventListener('click', function(event) {
530+
document.getElementById("settingsPopup").style.display = "none";
531+
document.getElementById("olympusPopup").style.display = "none";
532+
})
533+
})
532534

533535
// Close the popup if user clicks outside of it
534536
window.onclick = function(event) {

0 commit comments

Comments
 (0)