set modal title with response

This commit is contained in:
Matthias 2021-06-17 19:22:00 +02:00
parent ebe2ae77a5
commit 3d17388b48

View File

@ -792,6 +792,11 @@ function handleModalForm(url, options) {
if (options.secondary) { if (options.secondary) {
attachSecondaries(modal, options.secondary); attachSecondaries(modal, options.secondary);
} }
// Set modal title with response
if (response.title) {
modalSetTitle(modal, response.title);
}
} }
else { else {
$(modal).modal('hide'); $(modal).modal('hide');