@@ -57,10 +57,11 @@ var BirdWatch = BirdWatch || {};
57
57
this . setState ( { ratioArrDir : ( ratioSlope > 0 ) ? "RIGHT-UP" : "RIGHT-DOWN" } ) ;
58
58
} ,
59
59
/** adding terms to the search bar when clicking on any of the bars */
60
- clickHandler : function ( e ) { BirdWatch . addSearchTerm ( this . props . key ) ; } ,
60
+ clickHandler : function ( e ) { birdwatch . core . append_search_text ( this . props . key ) ; } ,
61
61
render : function ( ) {
62
62
var y = parseInt ( this . props . y ) ;
63
63
var t = this . props . t ;
64
+ var termWeight = "normal" ;
64
65
var w = parseInt ( this . props . w ) ;
65
66
var val = this . props . val ;
66
67
@@ -69,7 +70,7 @@ var BirdWatch = BirdWatch || {};
69
70
if ( w < 50 ) { style . fill = "#999" ; textX += 26 ; style . textAnchor = "start" ; style . fontWeight = 400 }
70
71
71
72
return React . DOM . g ( { onClick :this . clickHandler } ,
72
- React . DOM . text ( { y :y + 8 , x :"137" , stroke :"none" , fill :"black" , dy :".35em" , textAnchor :"end" } , t ) ,
73
+ React . DOM . text ( { y :y + 8 , x :"137" , stroke :"none" , fill :"black" , dy :".35em" , textAnchor :"end" } , t ) ,
73
74
Arrow ( { dir :this . state . posArrDir , y :y , x :146 } ) ,
74
75
Arrow ( { dir :this . state . ratioArrDir , y :y , x :160 } ) ,
75
76
React . DOM . rect ( { y :y , x :"168" , height :"15" , width :w , stroke :"white" , fill :"#428bca" } ) ,
0 commit comments