new change from Joris
[scpubgit/stemmatology.git] / TreeOfTexts / root / js / interaction.js
CommitLineData
ce14597f 1$(document).ready(function() {
2 $('.rowid').click( function() {
6b87033c 3 $('ellipse').attr( {stroke:'black', fill:'#ccc'} );
ce14597f 4 $(this).parent().nextAll('.clickable').children('span').click();
5 });
6})
dbcf12a6 7function color_nodes( arr_node_ids ) {
dbcf12a6 8 jQuery.each( arr_node_ids, function(index,value) {
9 $('.node').children('title').filter( function(index) {
10 return $(this).text() == value;
11 }).siblings('ellipse').attr( {stroke:'red', fill:'yellow'} );;
12 });
13}