Mercurial > hg > rc2
comparison plugins/jqueryui/js/jquery-ui-accessible-datepicker.js @ 8:bf99236cc5cd default tip
try to recover from upgrade fail
author | Charlie Root |
---|---|
date | Sat, 29 Dec 2018 07:07:34 -0500 |
parents | 4681f974d28b |
children |
comparison
equal
deleted
inserted
replaced
7:65fd7d441cf1 | 8:bf99236cc5cd |
---|---|
126 if (!$.datepicker._isDisabledDatepicker(target) && !event.ctrlKey && !event.metaKey) { | 126 if (!$.datepicker._isDisabledDatepicker(target) && !event.ctrlKey && !event.metaKey) { |
127 return that._cursorKeydown(event, inst); | 127 return that._cursorKeydown(event, inst); |
128 } | 128 } |
129 } | 129 } |
130 }) | 130 }) |
131 // fix https://bugs.jqueryui.com/ticket/8593 | |
132 .click(function (event) { that._showDatepicker(event); }) | |
131 .attr('autocomplete', 'off'); | 133 .attr('autocomplete', 'off'); |
132 }, | 134 }, |
133 | 135 |
134 /* Handle keyboard event on datepicker widget */ | 136 /* Handle keyboard event on datepicker widget */ |
135 _cursorKeydown: function(event, inst) { | 137 _cursorKeydown: function(event, inst) { |
175 | 177 |
176 /* Hide the date picker from view */ | 178 /* Hide the date picker from view */ |
177 _hideDatepicker: function(input) { | 179 _hideDatepicker: function(input) { |
178 __hideDatepicker.call(this, input); | 180 __hideDatepicker.call(this, input); |
179 | 181 |
180 var inst = this._curInst;; | 182 var inst = this._curInst; |
181 if (inst && !$.datepicker._datepickerShowing) { | 183 if (inst && !$.datepicker._datepickerShowing) { |
182 inst.dpDiv.attr('aria-hidden', 'true'); | 184 inst.dpDiv.attr('aria-hidden', 'true'); |
183 $(inst.input).attr('aria-expanded', 'false'); | 185 $(inst.input).attr('aria-expanded', 'false'); |
184 } | 186 } |
185 }, | 187 }, |