themes/base: allow closing menus by clicking into the body (#97)
This commit is contained in:
parent
2b72695736
commit
3b4292d997
1 changed files with 8 additions and 0 deletions
|
@ -187,6 +187,14 @@ function initDropdowns() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
XHTML1.addEventListener(document, "click", function() {
|
||||
if (delayHideTimerId) {
|
||||
clearTimeout(delayHideTimerId);
|
||||
delayHideTimerId = 0;
|
||||
delayHide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if(XHTML1.isDOMSupported()) {
|
||||
|
|
Loading…
Reference in a new issue