projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d30707a
)
Date Picker close when clicked outside of the datepicker. @kvvaradha and @apmuthu.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sat, 5 Jan 2019 09:42:24 +0000
(10:42 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sat, 5 Jan 2019 09:42:24 +0000
(10:42 +0100)
includes/ui/ui_view.inc
patch
|
blob
|
history
diff --git
a/includes/ui/ui_view.inc
b/includes/ui/ui_view.inc
index 642b99436941968636852b1159ef755c0d3fd42b..979f65872ed4f155ed0d53790504d8ad319e9c59 100644
(file)
--- a/
includes/ui/ui_view.inc
+++ b/
includes/ui/ui_view.inc
@@
-1455,6
+1455,14
@@
function changeCCYear(change) {
function changeCCMonth(change) {
cC.changeMonth(change);
}
+window.addEventListener('click', function(e) {
+ if (document.getElementById('CC').contains(e.target)){} else {
+ if (cC.visible()) {
+ cC.hide();
+ }
+ }
+});
+
document.write(\"<iframe id='CCIframe' src='javascript:false;' frameBorder='0' scrolling='no'></iframe>\");
document.write(\"<div id='CC'></div>\");";