17 lines
No EOL
481 B
Text
17 lines
No EOL
481 B
Text
if (Mconsole != null) {
|
|
var node = Mconsole.graph.getNode(<%= @topic.id %>);
|
|
node.setData('alpha', 0, 'end');
|
|
node.eachAdjacency(function(adj) {
|
|
adj.setData('alpha', 0, 'end');
|
|
});
|
|
Mconsole.fx.animate({
|
|
modes: ['node-property:alpha',
|
|
'edge-property:alpha'],
|
|
duration: 1000
|
|
});
|
|
Mconsole.graph.removeNode(<%= @topic.id %>);
|
|
Mconsole.labels.disposeLabel(<%= @topic.id %>);
|
|
}
|
|
else {
|
|
$('#<%= dom_id(@topic) %>').fadeOut('slow');
|
|
} |