mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
change titel with modal submit
This commit is contained in:
parent
35451248c2
commit
ded68bb4f6
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user