summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanchandavishal <manchandavishal143@gmail.com>2023-04-12 18:48:49 +0530
committermanchandavishal <manchandavishal143@gmail.com>2023-04-12 18:48:49 +0530
commit6d34551c1c5bf028633511e37011b27d44a8036d (patch)
treeddf76334fbfd2e15480edab99f33484117c56ef8
parent7d44796eca10fa61d4d98ab98358c5932746734e (diff)
downloadhorizon-6d34551c1c5bf028633511e37011b27d44a8036d.tar.gz
Fix deprecated use of 'jQuery.fn.mouseenter()' shorthand event
The mouseenter event shorthand is deprecated in jQuery 3.0 and above. 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.mouseenter(). Please refer [1]. [1] https://api.jquery.com/mouseenter/ Change-Id: I8b746184e6ab260ba0b0292989bd4078767e509e
-rw-r--r--openstack_dashboard/static/js/horizon.flatnetworktopology.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_dashboard/static/js/horizon.flatnetworktopology.js b/openstack_dashboard/static/js/horizon.flatnetworktopology.js
index 944b6f4f1..33d355b93 100644
--- a/openstack_dashboard/static/js/horizon.flatnetworktopology.js
+++ b/openstack_dashboard/static/js/horizon.flatnetworktopology.js
@@ -382,7 +382,7 @@ horizon.flat_network_topology = {
this._portdata.port_margin = d.port_margin;
this._portdata.left = 0;
this._portdata.right = 0;
- $(this).mouseenter(function(e){
+ $(this).on('mouseenter', function(e){
e.stopPropagation();
});
});