fix getDate bug and consistency in localizations

This commit is contained in:
Trent 2011-05-24 06:36:05 -04:00
parent ba1d07e154
commit eff83d0ab8
2 changed files with 3 additions and 3 deletions

View file

@ -962,7 +962,7 @@ $.datepicker._getDateDatepicker = function(target, noDefault) {
if (tp_inst) {
this._setDateFromField(inst, noDefault);
var date = this._getDate(inst);
if (date && tp_inst._parseTime($(target).val(), true)) date.setHours(tp_inst.hour, tp_inst.minute, tp_inst.second);
if (date && tp_inst._parseTime($(target).val(), tp_inst.timeOnly)) date.setHours(tp_inst.hour, tp_inst.minute, tp_inst.second);
return date;
}
return this._base_getDateDatepicker(target, noDefault);

View file

@ -1,6 +1,6 @@
/* Czech translation for the jQuery Timepicker Addon */
/* Written by Ondřej Vodáček */
$.timepicker.regional.cs = {
$.timepicker.regional['cs'] = {
timeOnlyTitle: 'Vyberte čas',
timeText: 'Čas',
hourText: 'Hodiny',
@ -12,4 +12,4 @@ $.timepicker.regional.cs = {
timeFormat: 'h:m',
ampm: false
};
$.timepicker.setDefaults($.timepicker.regional.cs);
$.timepicker.setDefaults($.timepicker.regional['cs']);