From bcde9c46e00a2a4847919393de1179a76cae837f Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Wed, 23 Oct 2024 17:05:40 -0400 Subject: [PATCH] Revert "Remove dependency on jquery-form" --- .../accounting/js/payment_method_handler.js | 17 ++----- .../groups/static/groups/js/group_members.js | 15 ++---- .../js/bootstrap3/crud_paginated_list.js | 46 +++++++++---------- .../hqwebapp/js/bootstrap3/email-request.js | 23 ++++++---- .../js/bootstrap5/crud_paginated_list.js | 44 +++++++++--------- .../hqwebapp/js/bootstrap5/email-request.js | 23 ++++++---- .../hqwebapp/includes/core_libraries.html | 1 + .../rendered/javascript_libraries_hq.html | 1 + .../javascript_libraries_hq_bootstrap5.html | 1 + .../javascript_libraries_jquery_only.html | 1 + .../js/crud_paginated_list.js.diff.txt | 10 ++-- .../hqwebapp/js/email-request.js.diff.txt | 17 +++---- .../static/userreports/js/ucr_expression.js | 4 +- .../static/users/js/edit_commcare_user.js | 5 +- .../templates/users/edit_commcare_user.html | 7 ++- package.json | 1 + yarn.lock | 9 +++- 17 files changed, 116 insertions(+), 109 deletions(-) diff --git a/corehq/apps/accounting/static/accounting/js/payment_method_handler.js b/corehq/apps/accounting/static/accounting/js/payment_method_handler.js index 65a1ccae4553..2033c1043155 100644 --- a/corehq/apps/accounting/static/accounting/js/payment_method_handler.js +++ b/corehq/apps/accounting/static/accounting/js/payment_method_handler.js @@ -63,11 +63,7 @@ hqDefine('accounting/js/payment_method_handler', [ self.paymentMethod = ko.observable(); self.submitForm = function () { - const $form = $('#' + self.formId); - $.ajax({ - url: $form.attr("action"), - data: Object.fromEntries(new FormData($form.get(0))), - method: 'POST', + $('#' + self.formId).ajaxSubmit({ success: self.handleSuccess, error: self.handleGeneralError, }); @@ -204,13 +200,10 @@ hqDefine('accounting/js/payment_method_handler', [ self.removeSavedCard = function () { self.isRemovingCard(true); self.showConfirmRemoveCard(false); - const $form = $('#' + self.formId); - let formData = new FormData($form.get(0)); - formData.set("removeCard", true); - $.ajax({ - url: $form.attr("action"), - method: "POST", - data: Object.fromEntries(formData), + $('#' + self.formId).ajaxSubmit({ + data: { + removeCard: true, + }, success: function (response) { self.handleProcessingErrors(response); for (var i = 0; i < self.handlers.length; i++) { diff --git a/corehq/apps/groups/static/groups/js/group_members.js b/corehq/apps/groups/static/groups/js/group_members.js index 624d20ea34d5..27ea927ff3c6 100644 --- a/corehq/apps/groups/static/groups/js/group_members.js +++ b/corehq/apps/groups/static/groups/js/group_members.js @@ -109,10 +109,7 @@ hqDefine("groups/js/group_members", [ }; _showMembershipUpdating(); $(this).find(':button').prop('disabled', true); - $.ajax({ - url: $(this).attr("action"), - method: "POST", - data: Object.fromEntries(new FormData(this)), + $(this).ajaxSubmit({ success: outcome(true, "Group membership", "#edit_membership", "Edit Group Membership", _hideMembershipUpdating), error: outcome(false, "Group membership", "#edit_membership", _hideMembershipUpdating), }); @@ -120,10 +117,7 @@ hqDefine("groups/js/group_members", [ }); $('#edit-group-settings').submit(function () { $(this).find('.modal-footer :button').disableButton(); - $.ajax({ - url: $(this).attr("action"), - method: "POST", - data: Object.fromEntries(new FormData(this)), + $(this).ajaxSubmit({ success: outcome(true, "Group settings", "#edit-group-settings", "Edit Settings"), error: outcome(false, "Group settings", "#edit-group-settings"), }); @@ -138,10 +132,7 @@ hqDefine("groups/js/group_members", [ }); $('#group-data-form').submit(function () { $(this).find(':button').prop('disabled', true); - $.ajax({ - url: $(this).attr("action"), - method: "POST", - data: Object.fromEntries(new FormData(this)), + $(this).ajaxSubmit({ success: outcome(true, "Group data", "#group-data-form", "Edit Group Data"), error: outcome(false, "Group data", "#group-data-form"), }); diff --git a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/crud_paginated_list.js b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/crud_paginated_list.js index e3d2f97d62c3..98bd5eb228e3 100644 --- a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/crud_paginated_list.js +++ b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/crud_paginated_list.js @@ -57,7 +57,7 @@ hqDefine("hqwebapp/js/bootstrap3/crud_paginated_list", [ }); self.isPaginatedListEmpty = ko.computed(function () { - return self.paginatedList().length === 0; + return self.paginatedList().length == 0; }); self.isNewListVisible = ko.computed(function () { @@ -88,14 +88,12 @@ hqDefine("hqwebapp/js/bootstrap3/crud_paginated_list", [ }); self.allPages = ko.computed(function () { - var lastIndex = self.maxPage() + 1; - if (self.maxPage() <= 5 || self.currentPage() <= 3) { - return _.range(1, Math.min(lastIndex, 6)); - } - if (self.currentPage() >= self.maxPage() - 2) { - return _.range(self.maxPage() - 4, lastIndex); - } - return _.range(self.currentPage() - 2, Math.min(lastIndex, self.currentPage() + 3)); + var last_ind = self.maxPage() + 1; + if (self.maxPage() <= 5 || self.currentPage() <= 3) + return _.range(1, Math.min(last_ind, 6)); + if (self.currentPage() >= self.maxPage() - 2) + return _.range(self.maxPage() - 4, last_ind); + return _.range(self.currentPage() - 2, Math.min(last_ind, self.currentPage() + 3)); }); self.utils = { @@ -145,15 +143,16 @@ hqDefine("hqwebapp/js/bootstrap3/crud_paginated_list", [ }; self.initCreateForm = function () { - const $createForm = $("#create-item-form"); + var $createForm = $("#create-item-form"); $createForm.submit(function (e) { e.preventDefault(); - let formData = new FormData($createForm.get(0)); - formData.set("action", "create"); - $.ajax({ - method: 'POST', + $createForm.ajaxSubmit({ + url: "", + type: 'post', dataType: 'json', - data: Object.fromEntries(formData), + data: { + 'action': 'create', + }, statusCode: self.handleStatusCode, success: function (data) { $createForm[0].reset(); @@ -198,7 +197,7 @@ hqDefine("hqwebapp/js/bootstrap3/crud_paginated_list", [ self.changePage(1); }; - self.deleteItem = function (paginatedItem) { + self.deleteItem = function (paginatedItem, event) { var pList = self.paginatedList(); paginatedItem.dismissModals(); self.paginatedList(_(pList).without(paginatedItem)); @@ -247,10 +246,9 @@ hqDefine("hqwebapp/js/bootstrap3/crud_paginated_list", [ return null; }; - self.initRow = function () { + self.initRow = function (rowElems, paginatedItem) { // Intended to be overridden with additional initialization for // each row in the paginated list. - // Arguments: rowElems, paginatedItem }; return self; @@ -298,12 +296,14 @@ hqDefine("hqwebapp/js/bootstrap3/crud_paginated_list", [ var $updateForm = $(elems).find('.update-item-form'); if ($updateForm) { $updateForm.submit(function (e) { - let formData = new FormData($updateForm.get(0)); - formData.set("action", "update"); e.preventDefault(); - $.ajax({ - method: 'POST', - data: Object.fromEntries(formData), + $updateForm.ajaxSubmit({ + url: "", + type: 'post', + dataType: 'json', + data: { + action: 'update', + }, success: function (data) { if (data.updatedItem) { self.dismissModals(); diff --git a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/email-request.js b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/email-request.js index a8f004e8684c..f17dc484cd7b 100644 --- a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/email-request.js +++ b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/email-request.js @@ -1,6 +1,7 @@ hqDefine('hqwebapp/js/bootstrap3/email-request', [ "jquery", "knockout", + "jquery-form/dist/jquery.form.min", "hqwebapp/js/bootstrap3/hq.helpers", ], function ($, ko) { @@ -65,15 +66,11 @@ hqDefine('hqwebapp/js/bootstrap3/email-request', [ } else if (!self.isRequestReportSubmitting) { self.$submitBtn.button('loading'); self.cancelBtnEnabled(false); - self.reportUrl(location.href); - self.isRequestReportSubmitting = true; - $.ajax({ - method: "POST", + self.$formElement.ajaxSubmit({ + type: "POST", url: self.$formElement.attr('action'), - data: new FormData(self.$formElement.get(0)), - contentType: false, - processData: false, - enctype: 'multipart/form-data', + beforeSerialize: hqwebappRequestReportBeforeSerialize, + beforeSubmit: hqwebappRequestReportBeforeSubmit, success: hqwebappRequestReportSucccess, error: hqwebappRequestReportError, }); @@ -87,7 +84,7 @@ hqDefine('hqwebapp/js/bootstrap3/email-request', [ self.resetForm = function () { self.$formElement.find("button[type='submit']").button('reset'); - self.$formElement.get(0).reset(); + self.$formElement.resetForm(); self.cancelBtnEnabled(true); self.$submitBtn.button('reset'); resetErrors(); @@ -109,6 +106,14 @@ hqDefine('hqwebapp/js/bootstrap3/email-request', [ self.recipientsErrorMessage(null); } + function hqwebappRequestReportBeforeSerialize() { + self.reportUrl(location.href); + } + + function hqwebappRequestReportBeforeSubmit() { + self.isRequestReportSubmitting = true; + } + function hqwebappRequestReportSucccess() { self.isRequestReportSubmitting = false; self.isReportSent = true; diff --git a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/crud_paginated_list.js b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/crud_paginated_list.js index 332303cc3edb..f463a0358313 100644 --- a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/crud_paginated_list.js +++ b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/crud_paginated_list.js @@ -59,7 +59,7 @@ hqDefine("hqwebapp/js/bootstrap5/crud_paginated_list", [ }); self.isPaginatedListEmpty = ko.computed(function () { - return self.paginatedList().length === 0; + return self.paginatedList().length == 0; }); self.isNewListVisible = ko.computed(function () { @@ -90,14 +90,12 @@ hqDefine("hqwebapp/js/bootstrap5/crud_paginated_list", [ }); self.allPages = ko.computed(function () { - var lastIndex = self.maxPage() + 1; - if (self.maxPage() <= 5 || self.currentPage() <= 3) { - return _.range(1, Math.min(lastIndex, 6)); - } - if (self.currentPage() >= self.maxPage() - 2) { - return _.range(self.maxPage() - 4, lastIndex); - } - return _.range(self.currentPage() - 2, Math.min(lastIndex, self.currentPage() + 3)); + var last_ind = self.maxPage() + 1; + if (self.maxPage() <= 5 || self.currentPage() <= 3) + return _.range(1, Math.min(last_ind, 6)); + if (self.currentPage() >= self.maxPage() - 2) + return _.range(self.maxPage() - 4, last_ind); + return _.range(self.currentPage() - 2, Math.min(last_ind, self.currentPage() + 3)); }); self.utils = { @@ -147,15 +145,16 @@ hqDefine("hqwebapp/js/bootstrap5/crud_paginated_list", [ }; self.initCreateForm = function () { - const $createForm = $("#create-item-form"); + var $createForm = $("#create-item-form"); $createForm.submit(function (e) { e.preventDefault(); - let formData = new FormData($createForm.get(0)); - formData.set("action", "create"); - $.ajax({ - method: 'POST', + $createForm.ajaxSubmit({ + url: "", + type: 'post', dataType: 'json', - data: Object.fromEntries(formData), + data: { + 'action': 'create', + }, statusCode: self.handleStatusCode, success: function (data) { $createForm[0].reset(); @@ -251,10 +250,9 @@ hqDefine("hqwebapp/js/bootstrap5/crud_paginated_list", [ return null; }; - self.initRow = function () { + self.initRow = function (rowElems, paginatedItem) { // Intended to be overridden with additional initialization for // each row in the paginated list. - // Arguments: rowElems, paginatedItem }; return self; @@ -296,12 +294,14 @@ hqDefine("hqwebapp/js/bootstrap5/crud_paginated_list", [ var $updateForm = $(elems).find('.update-item-form'); if ($updateForm) { $updateForm.submit(function (e) { - let formData = new FormData($updateForm.get(0)); - formData.set("action", "update"); e.preventDefault(); - $.ajax({ - method: 'POST', - data: Object.fromEntries(formData), + $updateForm.ajaxSubmit({ + url: "", + type: 'post', + dataType: 'json', + data: { + action: 'update', + }, success: function (data) { if (data.updatedItem) { self.dismissModals(); diff --git a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/email-request.js b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/email-request.js index 05e0021a4bcf..d4142df9ded3 100644 --- a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/email-request.js +++ b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/email-request.js @@ -2,6 +2,7 @@ hqDefine('hqwebapp/js/bootstrap5/email-request', [ "jquery", "knockout", "es6!hqwebapp/js/bootstrap5_loader", + "jquery-form/dist/jquery.form.min", "hqwebapp/js/bootstrap5/hq.helpers", ], function ($, ko, bootstrap) { 'use strict'; @@ -68,15 +69,11 @@ hqDefine('hqwebapp/js/bootstrap5/email-request', [ } else if (!self.isRequestReportSubmitting) { self.$submitBtn.changeButtonState('loading'); self.cancelBtnEnabled(false); - self.reportUrl(location.href); - self.isRequestReportSubmitting = true; - $.ajax({ - method: "POST", + self.$formElement.ajaxSubmit({ + type: "POST", url: self.$formElement.attr('action'), - data: new FormData(self.$formElement.get(0)), - contentType: false, - processData: false, - enctype: 'multipart/form-data', + beforeSerialize: hqwebappRequestReportBeforeSerialize, + beforeSubmit: hqwebappRequestReportBeforeSubmit, success: hqwebappRequestReportSucccess, error: hqwebappRequestReportError, }); @@ -90,7 +87,7 @@ hqDefine('hqwebapp/js/bootstrap5/email-request', [ self.resetForm = function () { self.$formElement.find("button[type='submit']").changeButtonState('reset'); - self.$formElement.get(0).reset(); + self.$formElement.resetForm(); self.cancelBtnEnabled(true); self.$submitBtn.changeButtonState('reset'); resetErrors(); @@ -112,6 +109,14 @@ hqDefine('hqwebapp/js/bootstrap5/email-request', [ self.recipientsErrorMessage(null); } + function hqwebappRequestReportBeforeSerialize() { + self.reportUrl(location.href); + } + + function hqwebappRequestReportBeforeSubmit() { + self.isRequestReportSubmitting = true; + } + function hqwebappRequestReportSucccess() { self.isRequestReportSubmitting = false; self.isReportSent = true; diff --git a/corehq/apps/hqwebapp/templates/hqwebapp/includes/core_libraries.html b/corehq/apps/hqwebapp/templates/hqwebapp/includes/core_libraries.html index 65d73e2f8164..06663c8f14e4 100644 --- a/corehq/apps/hqwebapp/templates/hqwebapp/includes/core_libraries.html +++ b/corehq/apps/hqwebapp/templates/hqwebapp/includes/core_libraries.html @@ -20,6 +20,7 @@ {% compress js %} + {% endcompress %} diff --git a/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_hq.html b/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_hq.html index 62eef4113089..0efab1511daa 100644 --- a/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_hq.html +++ b/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_hq.html @@ -5,6 +5,7 @@ + diff --git a/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_hq_bootstrap5.html b/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_hq_bootstrap5.html index 6af189572cd4..3514c8cfc99c 100644 --- a/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_hq_bootstrap5.html +++ b/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_hq_bootstrap5.html @@ -5,6 +5,7 @@ + diff --git a/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_jquery_only.html b/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_jquery_only.html index c9f6b805f003..27b50c39726e 100644 --- a/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_jquery_only.html +++ b/corehq/apps/hqwebapp/templatetags/tests/rendered/javascript_libraries_jquery_only.html @@ -1,5 +1,6 @@ {% load hq_shared_tags %} + diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/javascript/hqwebapp/js/crud_paginated_list.js.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/javascript/hqwebapp/js/crud_paginated_list.js.diff.txt index ec0cf0a3a80b..4de0c3d8db31 100644 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/javascript/hqwebapp/js/crud_paginated_list.js.diff.txt +++ b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/javascript/hqwebapp/js/crud_paginated_list.js.diff.txt @@ -17,18 +17,18 @@ ) { var CRUDPaginatedListModel = function ( total, -@@ -198,8 +200,9 @@ +@@ -197,8 +199,9 @@ self.changePage(1); }; -- self.deleteItem = function (paginatedItem) { +- self.deleteItem = function (paginatedItem, event) { + self.deleteItem = function (paginatedItem, event, button) { var pList = self.paginatedList(); + $(button).enableButton(); paginatedItem.dismissModals(); self.paginatedList(_(pList).without(paginatedItem)); self.deletedList.push(paginatedItem); -@@ -223,7 +226,7 @@ +@@ -222,7 +225,7 @@ }); }; @@ -37,7 +37,7 @@ $.ajax({ url: '', type: 'post', -@@ -239,6 +242,7 @@ +@@ -238,6 +241,7 @@ statusCode: self.handleStatusCode, success: function (data) { self.utils.reloadList(data); @@ -45,7 +45,7 @@ }, }); }; -@@ -270,15 +274,9 @@ +@@ -268,15 +272,9 @@ }; self.dismissModals = function () { diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/javascript/hqwebapp/js/email-request.js.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/javascript/hqwebapp/js/email-request.js.diff.txt index a8cce8366ffc..789aa515b6c5 100644 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/javascript/hqwebapp/js/email-request.js.diff.txt +++ b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/javascript/hqwebapp/js/email-request.js.diff.txt @@ -1,13 +1,14 @@ --- +++ -@@ -1,13 +1,16 @@ +@@ -1,14 +1,17 @@ -hqDefine('hqwebapp/js/bootstrap3/email-request', [ +hqDefine('hqwebapp/js/bootstrap5/email-request', [ "jquery", "knockout", ++ "es6!hqwebapp/js/bootstrap5_loader", + "jquery-form/dist/jquery.form.min", - "hqwebapp/js/bootstrap3/hq.helpers", -], function ($, ko) { -+ "es6!hqwebapp/js/bootstrap5_loader", + "hqwebapp/js/bootstrap5/hq.helpers", +], function ($, ko, bootstrap) { + 'use strict'; @@ -20,7 +21,7 @@ self.$formElement = $(`#${formId}`); self.$submitBtn = self.$formElement.find("button[type='submit']"); -@@ -61,9 +64,9 @@ +@@ -62,9 +65,9 @@ if (!self.isRequestReportSubmitting && self.isReportSent) { self.isReportSent = false; @@ -30,22 +31,22 @@ - self.$submitBtn.button('loading'); + self.$submitBtn.changeButtonState('loading'); self.cancelBtnEnabled(false); - self.reportUrl(location.href); - self.isRequestReportSubmitting = true; -@@ -86,10 +89,10 @@ + self.$formElement.ajaxSubmit({ + type: "POST", +@@ -83,10 +86,10 @@ }; self.resetForm = function () { - self.$formElement.find("button[type='submit']").button('reset'); + self.$formElement.find("button[type='submit']").changeButtonState('reset'); - self.$formElement.get(0).reset(); + self.$formElement.resetForm(); self.cancelBtnEnabled(true); - self.$submitBtn.button('reset'); + self.$submitBtn.changeButtonState('reset'); resetErrors(); }; -@@ -112,12 +115,12 @@ +@@ -117,12 +120,12 @@ function hqwebappRequestReportSucccess() { self.isRequestReportSubmitting = false; self.isReportSent = true; diff --git a/corehq/apps/userreports/static/userreports/js/ucr_expression.js b/corehq/apps/userreports/static/userreports/js/ucr_expression.js index f5d49b4f3319..ada0698f7879 100644 --- a/corehq/apps/userreports/static/userreports/js/ucr_expression.js +++ b/corehq/apps/userreports/static/userreports/js/ucr_expression.js @@ -43,9 +43,7 @@ hqDefine("userreports/js/ucr_expression", [ }; self.saveExpression = function (form) { - $.ajax({ - method: 'POST', - data: Object.fromEntries(new FormData(form)), + $(form).ajaxSubmit({ dataType: 'json', success: function (response) { alertUser.alert_user(gettext("Expression saved"), 'success'); diff --git a/corehq/apps/users/static/users/js/edit_commcare_user.js b/corehq/apps/users/static/users/js/edit_commcare_user.js index 269c40e71e77..6c0dfc21699c 100644 --- a/corehq/apps/users/static/users/js/edit_commcare_user.js +++ b/corehq/apps/users/static/users/js/edit_commcare_user.js @@ -38,11 +38,10 @@ hqDefine('users/js/edit_commcare_user', [ }); $('#reset-password-form').submit(function () { - $.ajax({ + $(this).ajaxSubmit({ url: $(this).attr('action'), - method: $(this).attr('method'), + type: 'POST', dataType: 'json', - data: Object.fromEntries(new FormData(this)), success: function (response) { if (response.status === "OK") { alertUser.alert_user(gettext("Password changed successfully."), 'success'); diff --git a/corehq/apps/users/templates/users/edit_commcare_user.html b/corehq/apps/users/templates/users/edit_commcare_user.html index 74b94eb3629c..61672a0f1a76 100644 --- a/corehq/apps/users/templates/users/edit_commcare_user.html +++ b/corehq/apps/users/templates/users/edit_commcare_user.html @@ -83,8 +83,11 @@

{% trans "[Support only] Assigned Locations" %}

{% if not request.is_view_only %} -
- {% crispy reset_password_form %} + + {% csrf_token %} +
+ {% crispy reset_password_form %} +
{% endif %}
diff --git a/package.json b/package.json index 1668543d7f87..bcbbfad2c0fb 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "htmx.org": "2.0.3", "intl-tel-input": "9.0.7", "jquery": "3.5.1", + "jquery-form": "4.2.2", "jquery-memoized-ajax": "0.5.0", "jquery-textchange": "jmalonzo/bower-jquery-textchange#0.2.3", "jquery-tiny-pubsub": "cowboy/jquery-tiny-pubsub#~0.7.0", diff --git a/yarn.lock b/yarn.lock index 39d3b01a201d..6ab810b2407d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3682,6 +3682,13 @@ jest-worker@^27.4.5: merge-stream "^2.0.0" supports-color "^8.0.0" +jquery-form@4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/jquery-form/-/jquery-form-4.2.2.tgz#9f96fb141ec9cbe0cdaf58b4d3f1dcbb009cdd52" + integrity sha512-HJTef7DRBSg8ge/RNUw8rUTTtB3l8ozO0OhD16AzDl+eIXp4skgCqRTd9fYPsOzL+pN6+1B9wvbTLGjgikz8Tg== + dependencies: + jquery ">=1.7.2" + jquery-memoized-ajax@0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/jquery-memoized-ajax/-/jquery-memoized-ajax-0.5.0.tgz#5331f2fa5838569bd564e4760d4520570a732817" @@ -3724,7 +3731,7 @@ jquery@3.5.1: resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.1.tgz#d7b4d08e1bfdb86ad2f1a3d039ea17304717abb5" integrity sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg== -"jquery@>= 1.7.1", jquery@>=1.10, jquery@>=1.7, jquery@>=1.8, "jquery@>=1.8.0 <4.0.0", jquery@^3.5.1: +"jquery@>= 1.7.1", jquery@>=1.10, jquery@>=1.7, jquery@>=1.7.2, jquery@>=1.8, "jquery@>=1.8.0 <4.0.0", jquery@^3.5.1: version "3.6.0" resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.0.tgz#c72a09f15c1bdce142f49dbf1170bdf8adac2470" integrity sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==