From: tla Date: Mon, 18 Jun 2012 02:10:21 +0000 (+0200) Subject: test for string '0' in boolean value as well X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4aa3aa3db8d45952a7ede6ffac2a06ec2d18c6e3;p=scpubgit%2Fstemmatology.git test for string '0' in boolean value as well --- diff --git a/stemmaweb/root/js/relationship.js b/stemmaweb/root/js/relationship.js index 6d8f242..807b5d4 100644 --- a/stemmaweb/root/js/relationship.js +++ b/stemmaweb/root/js/relationship.js @@ -137,7 +137,7 @@ function color_inactive ( el ) { // otherwise color it green. $(el).attr( {stroke:'green', fill:'#b3f36d'} ); $.each( reading_info['lexemes'], function ( idx, lex ) { - if( !lex['is_disambiguated'] ) { + if( !lex['is_disambiguated'] || lex['is_disambiguated'] == 0 ) { $(el).attr( {stroke:'orange', fill:'#fee233'} ); } });