X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=themes%2Fbase%2Fhtdocs%2Fluci-static%2Fresources%2FDropdowns.js;fp=themes%2Fbase%2Fhtdocs%2Fluci-static%2Fresources%2FDropdowns.js;h=a8d12b959ccc386aa437136889ef5bef4ca0b33c;hb=3b4292d9971dd216281b9cfe02899f999f862ac4;hp=8c07a6f2fcd8dee7bf63707622645b9900273c1f;hpb=2b726957366b83a118469151f5704c524f2f1914;p=project%2Fluci.git diff --git a/themes/base/htdocs/luci-static/resources/Dropdowns.js b/themes/base/htdocs/luci-static/resources/Dropdowns.js index 8c07a6f2f..a8d12b959 100644 --- a/themes/base/htdocs/luci-static/resources/Dropdowns.js +++ b/themes/base/htdocs/luci-static/resources/Dropdowns.js @@ -187,6 +187,14 @@ function initDropdowns() { } } } + + XHTML1.addEventListener(document, "click", function() { + if (delayHideTimerId) { + clearTimeout(delayHideTimerId); + delayHideTimerId = 0; + delayHide(); + } + }); } if(XHTML1.isDOMSupported()) {