summaryrefslogtreecommitdiffhomepage
path: root/themes/base/htdocs/luci-static/resources/Dropdowns.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/base/htdocs/luci-static/resources/Dropdowns.js')
-rw-r--r--themes/base/htdocs/luci-static/resources/Dropdowns.js8
1 files changed, 8 insertions, 0 deletions
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()) {