mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
hide error message
This commit is contained in:
parent
ded68bb4f6
commit
5e6919f14e
@ -591,6 +591,11 @@ class FileManagementAjaxView(AjaxView):
|
||||
self.setTemplate()
|
||||
return self.renderJsonResponse(request)
|
||||
|
||||
def get_data(self):
|
||||
data = super().get_data()
|
||||
data['hideErrorMessage'] = '1'
|
||||
return data
|
||||
|
||||
def setTemplate(self):
|
||||
""" set template name and title """
|
||||
self.ajax_template_name = self.ajax_form_steps_template[self.get_step_index()]
|
||||
|
@ -780,7 +780,7 @@ function handleModalForm(url, options) {
|
||||
modalSetTitle(modal, response.title);
|
||||
}
|
||||
|
||||
if (response.hideErrorMessage || !options.hideErrorMessage) {
|
||||
if (!response.hideErrorMessage && !options.hideErrorMessage) {
|
||||
var warningDiv = $(modal).find('#form-validation-warning');
|
||||
warningDiv.css('display', 'block');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user