mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
hide error message with response
This commit is contained in:
parent
bc46cca9f0
commit
ebe2ae77a5
@ -776,7 +776,8 @@ function handleModalForm(url, options) {
|
|||||||
// Form was returned, invalid!
|
// Form was returned, invalid!
|
||||||
else {
|
else {
|
||||||
|
|
||||||
if (!options.hideErrorMessage) {
|
// Disable error message with option or response
|
||||||
|
if (!options.hideErrorMessage && !response.hideErrorMessage) {
|
||||||
var warningDiv = $(modal).find('#form-validation-warning');
|
var warningDiv = $(modal).find('#form-validation-warning');
|
||||||
warningDiv.css('display', 'block');
|
warningDiv.css('display', 'block');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user