From 11659c32615756bae09b134a509e2c0efc711380 Mon Sep 17 00:00:00 2001 From: manchandavishal Date: Tue, 9 May 2023 17:16:10 +0530 Subject: Fix deprecated use of 'jQuery.fn.submit()' shorthand event This patch changed the code to use the recommended .trigger("submit") method instead of the deprecated .submit(). For more information about this deprecation, please refer [1]. [1] https://api.jquery.com/submit-shorthand/ Change-Id: I2c0cceb2091f3dc5419137284373206681f447db --- 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 7b8d99632..50a28900f 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")); -- cgit v1.2.1