From db4c47d2528dddf657794a9ebb6b722deaa5d1fe Mon Sep 17 00:00:00 2001 From: Feilong Wang Date: Tue, 4 Jul 2017 11:21:16 +1200 Subject: [PATCH] Fix "Open Console" issue on network topology Now when user click the link "Open Console" on the instance balloon of network topology panel, two windows will be opened. This patch fixes that. Closes-Bug: #1702189 Change-Id: I7459e990cac4c6df79c4972e2d5b5b4dee9eb428 --- openstack_dashboard/static/js/horizon.flatnetworktopology.js | 1 + 1 file changed, 1 insertion(+) diff --git a/openstack_dashboard/static/js/horizon.flatnetworktopology.js b/openstack_dashboard/static/js/horizon.flatnetworktopology.js index 1dee1d3f20..51c5654a32 100644 --- a/openstack_dashboard/static/js/horizon.flatnetworktopology.js +++ b/openstack_dashboard/static/js/horizon.flatnetworktopology.js @@ -102,6 +102,7 @@ horizon.flat_network_topology = { }) .on('click', 'a.vnc_window', function(e) { e.preventDefault(); + e.stopImmediatePropagation(); var vnc_window = window.open($(this).attr('href'), vnc_window, 'width=760,height=560'); self.delete_balloon(); })