From a604de27f818b869776b6c4be68516e5d841f0e8 Mon Sep 17 00:00:00 2001 From: ivanPozdnyakov Date: Thu, 7 Jan 2016 14:20:23 -0500 Subject: [PATCH] like search --- VQI_PathwayEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VQI_PathwayEditor.js b/VQI_PathwayEditor.js index 494333b..ca55c55 100755 --- a/VQI_PathwayEditor.js +++ b/VQI_PathwayEditor.js @@ -320,7 +320,7 @@ var VQI_PathwayEditor = function (parent) { function focus(name){ var cy = $('#' + parent + '-cy').cytoscape('get'); - cy.elements("node[name = \"" + name + "\"]").select(); + cy.elements("node[name *= \"" + name + "\"]").select(); cy.$('node').style("opacity", 0.2); cy.$('edge').style("opacity", 0.2); cy.$('node:selected').style("opacity", 1.0);