diff --git a/webinterface.py b/webinterface.py index 41a409e71..24b0f5234 100644 --- a/webinterface.py +++ b/webinterface.py @@ -992,24 +992,8 @@ def clickToDropDownScript() -> str: """Function run onclick to create a dropdown """ script= \ - '/* When the user clicks on the button,' \ - 'toggle between hiding and showing the dropdown content */' \ 'function dropdown() {' \ ' document.getElementById("myDropdown").classList.toggle("show");' \ - '}' \ - '' \ - '// Close the dropdown menu if the user clicks outside of it' \ - 'window.onclick = function(event) {' \ - " if (!event.target.matches('.dropdown')) {" \ - ' var dropdowns = document.getElementsByClassName("dropdown-content");' \ - ' var i;' \ - ' for (i = 0; i < dropdowns.length; i++) {' \ - ' var openDropdown = dropdowns[i];' \ - " if (openDropdown.classList.contains('show')) {" \ - " openDropdown.classList.remove('show');" \ - ' }' \ - ' }' \ - ' }' \ '}' return script