Prevent help popup to disappear when clicking on it

This commit is contained in:
Guillaume Gomez 2019-10-24 00:37:14 +02:00
parent f466f52c1b
commit e836b1b9d0

View File

@ -380,8 +380,11 @@ function getSearchElement() {
set_fragment(cur_id);
}
} else if (hasClass(document.getElementById("help"), "hidden") === false) {
addClass(document.getElementById("help"), "hidden");
removeClass(document.body, "blur");
var is_inside_help_popup = document.getElementById("help").contains(ev.target);
if (is_inside_help_popup === false) {
addClass(document.getElementById("help"), "hidden");
removeClass(document.body, "blur");
}
} else {
// Making a collapsed element visible on onhashchange seems
// too late