change titel with modal submit

This commit is contained in:
Matthias 2021-06-06 16:09:51 +02:00
parent 35451248c2
commit ded68bb4f6

View File

@ -776,7 +776,11 @@ function handleModalForm(url, options) {
// Form was returned, invalid!
else {
if (!options.hideErrorMessage) {
if (response.title) {
modalSetTitle(modal, response.title);
}
if (response.hideErrorMessage || !options.hideErrorMessage) {
var warningDiv = $(modal).find('#form-validation-warning');
warningDiv.css('display', 'block');
}