mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +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;
|
||||
}
|
||||
|
@ -1738,6 +1738,8 @@ App.Utils.CalendarTableView = (function () {
|
|||
.find('.btn')
|
||||
.css('width', 'calc(50% - 10px)');
|
||||
|
||||
fullCalendar.unselect();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue