forked from mirrors/easyappointments
Merge pull request #756 from popod/remove-modal-timeout
Remove timeout before closing the extra periods modal on success.
This commit is contained in:
commit
ac44edf43f
1 changed files with 18 additions and 23 deletions
|
@ -59,13 +59,9 @@ window.BackendCalendarExtraPeriodsModal = window.BackendCalendarExtraPeriodsModa
|
|||
|
||||
var successCallback = function (response) {
|
||||
// Display success message to the user.
|
||||
$dialog.find('.modal-message')
|
||||
.text(EALang.extra_period_saved)
|
||||
.addClass('alert-success')
|
||||
.removeClass('alert-danger hidden');
|
||||
Backend.displayNotification(EALang.extra_period_saved);
|
||||
|
||||
// Close the modal dialog and refresh the calendar appointments after one second.
|
||||
setTimeout(function () {
|
||||
// Close the modal dialog and refresh the calendar appointments.
|
||||
$dialog.find('.alert').addClass('hidden');
|
||||
$dialog.modal('hide');
|
||||
|
||||
|
@ -85,7 +81,6 @@ window.BackendCalendarExtraPeriodsModal = window.BackendCalendarExtraPeriodsModa
|
|||
GlobalVariables.availableProviders[providerIdx] = provider;
|
||||
|
||||
$('#select-filter-item').trigger('change');
|
||||
}, 2000);
|
||||
};
|
||||
|
||||
var errorCallback = function (jqXHR, textStatus, errorThrown) {
|
||||
|
|
Loading…
Reference in a new issue