hide error message with response

This commit is contained in:
Matthias 2021-06-17 19:18:34 +02:00
parent bc46cca9f0
commit ebe2ae77a5

View File

@ -776,7 +776,8 @@ function handleModalForm(url, options) {
// Form was returned, invalid!
else {
if (!options.hideErrorMessage) {
// Disable error message with option or response
if (!options.hideErrorMessage && !response.hideErrorMessage) {
var warningDiv = $(modal).find('#form-validation-warning');
warningDiv.css('display', 'block');
}