Removed the unnecessary modal-close event handler

This commit is contained in:
Alex Tselegidis 2020-09-30 14:35:46 +03:00
parent 5e0ef2acc1
commit 0324a3e464
3 changed files with 1 additions and 26 deletions

View file

@ -35,15 +35,6 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
}
function bindEventHandlers() {
/**
* Event: Manage Appointments Dialog Cancel Button "Click"
*
* Closes the dialog without saving any changes to the database.
*/
$('#manage-appointment #cancel-appointment').on('click', function () {
$('#manage-appointment').modal('hide');
});
/**
* Event: Manage Appointments Dialog Save Button "Click"
*

View file

@ -129,13 +129,6 @@ window.BackendCalendarGoogleSync = window.BackendCalendarGoogleSync || {};
.fail(GeneralFunctions.ajaxFailureHandler);
});
/**
* Event: Close Google Calendar "Click"
*/
$('#close-calendar').on('click', function () {
$('#select-google-calendar').modal('hide');
});
/**
* Event: Google Sync Button "Click"
*

View file

@ -81,16 +81,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili
$('#select-filter-item').trigger('change');
};
BackendCalendarApi.saveUnavailable(unavailable, successCallback, GeneralFunctions.ajaxFailureHandler);
});
/**
* Event: Manage Unavailable Dialog Cancel Button "Click"
*
* Closes the dialog without saveing any changes to the database.
*/
$('#manage-unavailable #cancel-unavailable').on('click', function () {
$('#manage-unavailable').modal('hide');
BackendCalendarApi.saveUnavailable(unavailable, successCallback, null);
});
/**