mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-11 19:38:19 +00:00
change titel with modal submit
This commit is contained in:
1 parent
35451248c2
commit
ded68bb4f6
1 file changed
+5
-1
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user