Set Sunday as the first day of the week.
This commit is contained in:
parent
558daf1ecc
commit
00372f2f1a
8 changed files with 36 additions and 36 deletions
|
@ -180,6 +180,18 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="sunday">
|
||||
<?= lang('sunday') ?>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td><input id="sunday-start" class="work-start form-control input-sm"></td>
|
||||
<td><input id="sunday-end" class="work-end form-control input-sm"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
|
@ -252,18 +264,6 @@
|
|||
<td><input id="saturday-start" class="work-start form-control input-sm"></td>
|
||||
<td><input id="saturday-end" class="work-end form-control input-sm"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="sunday">
|
||||
<?= lang('sunday') ?>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td><input id="sunday-start" class="work-start form-control input-sm"></td>
|
||||
<td><input id="sunday-end" class="work-end form-control input-sm"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
|
|
@ -366,6 +366,18 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="sunday">
|
||||
<?= lang('sunday') ?>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td><input id="sunday-start" class="work-start form-control input-sm"></td>
|
||||
<td><input id="sunday-end" class="work-end form-control input-sm"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
|
@ -438,18 +450,6 @@
|
|||
<td><input id="saturday-start" class="work-start form-control input-sm"></td>
|
||||
<td><input id="saturday-end" class="work-end form-control input-sm"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="sunday">
|
||||
<?= lang('sunday') ?>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td><input id="sunday-start" class="work-start form-control input-sm"></td>
|
||||
<td><input id="sunday-end" class="work-end form-control input-sm"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
|
|
@ -413,7 +413,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
|
|||
timeText: EALang.time,
|
||||
hourText: EALang.hour,
|
||||
minuteText: EALang.minutes,
|
||||
firstDay: 1
|
||||
firstDay: 0
|
||||
});
|
||||
$dialog.find('#start-datetime').datetimepicker('setDate', startDatetime);
|
||||
|
||||
|
@ -443,7 +443,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
|
|||
timeText: EALang.time,
|
||||
hourText: EALang.hour,
|
||||
minuteText: EALang.minutes,
|
||||
firstDay: 1
|
||||
firstDay: 0
|
||||
});
|
||||
$dialog.find('#end-datetime').datetimepicker('setDate', endDatetime);
|
||||
};
|
||||
|
|
|
@ -1050,7 +1050,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
defaultView: defaultView,
|
||||
height: _getCalendarHeight(),
|
||||
editable: true,
|
||||
firstDay: 1, // Monday
|
||||
firstDay: 0,
|
||||
snapDuration: '00:30:00',
|
||||
timeFormat: 'h:mm A',
|
||||
slotLabelFormat : 'h(:mm) A',
|
||||
|
|
|
@ -207,7 +207,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili
|
|||
timeText: EALang.time,
|
||||
hourText: EALang.hour,
|
||||
minuteText: EALang.minutes,
|
||||
firstDay: 1
|
||||
firstDay: 0
|
||||
});
|
||||
$dialog.find('#unavailable-start').val(start);
|
||||
|
||||
|
@ -237,7 +237,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili
|
|||
timeText: EALang.time,
|
||||
hourText: EALang.hour,
|
||||
minuteText: EALang.minutes,
|
||||
firstDay: 1
|
||||
firstDay: 0
|
||||
});
|
||||
$dialog.find('#unavailable-end').val(end);
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ window.FrontendBook = window.FrontendBook || {};
|
|||
|
||||
$('#select-date').datepicker({
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1, // Monday
|
||||
firstDay: 0,
|
||||
minDate: 0,
|
||||
defaultDate: Date.today(),
|
||||
|
||||
|
|
|
@ -98,13 +98,13 @@
|
|||
*/
|
||||
WorkingPlan.prototype.editableBreakDay = function($selector) {
|
||||
var weekDays = {};
|
||||
weekDays[EALang.sunday] = EALang.sunday; //'Sunday';
|
||||
weekDays[EALang.monday] = EALang.monday; //'Monday';
|
||||
weekDays[EALang.tuesday] = EALang.tuesday; //'Tuesday';
|
||||
weekDays[EALang.wednesday] = EALang.wednesday; //'Wednesday';
|
||||
weekDays[EALang.thursday] = EALang.thursday; //'Thursday';
|
||||
weekDays[EALang.friday] = EALang.friday; //'Friday';
|
||||
weekDays[EALang.saturday] = EALang.saturday; //'Saturday';
|
||||
weekDays[EALang.sunday] = EALang.sunday; //'Sunday';
|
||||
|
||||
$selector.editable(function(value, settings) {
|
||||
return value;
|
||||
|
@ -396,6 +396,8 @@
|
|||
*/
|
||||
WorkingPlan.prototype.convertValueToDay = function(value) {
|
||||
switch (value) {
|
||||
case 'sunday':
|
||||
return EALang.sunday;
|
||||
case 'monday':
|
||||
return EALang.monday;
|
||||
case 'tuesday':
|
||||
|
@ -408,8 +410,6 @@
|
|||
return EALang.friday;
|
||||
case 'saturday':
|
||||
return EALang.saturday;
|
||||
case 'sunday':
|
||||
return EALang.sunday;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -420,6 +420,8 @@
|
|||
*/
|
||||
WorkingPlan.prototype.convertDayToValue = function(day) {
|
||||
switch (day) {
|
||||
case EALang.sunday:
|
||||
return 'sunday';
|
||||
case EALang.monday:
|
||||
return 'monday';
|
||||
case EALang.tuesday:
|
||||
|
@ -432,8 +434,6 @@
|
|||
return 'friday';
|
||||
case EALang.saturday:
|
||||
return 'saturday';
|
||||
case EALang.sunday:
|
||||
return 'sunday';
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ INSERT INTO
|
|||
`ea_settings` (`name`, `value`)
|
||||
VALUES
|
||||
('company_working_plan',
|
||||
'{"monday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"tuesday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"wednesday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"thursday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"friday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"saturday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"sunday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]}}'),
|
||||
'{"sunday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"monday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"tuesday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"wednesday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"thursday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"friday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"saturday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]}}'),
|
||||
('book_advance_timeout', '30'),
|
||||
('google_analytics_code', ''),
|
||||
('customer_notifications', '1'),
|
||||
|
|
Loading…
Reference in a new issue