mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
Removed the unnecessary modal-close event handler
This commit is contained in:
parent
5e0ef2acc1
commit
0324a3e464
3 changed files with 1 additions and 26 deletions
|
@ -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"
|
||||
*
|
||||
|
|
|
@ -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"
|
||||
*
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue