mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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!
|
||||
else {
|
||||
|
||||
if (!options.hideErrorMessage) {
|
||||
// Disable error message with option or response
|
||||
if (!options.hideErrorMessage && !response.hideErrorMessage) {
|
||||
var warningDiv = $(modal).find('#form-validation-warning');
|
||||
warningDiv.css('display', 'block');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user