From 43118f21eb31e14b3d479ccc62d91af52acb07fd Mon Sep 17 00:00:00 2001 From: mokaddem Date: Tue, 12 Jan 2021 10:21:54 +0100 Subject: [PATCH] chg: [js:api-helper] Renamed function --- webroot/js/api-helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webroot/js/api-helper.js b/webroot/js/api-helper.js index 8e0a1b5..3bca4e3 100644 --- a/webroot/js/api-helper.js +++ b/webroot/js/api-helper.js @@ -240,7 +240,7 @@ class AJAXApi { body: data.message }, true, skipFeedback); feedbackShown = true - this.injectFormValidation(form, data.errors) + this.injectFormValidationFeedback(form, data.errors) toReturn = Promise.reject(data.errors); } } catch (error) { @@ -297,7 +297,7 @@ class AJAXApi { * @param {HTMLFormElement} form - The form form which the POST operation is coming from * @param {Object} [validationErrors={}] - Validation errors reported by the server */ - injectFormValidation(form, validationErrors) { + injectFormValidationFeedback(form, validationErrors) { const formHelper = new FormHelper(form) formHelper.injectValidationErrors(validationErrors) }