mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-26 01:43:06 +03:00
Pre-select the modified appointment date when editing an existing appointment in the booking form.
This commit is contained in:
parent
3432d4e9ea
commit
c26b111ab2
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
|
|||
var selectedDate = Date.parse(selectedDateString);
|
||||
var numberOfDays = new Date(selectedDate.getFullYear(), selectedDate.getMonth() + 1, 0).getDate();
|
||||
|
||||
if (setDate) {
|
||||
if (setDate && !GlobalVariables.manageMode) {
|
||||
for (var i = 1; i <= numberOfDays; i++) {
|
||||
var currentDate = new Date(selectedDate.getFullYear(), selectedDate.getMonth(), i);
|
||||
if (unavailableDates.indexOf(currentDate.toString('yyyy-MM-dd')) === -1) {
|
||||
|
|
Loading…
Reference in a new issue