Index: trunk/extensions/Reflect/client/js/reflect.js |
— | — | @@ -765,7 +765,7 @@ |
766 | 766 | return; |
767 | 767 | } |
768 | 768 | |
769 | | - if ( comment.$elem.find( '.new_bullet' ).length == 0 ) { |
| 769 | + if ( comment.elements.bullet_list.find( '.new_bullet' ).length == 0 ) { |
770 | 770 | var new_bullet = comment.add_bullet_prompt(); |
771 | 771 | new_bullet.$elem.children( 'button' ) |
772 | 772 | .bind( 'click', Reflect.transitions.to_bullet, false ); |
— | — | @@ -875,7 +875,7 @@ |
876 | 876 | Reflect.transitions.to_base( bullet_obj.comment.id ); |
877 | 877 | } ); |
878 | 878 | |
879 | | - if ( bullet_obj.comment.$elem.find( '.highlight' ).length == 0 ) { |
| 879 | + if ( bullet_obj.comment.elements.comment_text.find( '.highlight' ).length == 0 ) { |
880 | 880 | bullet_obj.elements.submit_button.attr( 'disabled', true ); |
881 | 881 | } |
882 | 882 | |
— | — | @@ -1536,7 +1536,7 @@ |
1537 | 1537 | } |
1538 | 1538 | // segment sentences we can index them during highlighting |
1539 | 1539 | comment.elements.comment_text.wrap_sentences(); |
1540 | | - comment.$elem.find( '.sentence' ) |
| 1540 | + comment.elements.comment_text.find( '.sentence' ) |
1541 | 1541 | .each( function ( index ) { |
1542 | 1542 | $j( this ).attr( 'id', 'sentence-' + index ) |
1543 | 1543 | .click( Reflect.handle.sentence_click ); |