hide error message

This commit is contained in:
Matthias 2021-06-06 16:32:46 +02:00
parent ded68bb4f6
commit 5e6919f14e
2 changed files with 6 additions and 1 deletions

View File

@ -591,6 +591,11 @@ class FileManagementAjaxView(AjaxView):
self.setTemplate() self.setTemplate()
return self.renderJsonResponse(request) return self.renderJsonResponse(request)
def get_data(self):
data = super().get_data()
data['hideErrorMessage'] = '1'
return data
def setTemplate(self): def setTemplate(self):
""" set template name and title """ """ set template name and title """
self.ajax_template_name = self.ajax_form_steps_template[self.get_step_index()] self.ajax_template_name = self.ajax_form_steps_template[self.get_step_index()]

View File

@ -780,7 +780,7 @@ function handleModalForm(url, options) {
modalSetTitle(modal, response.title); modalSetTitle(modal, response.title);
} }
if (response.hideErrorMessage || !options.hideErrorMessage) { if (!response.hideErrorMessage && !options.hideErrorMessage) {
var warningDiv = $(modal).find('#form-validation-warning'); var warningDiv = $(modal).find('#form-validation-warning');
warningDiv.css('display', 'block'); warningDiv.css('display', 'block');
} }