mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-26 00:30:51 +00:00
change titel with modal submit
This commit is contained in:
@ -776,7 +776,11 @@ function handleModalForm(url, options) {
|
|||||||
// Form was returned, invalid!
|
// Form was returned, invalid!
|
||||||
else {
|
else {
|
||||||
|
|
||||||
if (!options.hideErrorMessage) {
|
if (response.title) {
|
||||||
|
modalSetTitle(modal, response.title);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (response.hideErrorMessage || !options.hideErrorMessage) {
|
||||||
var warningDiv = $(modal).find('#form-validation-warning');
|
var warningDiv = $(modal).find('#form-validation-warning');
|
||||||
warningDiv.css('display', 'block');
|
warningDiv.css('display', 'block');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user