From 0d6d2f1290a2627f1ad871dffbdd416fbd2b095f Mon Sep 17 00:00:00 2001 From: manchandavishal Date: Wed, 26 Apr 2023 19:15:43 +0530 Subject: [PATCH] Fix "jQuery.fn.submit() event shorthand is deprecated" warning This patch changed the code to use the recommended .trigger('submit') instead of the deprecated shorthand event .submit(). For more information about this deprecation, please refer [1]. I am getting this warning while deleting the "Application Credentials" under Identity dashboard. [1] https://api.jquery.com/submit-shorthand/ Change-Id: Icd86ccd6ec7c7b0df0e25254751caa7bc0a5f8e1 --- horizon/static/horizon/js/horizon.tables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/horizon/static/horizon/js/horizon.tables.js b/horizon/static/horizon/js/horizon.tables.js index 8783716429..00cd692e93 100644 --- a/horizon/static/horizon/js/horizon.tables.js +++ b/horizon/static/horizon/js/horizon.tables.js @@ -342,7 +342,7 @@ horizon.datatables.confirm = function(action) { el.value = $action.attr('value'); $form .append(el) - .submit(); + .trigger('submit'); modal.modal('hide'); horizon.modals.modal_spinner(gettext("Working"));