mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-27 17:12:31 +03:00
Improve popover handling while reloading appointments
This commit is contained in:
parent
c133b24874
commit
89acfafcce
1 changed files with 10 additions and 0 deletions
|
@ -44,6 +44,12 @@ App.Utils.CalendarDefaultView = (function () {
|
||||||
$reloadAppointments.on('click', () => {
|
$reloadAppointments.on('click', () => {
|
||||||
const calendarView = fullCalendar.view;
|
const calendarView = fullCalendar.view;
|
||||||
|
|
||||||
|
const $popovers = $('.popover');
|
||||||
|
|
||||||
|
if ($popovers.length) {
|
||||||
|
$popovers.popover('dispose');
|
||||||
|
}
|
||||||
|
|
||||||
refreshCalendarAppointments(
|
refreshCalendarAppointments(
|
||||||
$calendar,
|
$calendar,
|
||||||
$selectFilterItem.val(),
|
$selectFilterItem.val(),
|
||||||
|
@ -1682,6 +1688,10 @@ App.Utils.CalendarDefaultView = (function () {
|
||||||
|
|
||||||
// Automatically refresh the calendar page every 10 seconds (without loading animation).
|
// Automatically refresh the calendar page every 10 seconds (without loading animation).
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
|
if ($('.popover').length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
refreshCalendarAppointments(
|
refreshCalendarAppointments(
|
||||||
$calendar,
|
$calendar,
|
||||||
$selectFilterItem.val(),
|
$selectFilterItem.val(),
|
||||||
|
|
Loading…
Reference in a new issue