mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-23 00:13:21 +03:00
Corrections in the datetimepicker and timepicker formatting.
This commit is contained in:
parent
bbffd75a51
commit
ead4ae5985
2 changed files with 4 additions and 4 deletions
|
@ -183,7 +183,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili
|
||||||
|
|
||||||
$dialog.find('#unavailable-start').datetimepicker({
|
$dialog.find('#unavailable-start').datetimepicker({
|
||||||
dateFormat: dateFormat,
|
dateFormat: dateFormat,
|
||||||
timeFormat: GlobalVariables.timeFormat === 'regular' ? 'h:mm tt' : 'HH:mm',
|
timeFormat: GlobalVariables.timeFormat === 'regular' ? 'h:mm TT' : 'HH:mm',
|
||||||
|
|
||||||
// Translation
|
// Translation
|
||||||
dayNames: [EALang.sunday, EALang.monday, EALang.tuesday, EALang.wednesday,
|
dayNames: [EALang.sunday, EALang.monday, EALang.tuesday, EALang.wednesday,
|
||||||
|
@ -213,7 +213,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili
|
||||||
|
|
||||||
$dialog.find('#unavailable-end').datetimepicker({
|
$dialog.find('#unavailable-end').datetimepicker({
|
||||||
dateFormat: dateFormat,
|
dateFormat: dateFormat,
|
||||||
timeFormat: GlobalVariables.timeFormat === 'regular' ? 'h:mm tt' : 'HH:mm',
|
timeFormat: GlobalVariables.timeFormat === 'regular' ? 'h:mm TT' : 'HH:mm',
|
||||||
|
|
||||||
// Translation
|
// Translation
|
||||||
dayNames: [EALang.sunday, EALang.monday, EALang.tuesday, EALang.wednesday,
|
dayNames: [EALang.sunday, EALang.monday, EALang.tuesday, EALang.wednesday,
|
||||||
|
|
|
@ -234,7 +234,7 @@
|
||||||
// Make all cells in current row editable.
|
// Make all cells in current row editable.
|
||||||
$(this).parent().parent().children().trigger('edit');
|
$(this).parent().parent().children().trigger('edit');
|
||||||
$(this).parent().parent().find('.break-start input, .break-end input').timepicker({
|
$(this).parent().parent().find('.break-start input, .break-end input').timepicker({
|
||||||
timeFormat: GlobalVariables.timeFormat === 'regular' ? 'h:mm tt' : 'HH:mm',
|
timeFormat: GlobalVariables.timeFormat === 'regular' ? 'h:mm TT' : 'HH:mm',
|
||||||
currentText: EALang.now,
|
currentText: EALang.now,
|
||||||
closeText: EALang.close,
|
closeText: EALang.close,
|
||||||
timeOnlyTitle: EALang.select_time,
|
timeOnlyTitle: EALang.select_time,
|
||||||
|
@ -361,7 +361,7 @@
|
||||||
if (disabled == false) {
|
if (disabled == false) {
|
||||||
// Set timepickers where needed.
|
// Set timepickers where needed.
|
||||||
$('.working-plan input:text').timepicker({
|
$('.working-plan input:text').timepicker({
|
||||||
timeFormat: GlobalVariables.timeFormat === 'regular' ? 'h:mm tt' : 'HH:mm',
|
timeFormat: GlobalVariables.timeFormat === 'regular' ? 'h:mm TT' : 'HH:mm',
|
||||||
currentText: EALang.now,
|
currentText: EALang.now,
|
||||||
closeText: EALang.close,
|
closeText: EALang.close,
|
||||||
timeOnlyTitle: EALang.select_time,
|
timeOnlyTitle: EALang.select_time,
|
||||||
|
|
Loading…
Reference in a new issue