summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanchandavishal <manchandavishal143@gmail.com>2023-04-24 16:28:33 +0530
committermanchandavishal <manchandavishal143@gmail.com>2023-04-24 16:28:33 +0530
commitd787bd947cf914d1d92fee9b79bab39f84580045 (patch)
treeb25a85b53bb1985a29ccf54d32c60caede6cf4ff
parentda57fea8e23b73bbf46820fc25cc16a690c5c49b (diff)
downloadhorizon-d787bd947cf914d1d92fee9b79bab39f84580045.tar.gz
Fix deprecated use of 'jQuery.fn.blur()' shorthand event
This patch changed the code to use the recommended .trigger('blur') method instead of the deprecated shorthand event. For more information about this deprecation, please refer [1]. You will get this depracation warning in Identtity->Domains->Action->"Manage Members" popup. [1] https://api.jquery.com/blur/ Change-Id: I8b8713c5b239b3b786abf40b9ddcf5bb9bb109ba
-rw-r--r--horizon/static/horizon/js/horizon.membership.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/static/horizon/js/horizon.membership.js b/horizon/static/horizon/js/horizon.membership.js
index 7d453c556..8253d554c 100644
--- a/horizon/static/horizon/js/horizon.membership.js
+++ b/horizon/static/horizon/js/horizon.membership.js
@@ -486,7 +486,7 @@ horizon.membership = {
// unfocus filter fields
if (step_id.indexOf('update') === 0) {
- $form.find("#" + step_id + " input").blur();
+ $form.find("#" + step_id + " input").trigger('blur');
}
// prevent filter inputs from submitting form on 'enter'