From 355056b9dfb891227d2b1c0d09f552885552ae52 Mon Sep 17 00:00:00 2001 From: Mark Friedrich Date: Sun, 2 Jun 2019 17:02:41 +0200 Subject: [PATCH] - fixed broken "deleteConnection" JS function after jsPlumb upgrade --- js/app/map/system.js | 5 ++--- public/js/v1.5.2/app/map/system.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/js/app/map/system.js b/js/app/map/system.js index b6187040..df4fcfb6 100644 --- a/js/app/map/system.js +++ b/js/app/map/system.js @@ -699,9 +699,8 @@ define([ $(tabContentElement).trigger('pf:removeSystemModules'); } - // remove endpoints and their connections - // do not fire a "connectionDetached" event - map.detachAllConnections(system, {fireEvent: false}); + // remove connections do not fire a "connectionDetached" event + map.deleteConnectionsForElement(system, {fireEvent: false}); // destroy tooltip/popover system.toggleSystemTooltip('destroy', {}); diff --git a/public/js/v1.5.2/app/map/system.js b/public/js/v1.5.2/app/map/system.js index b6187040..df4fcfb6 100644 --- a/public/js/v1.5.2/app/map/system.js +++ b/public/js/v1.5.2/app/map/system.js @@ -699,9 +699,8 @@ define([ $(tabContentElement).trigger('pf:removeSystemModules'); } - // remove endpoints and their connections - // do not fire a "connectionDetached" event - map.detachAllConnections(system, {fireEvent: false}); + // remove connections do not fire a "connectionDetached" event + map.deleteConnectionsForElement(system, {fireEvent: false}); // destroy tooltip/popover system.toggleSystemTooltip('destroy', {});