From 6d34551c1c5bf028633511e37011b27d44a8036d Mon Sep 17 00:00:00 2001 From: manchandavishal Date: Wed, 12 Apr 2023 18:48:49 +0530 Subject: 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 --- openstack_dashboard/static/js/horizon.flatnetworktopology.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }); }); -- cgit v1.2.1