themes/base: several IE related fixes in XHR class
[project/luci.git] / themes / base / htdocs / luci-static / resources / Dropdowns.js
index 8c07a6f..a8d12b9 100644 (file)
@@ -187,6 +187,14 @@ function initDropdowns() {
                        }
                }
        }
+
+       XHTML1.addEventListener(document, "click", function() {
+               if (delayHideTimerId) {
+                       clearTimeout(delayHideTimerId);
+                       delayHideTimerId = 0;
+                       delayHide();
+               }
+       });
 }
 
 if(XHTML1.isDOMSupported()) {