Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.special.js |
— | — | @@ -576,7 +576,6 @@ |
577 | 577 | note = typeof note !== undefined ? note : ''; |
578 | 578 | |
579 | 579 | if( $.articleFeedbackv5special.listControls.disabled ) { |
580 | | - console.log('disabled'); |
581 | 580 | return false; |
582 | 581 | } |
583 | 582 | |
— | — | @@ -837,9 +836,13 @@ |
838 | 837 | .removeClass( 'articleFeedbackv5-helpful-link' ) |
839 | 838 | .addClass( 'articleFeedbackv5-reversehelpful-link' ) |
840 | 839 | .attr( 'id', 'articleFeedbackv5-reversehelpful-link-' + id ); |
841 | | - if( data['toggle'] ) { |
842 | | - $( '#articleFeedbackv5-unhelpful-link-' + id ).removeClass( 'helpful-active' ); |
843 | | - setActivityFlag( id, 'unhelpful', false ) |
| 840 | + if( data['articlefeedbackv5-flag-feedback']['toggle'] ) { |
| 841 | + $( '#articleFeedbackv5-reverseunhelpful-link-' + id ) |
| 842 | + .removeClass( 'helpful-active' ) |
| 843 | + .removeClass( 'articleFeedbackv5-reverseunhelpful-link') |
| 844 | + .addClass( 'articleFeedbackv5-unhelpful-link' ) |
| 845 | + .attr( 'id', 'articleFeedbackv5-unhelpful-link-' + id ); |
| 846 | + $.articleFeedbackv5special.setActivityFlag( id, 'unhelpful', false ) |
844 | 847 | } |
845 | 848 | $.articleFeedbackv5special.setActivityFlag( id, 'helpful', true ); |
846 | 849 | } |
— | — | @@ -890,9 +893,13 @@ |
891 | 894 | .removeClass( 'articleFeedbackv5-unhelpful-link') |
892 | 895 | .addClass( 'articleFeedbackv5-reverseunhelpful-link' ) |
893 | 896 | .attr( 'id', 'articleFeedbackv5-reverseunhelpful-link-' + id ); |
894 | | - if( data['toggle'] ) { |
895 | | - $( '#articleFeedbackv5-helpful-link-' + id ).removeClass( 'helpful-active' ); |
896 | | - setActivityFlag( id, 'helpful', false ) |
| 897 | + if( data['articlefeedbackv5-flag-feedback']['toggle'] ) { |
| 898 | + $( '#articleFeedbackv5-reversehelpful-link-' + id ) |
| 899 | + .removeClass( 'helpful-active' ) |
| 900 | + .removeClass( 'articleFeedbackv5-reversehelpful-link') |
| 901 | + .addClass( 'articleFeedbackv5-helpful-link' ) |
| 902 | + .attr( 'id', 'articleFeedbackv5-helpful-link-' + id ); |
| 903 | + $.articleFeedbackv5special.setActivityFlag( id, 'helpful', false ) |
897 | 904 | } |
898 | 905 | $.articleFeedbackv5special.setActivityFlag( id, 'unhelpful', true ); |
899 | 906 | } |