forked from mirrors/easyappointments
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;
|
||||||
}
|
}
|
||||||
|
@ -1737,6 +1737,8 @@ App.Utils.CalendarTableView = (function () {
|
||||||
.addClass('justify-content-between')
|
.addClass('justify-content-between')
|
||||||
.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