changes requested by Joris
[scpubgit/stemmatology.git] / TreeOfTexts / root / js / interaction.js
index 42af732..17a1906 100644 (file)
@@ -1,5 +1,10 @@
+$(document).ready(function() {
+  $('.rowid').click( function() {
+    $(this).parent().nextAll('.clickable').children('span').click();
+  });
+})
 function color_nodes( arr_node_ids ) {
-  $('ellipse').attr( {stroke:'black', fill:'#fff'} );
+  $('ellipse').attr( {stroke:'black', fill:'#999'} );
   jQuery.each( arr_node_ids, function(index,value) {
     $('.node').children('title').filter( function(index) {
       return $(this).text() == value;