X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=TreeOfTexts%2Froot%2Fjs%2Finteraction.js;h=17a19066023f6ba4179d4e976849b39429ec64c0;hb=ce14597feff81761c2f1698c76cc0d3de9a7d4aa;hp=42af7327182822286b51148d9e30f275a84727d6;hpb=d71100eda61da81b1e4787810dfae8843f0be88a;p=scpubgit%2Fstemmatology.git diff --git a/TreeOfTexts/root/js/interaction.js b/TreeOfTexts/root/js/interaction.js index 42af732..17a1906 100644 --- a/TreeOfTexts/root/js/interaction.js +++ b/TreeOfTexts/root/js/interaction.js @@ -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;