Allow to input characters of localized AM/PM markers.
This commit is contained in:
parent
9ee65b2428
commit
195be63853
2
jquery-ui-timepicker-addon.js
vendored
2
jquery-ui-timepicker-addon.js
vendored
|
@ -976,6 +976,8 @@ $.datepicker._doKeyPress = function(event) {
|
|||
tp_inst._defaults.separator +
|
||||
tp_inst._defaults.timeSuffix +
|
||||
(tp_inst._defaults.showTimezone ? tp_inst._defaults.timezoneList.join('') : '') +
|
||||
(tp_inst._defaults.amNames.join('')) +
|
||||
(tp_inst._defaults.pmNames.join('')) +
|
||||
dateChars,
|
||||
chr = String.fromCharCode(event.charCode === undefined ? event.keyCode : event.charCode);
|
||||
return event.ctrlKey || (chr < ' ' || !dateChars || datetimeChars.indexOf(chr) > -1);
|
||||
|
|
Loading…
Reference in a new issue