fix getDate bug and consistency in localizations
This commit is contained in:
parent
ba1d07e154
commit
eff83d0ab8
2
jquery-ui-timepicker-addon.js
vendored
2
jquery-ui-timepicker-addon.js
vendored
|
@ -962,7 +962,7 @@ $.datepicker._getDateDatepicker = function(target, noDefault) {
|
||||||
if (tp_inst) {
|
if (tp_inst) {
|
||||||
this._setDateFromField(inst, noDefault);
|
this._setDateFromField(inst, noDefault);
|
||||||
var date = this._getDate(inst);
|
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 date;
|
||||||
}
|
}
|
||||||
return this._base_getDateDatepicker(target, noDefault);
|
return this._base_getDateDatepicker(target, noDefault);
|
||||||
|
|
4
localization/jquery-ui-timepicker-cs.js
vendored
4
localization/jquery-ui-timepicker-cs.js
vendored
|
@ -1,6 +1,6 @@
|
||||||
/* Czech translation for the jQuery Timepicker Addon */
|
/* Czech translation for the jQuery Timepicker Addon */
|
||||||
/* Written by Ondřej Vodáček */
|
/* Written by Ondřej Vodáček */
|
||||||
$.timepicker.regional.cs = {
|
$.timepicker.regional['cs'] = {
|
||||||
timeOnlyTitle: 'Vyberte čas',
|
timeOnlyTitle: 'Vyberte čas',
|
||||||
timeText: 'Čas',
|
timeText: 'Čas',
|
||||||
hourText: 'Hodiny',
|
hourText: 'Hodiny',
|
||||||
|
@ -12,4 +12,4 @@ $.timepicker.regional.cs = {
|
||||||
timeFormat: 'h:m',
|
timeFormat: 'h:m',
|
||||||
ampm: false
|
ampm: false
|
||||||
};
|
};
|
||||||
$.timepicker.setDefaults($.timepicker.regional.cs);
|
$.timepicker.setDefaults($.timepicker.regional['cs']);
|
||||||
|
|
Loading…
Reference in a new issue