themes/base: allow closing menus by clicking into the body (#97)

This commit is contained in:
Jo-Philipp Wich 2010-03-25 13:41:55 +00:00
parent 2b72695736
commit 3b4292d997

View file

@ -187,6 +187,14 @@ function initDropdowns() {
}
}
}
XHTML1.addEventListener(document, "click", function() {
if (delayHideTimerId) {
clearTimeout(delayHideTimerId);
delayHideTimerId = 0;
delayHide();
}
});
}
if(XHTML1.isDOMSupported()) {