From eff83d0ab8912ae8719df04cd9dc4c4518edef5e Mon Sep 17 00:00:00 2001 From: Trent Date: Tue, 24 May 2011 06:36:05 -0400 Subject: [PATCH] fix getDate bug and consistency in localizations --- jquery-ui-timepicker-addon.js | 2 +- localization/jquery-ui-timepicker-cs.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index 01ffb64..0e3783f 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -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); diff --git a/localization/jquery-ui-timepicker-cs.js b/localization/jquery-ui-timepicker-cs.js index 71f0e04..cc16586 100644 --- a/localization/jquery-ui-timepicker-cs.js +++ b/localization/jquery-ui-timepicker-cs.js @@ -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']);