projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b97ba26
)
Fixed onClose callback in datepicker
author
Marcel Werk
<burntime@woltlab.com>
Sun, 27 Nov 2016 12:14:37 +0000
(13:14 +0100)
committer
Marcel Werk
<burntime@woltlab.com>
Sun, 27 Nov 2016 12:14:37 +0000
(13:14 +0100)
wcfsetup/install/files/js/WCF.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.js
b/wcfsetup/install/files/js/WCF.js
index 8d370fd93a0636bbd1f2b8e458eb4e4d18434902..a77244604baa25d83ca8bb4c9b8bf4c323581ba5 100755
(executable)
--- a/
wcfsetup/install/files/js/WCF.js
+++ b/
wcfsetup/install/files/js/WCF.js
@@
-7282,15
+7282,19
@@
jQuery.fn.extend({
case 'getDate':
return window.__wcf_bc_datePicker.getDate(element);
break;
-
+
case 'option':
if (parameters[0] === 'onClose') {
+ if (parameters.length > 1) {
+ return this.datepicker('setOption', 'onClose', parameters[1]);
+ }
+
return function() {};
}
console.warn("datepicker('option') supports only 'onClose'.");
break;
-
+
case 'setDate':
window.__wcf_bc_datePicker.setDate(element, parameters[0]);
break;