summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanchandavishal <manchandavishal143@gmail.com>2023-04-26 19:15:43 +0530
committermanchandavishal <manchandavishal143@gmail.com>2023-04-26 19:15:43 +0530
commit0d6d2f1290a2627f1ad871dffbdd416fbd2b095f (patch)
tree5dbe9cea7e0a051da19debb6f31569856040b3e7
parent28ca4c270fdaf4034c07b19a947cc8f0847b8fa6 (diff)
downloadhorizon-0d6d2f1290a2627f1ad871dffbdd416fbd2b095f.tar.gz
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
-rw-r--r--horizon/static/horizon/js/horizon.tables.js2
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 878371642..00cd692e9 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"));