share/views/public/js/rbbt.plots/rbbt.plots.graph.adapters.js in rbbt-rest-1.8.2 vs share/views/public/js/rbbt.plots/rbbt.plots.graph.adapters.js in rbbt-rest-1.8.3
- old
+ new
@@ -135,11 +135,11 @@
rbbt.plots.graph.view_cytoscape = function(graph_model, elem, style, layout, extra){
rbbt.plots.graph.update(graph_model).then(function(updated_model){
var dataset = rbbt.plots.graph.build_cytoscape(updated_model)
require_js(['/js/cytoscape/js/src/AC_OETags.js', '/js/cytoscape/js/src/cytoscapeweb.js', '/js/cytoscape'], function(){
- var tool = $('#plot').cytoscape_tool({
+ var tool = $(elem).cytoscape_tool({
knowledge_base: 'user',
namespace: 'Hsa/feb2014',
entities: dataset.nodes,
network: dataset,
aesthetics: {},
@@ -157,10 +157,11 @@
var variable_value = target.data[i];
}
var url = target.data.url;
- rbbt.modal.controller.show_url(url)
+ if (url)
+ rbbt.modal.controller.show_url(url)
return(false)
},
edge_click: function(event){
var target = event.target;