test for string '0' in boolean value as well
tla [Mon, 18 Jun 2012 02:10:21 +0000 (04:10 +0200)]
stemmaweb/root/js/relationship.js

index 6d8f242..807b5d4 100644 (file)
@@ -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'} );
                }
        });