Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.special.js |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | $( '.articleFeedbackv5-' + value + '-link' ).live( 'click', function( e ) { |
160 | 160 | e.preventDefault(); |
161 | 161 | var $l = $( e.target ); |
162 | | - var id = $l.parents( '.articleFeedbackv5-feedback' ).attr( 'rel' ); |
| 162 | + var id = $l.closest( '.articleFeedbackv5-feedback' ).attr( 'rel' ); |
163 | 163 | var activity = $.articleFeedbackv5special.getActivity( id ); |
164 | 164 | if ( activity[value] ) { |
165 | 165 | return false; |
— | — | @@ -178,7 +178,7 @@ |
179 | 179 | $( '.articleFeedbackv5-abuse-link' ).live( 'click', function( e ) { |
180 | 180 | e.preventDefault(); |
181 | 181 | var $l = $( e.target ); |
182 | | - var id = $l.parents( '.articleFeedbackv5-feedback' ).attr( 'rel' ); |
| 182 | + var id = $l.closest( '.articleFeedbackv5-feedback' ).attr( 'rel' ); |
183 | 183 | var activity = $.articleFeedbackv5special.getActivity( id ); |
184 | 184 | if ( activity.abuse ) { |
185 | 185 | $.articleFeedbackv5special.flagFeedback( id, 'abuse', -1 ); |
— | — | @@ -404,7 +404,8 @@ |
405 | 405 | $l.removeClass( 'abusive' ); |
406 | 406 | } |
407 | 407 | if ( data['articlefeedbackv5-flag-feedback']['abuse-hidden'] ) { |
408 | | - $l.parents( '.articleFeedbackv5-feedback' ).hide( 'slow' ); |
| 408 | + // TODO: Grey it out and add a "hidden" flag somewhere (as per Fabrice) |
| 409 | + // $l.closest( '.articleFeedbackv5-feedback' ).hide( 'slow' ); |
409 | 410 | } |
410 | 411 | } else { |
411 | 412 | msg = 'articlefeedbackv5-' + type + '-saved'; |