Allow keyboard input of timezone specific characters if
showTimezone == true
This commit is contained in:
parent
2be272b34e
commit
b61905a515
1 changed files with 1 additions and 0 deletions
1
jquery-ui-timepicker-addon.js
vendored
1
jquery-ui-timepicker-addon.js
vendored
|
@ -831,6 +831,7 @@ $.datepicker._doKeyPress = function(event) {
|
|||
" " +
|
||||
tp_inst._defaults.separator +
|
||||
tp_inst._defaults.timeSuffix +
|
||||
(tp_inst._defaults.showTimezone ? tp_inst._defaults.timezoneList.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