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=0a41fb05de94f7087e8ede5f1451b6d679c6b1a7;p=scpubgit%2Fstemmaweb.git test for string '0' in boolean value as well --- diff --git a/root/js/relationship.js b/root/js/relationship.js index 6d8f242..807b5d4 100644 --- a/root/js/relationship.js +++ b/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'} ); } });