summaryrefslogtreecommitdiff
path: root/horizon
diff options
context:
space:
mode:
authormanchandavishal <manchandavishal143@gmail.com>2023-04-11 23:26:46 +0530
committermanchandavishal <manchandavishal143@gmail.com>2023-04-12 22:16:53 +0530
commit6b0aa201798cb0a893d1b9a1bcc1fa465f8b340f (patch)
tree3a2a0b52a02abf95a298ba286426fc32a963eff4 /horizon
parent7d44796eca10fa61d4d98ab98358c5932746734e (diff)
downloadhorizon-6b0aa201798cb0a893d1b9a1bcc1fa465f8b340f.tar.gz
Update jQuery click event to remove deprecation warning
The shorthand jQuery.fn.click() event has been deprecated in favor of the on() method. This patch updates the code to use the on() method instead to remove the deprecation warning. For more information about the deprecation of jQuery.fn.click(), please refer [1]. [1] https://api.jquery.com/click/ Change-Id: Ic44aaded8d0aaa70e38e46d4121dc3c825f3b831
Diffstat (limited to 'horizon')
-rw-r--r--horizon/static/horizon/js/horizon.messages.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/static/horizon/js/horizon.messages.js b/horizon/static/horizon/js/horizon.messages.js
index 94d654efe..049a94273 100644
--- a/horizon/static/horizon/js/horizon.messages.js
+++ b/horizon/static/horizon/js/horizon.messages.js
@@ -100,7 +100,7 @@ horizon.addInitFunction(function () {
});
// Dismiss alert messages when moving on to a new type of action.
- $('a.ajax-modal').click(function() {
+ $('a.ajax-modal').on('click', function() {
horizon.clearAllMessages();
});