Allow keyboard input of timezone specific characters if

showTimezone == true
This commit is contained in:
Alexander Gitter 2011-06-11 12:36:00 +02:00
parent 2be272b34e
commit b61905a515

View file

@ -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);