mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 08:53:05 +03:00
Unselect the selected time of the calendar right after it is detected.
This commit is contained in:
parent
d3c96efac5
commit
bf3f2d7131
2 changed files with 6 additions and 2 deletions
|
@ -1111,6 +1111,8 @@ App.Utils.CalendarDefaultView = (function () {
|
||||||
.find('.btn')
|
.find('.btn')
|
||||||
.css('width', 'calc(50% - 10px)');
|
.css('width', 'calc(50% - 10px)');
|
||||||
|
|
||||||
|
fullCalendar.unselect();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -712,7 +712,7 @@ App.Utils.CalendarTableView = (function () {
|
||||||
eventClick: onEventClick,
|
eventClick: onEventClick,
|
||||||
eventResize: onEventResize,
|
eventResize: onEventResize,
|
||||||
eventDrop: onEventDrop,
|
eventDrop: onEventDrop,
|
||||||
select: onSelect
|
select: (info) => onSelect(info, fullCalendar)
|
||||||
});
|
});
|
||||||
|
|
||||||
fullCalendar.render();
|
fullCalendar.render();
|
||||||
|
@ -1659,7 +1659,7 @@ App.Utils.CalendarTableView = (function () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSelect(info) {
|
function onSelect(info, fullCalendar) {
|
||||||
if (info.allDay) {
|
if (info.allDay) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1738,6 +1738,8 @@ App.Utils.CalendarTableView = (function () {
|
||||||
.find('.btn')
|
.find('.btn')
|
||||||
.css('width', 'calc(50% - 10px)');
|
.css('width', 'calc(50% - 10px)');
|
||||||
|
|
||||||
|
fullCalendar.unselect();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue