Restore some code after merge.

This commit is contained in:
Sébastien 2020-07-01 11:18:50 +02:00
parent 516830b5fe
commit dc704aa1d4

View file

@ -68,15 +68,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili
$('#select-filter-item').trigger('change'); $('#select-filter-item').trigger('change');
}; };
var errorCallback = function (jqXHR, textStatus, errorThrown) { BackendCalendarApi.saveUnavailable(unavailable, successCallback, GeneralFunctions.ajaxFailureHandler);
GeneralFunctions.displayMessageBox('Communication Error', 'Unfortunately ' +
'the operation could not complete due to server communication errors.');
$dialog.find('.modal-message').text(EALang.service_communication_error);
$dialog.find('.modal-message').addClass('alert-danger').removeClass('hidden');
};
BackendCalendarApi.saveUnavailable(unavailable, successCallback, errorCallback);
}); });
/** /**