diff options
author | manchandavishal <manchandavishal143@gmail.com> | 2023-05-09 17:16:10 +0530 |
---|---|---|
committer | manchandavishal <manchandavishal143@gmail.com> | 2023-05-09 17:16:10 +0530 |
commit | 11659c32615756bae09b134a509e2c0efc711380 (patch) | |
tree | ac3b0895eb6d784f33ff36a4156cd6a06ce499cf | |
parent | 852d5dc7922abe0b9d2a3e26ed6ede9902a2da47 (diff) | |
download | horizon-11659c32615756bae09b134a509e2c0efc711380.tar.gz |
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
-rw-r--r-- | horizon/static/horizon/js/horizon.tables.js | 2 |
1 files changed, 1 insertions, 1 deletions
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")); |