mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-08 17:12:25 +03:00
Do not add bookAdvanceTimeout delay to new appointment modal on the backend.
This commit is contained in:
parent
1821e50116
commit
8704413c0f
3 changed files with 2 additions and 4 deletions
|
@ -99,7 +99,6 @@ class Backend extends CI_Controller {
|
|||
$view['base_url'] = $this->config->item('base_url');
|
||||
$view['user_display_name'] = $this->user_model->get_user_display_name($this->session->userdata('user_id'));
|
||||
$view['active_menu'] = PRIV_APPOINTMENTS;
|
||||
$view['book_advance_timeout'] = $this->settings_model->get_setting('book_advance_timeout');
|
||||
$view['date_format'] = $this->settings_model->get_setting('date_format');
|
||||
$view['time_format'] = $this->settings_model->get_setting('time_format');
|
||||
$view['first_weekday'] = $this->settings_model->get_setting('first_weekday');
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
'availableProviders' : <?= json_encode($available_providers) ?>,
|
||||
'availableServices' : <?= json_encode($available_services) ?>,
|
||||
'baseUrl' : <?= json_encode($base_url) ?>,
|
||||
'bookAdvanceTimeout' : <?= $book_advance_timeout ?>,
|
||||
'dateFormat' : <?= json_encode($date_format) ?>,
|
||||
'timeFormat' : <?= json_encode($time_format) ?>,
|
||||
'firstWeekday' : <?= json_encode($first_weekday) ?>,
|
||||
|
|
|
@ -390,8 +390,8 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
|
|||
|
||||
var duration = service ? service.duration : 0;
|
||||
|
||||
var startDatetime = new Date().addMinutes(GlobalVariables.bookAdvanceTimeout);
|
||||
var endDatetime = new Date().addMinutes(GlobalVariables.bookAdvanceTimeout).addMinutes(duration);
|
||||
var startDatetime = new Date();
|
||||
var endDatetime = new Date().addMinutes(duration);
|
||||
var dateFormat;
|
||||
|
||||
switch (GlobalVariables.dateFormat) {
|
||||
|
|
Loading…
Reference in a new issue