changes requested by Joris
[scpubgit/stemmatology.git] / TreeOfTexts / root / js / interaction.js
1 $(document).ready(function() {
2   $('.rowid').click( function() {
3     $(this).parent().nextAll('.clickable').children('span').click();
4   });
5 })
6 function color_nodes( arr_node_ids ) {
7   $('ellipse').attr( {stroke:'black', fill:'#999'} );
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 }