git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
2b72695
)
themes/base: allow closing menus by clicking into the body (#97)
author
Jo-Philipp Wich
<redacted>
Thu, 25 Mar 2010 13:41:55 +0000
(13:41 +0000)
committer
Jo-Philipp Wich
<redacted>
Thu, 25 Mar 2010 13:41:55 +0000
(13:41 +0000)
themes/base/htdocs/luci-static/resources/Dropdowns.js
patch
|
blob
|
history
diff --git
a/themes/base/htdocs/luci-static/resources/Dropdowns.js
b/themes/base/htdocs/luci-static/resources/Dropdowns.js
index 8c07a6f2fcd8dee7bf63707622645b9900273c1f..a8d12b959ccc386aa437136889ef5bef4ca0b33c 100644
(file)
--- 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()) {
git clone https://git.99rst.org/PROJECT