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')
|
||||
.css('width', 'calc(50% - 10px)');
|
||||
|
||||
fullCalendar.unselect();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -712,7 +712,7 @@ App.Utils.CalendarTableView = (function () {
|
|||
eventClick: onEventClick,
|
||||
eventResize: onEventResize,
|
||||
eventDrop: onEventDrop,
|
||||
select: onSelect
|
||||
select: (info) => onSelect(info, fullCalendar)
|
||||
});
|
||||
|
||||
fullCalendar.render();
|
||||
|
@ -1659,7 +1659,7 @@ App.Utils.CalendarTableView = (function () {
|
|||
}
|
||||
}
|
||||
|
||||
function onSelect(info) {
|
||||
function onSelect(info, fullCalendar) {
|
||||
if (info.allDay) {
|
||||
return;
|
||||
}
|
||||
|
@ -1737,6 +1737,8 @@ App.Utils.CalendarTableView = (function () {
|
|||
.addClass('justify-content-between')
|
||||
.find('.btn')
|
||||
.css('width', 'calc(50% - 10px)');
|
||||
|
||||
fullCalendar.unselect();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue