From 74a7dd553c2780315684551268f62b1fd2efc35f Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Mon, 29 Feb 2016 06:57:35 -0500 Subject: [PATCH] Fix datepicker so it is possible to re-open the calendar widget by click (Kolab 5115) --- plugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js | 4 +++- plugins/jqueryui/js/jquery-ui-accessible-datepicker.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js b/plugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js index 73248ec..209bcda 100755 --- a/plugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js +++ b/plugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js @@ -143,6 +143,8 @@ } } }) + // fix https://bugs.jqueryui.com/ticket/8593 + .click(function (event) { that._showDatepicker(event); }) .attr('autocomplete', 'off'); }, @@ -192,7 +194,7 @@ _hideDatepicker: function(input) { __hideDatepicker.call(this, input); - var inst = this._curInst;; + var inst = this._curInst; if (inst && !$.datepicker._datepickerShowing) { inst.dpDiv.attr('aria-hidden', 'true'); $(inst.input).attr('aria-expanded', 'false'); diff --git a/plugins/jqueryui/js/jquery-ui-accessible-datepicker.js b/plugins/jqueryui/js/jquery-ui-accessible-datepicker.js index ef7561c..38e99e8 100644 --- a/plugins/jqueryui/js/jquery-ui-accessible-datepicker.js +++ b/plugins/jqueryui/js/jquery-ui-accessible-datepicker.js @@ -128,6 +128,8 @@ } } }) + // fix https://bugs.jqueryui.com/ticket/8593 + .click(function (event) { that._showDatepicker(event); }) .attr('autocomplete', 'off'); }, @@ -177,7 +179,7 @@ _hideDatepicker: function(input) { __hideDatepicker.call(this, input); - var inst = this._curInst;; + var inst = this._curInst; if (inst && !$.datepicker._datepickerShowing) { inst.dpDiv.attr('aria-hidden', 'true'); $(inst.input).attr('aria-expanded', 'false'); -- Gitblit v1.9.1