From: Joris van Zundert Date: Mon, 3 Oct 2011 22:09:04 +0000 (+0200) Subject: No changes, just syncing. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=82fd8e057e8d67988ff5204f2eb0ed56f09f7ef1;p=scpubgit%2Fstemmatology.git No changes, just syncing. --- diff --git a/TreeOfTexts/root/js/interaction.js b/TreeOfTexts/root/js/interaction.js index 29a8cff..f67f61d 100644 --- a/TreeOfTexts/root/js/interaction.js +++ b/TreeOfTexts/root/js/interaction.js @@ -3,13 +3,22 @@ var row_triggered = false; $(document).ready(function() { $('.rowid').click( function() { row_triggered = true; - $('ellipse').attr( {stroke:'black', fill:'#eee'} ); + $('ellipse').attr( {stroke:'black', fill:'#fff'} ); $(this).parent().nextAll('.clickable').children('span').click(); row_triggered = false; }); }) -function color_nodes( column_index, arr_node_ids ) { - if( !row_triggered ) { $('ellipse').attr( {stroke:'black', fill:'#eee'} ) }; +function color_nodes( column_index, arr_node_ids, arr_greynode_ids ) { + if( !row_triggered ) { + $('ellipse').attr( {stroke:'black', fill:'#eee'} ) + }; + jQuery.each( arr_greynode_ids, function(index,value) { + $('.node').children('title').filter( function(index) { + return $(this).text() == value; + }).siblings('ellipse').each( function( index ) { + $(this).attr( {stroke:'black', fill:'#eee'} ); + }); + }); jQuery.each( arr_node_ids, function(index,value) { $('.node').children('title').filter( function(index) { return $(this).text() == value; diff --git a/TreeOfTexts/root/src/index.tt b/TreeOfTexts/root/src/index.tt index 39c7a0f..5e24b45 100644 --- a/TreeOfTexts/root/src/index.tt +++ b/TreeOfTexts/root/src/index.tt @@ -10,7 +10,7 @@
[% svg %]
-
+
[% FOREACH row IN variants -%] [% INCLUDE variantrow %]