From 143624b7d8eb09ccff6b8560bf29067e3b7b7716 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 15 Aug 2020 16:33:26 +0300 Subject: [PATCH] Close popover when inserting new appointment (#773). --- assets/js/backend_calendar_appointments_modal.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/js/backend_calendar_appointments_modal.js b/assets/js/backend_calendar_appointments_modal.js index 7eb0db61..68f698bc 100755 --- a/assets/js/backend_calendar_appointments_modal.js +++ b/assets/js/backend_calendar_appointments_modal.js @@ -125,6 +125,8 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa * create a new appointment. */ $('#insert-appointment').click(function () { + $('.popover').remove(); + BackendCalendarAppointmentsModal.resetAppointmentDialog(); var $dialog = $('#manage-appointment');