Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.js |
— | — | @@ -1325,7 +1325,7 @@ |
1326 | 1326 | // Slide-down for the expertise checkboxes |
1327 | 1327 | $block.find( '.articleFeedbackv5-expertise > input:checkbox' ) |
1328 | 1328 | .change( function () { |
1329 | | - var $options = $.articleFeedbackv5.$holder.find( '.articleFeedbackv5-expertise-options' ); |
| 1329 | + var $options = $.articleFeedbackv5.find( '.articleFeedbackv5-expertise-options' ); |
1330 | 1330 | if ( $(this).is( ':checked' ) ) { |
1331 | 1331 | $options.slideDown( 'fast' ); |
1332 | 1332 | } else { |
— | — | @@ -1404,7 +1404,7 @@ |
1405 | 1405 | }); |
1406 | 1406 | rlabel.mousedown( function () { |
1407 | 1407 | $.articleFeedbackv5.enableSubmission( true ); |
1408 | | - var $ui = $.articleFeedbackv5.find( 'articleFeedbackv5-ui' ); |
| 1408 | + var $ui = $.articleFeedbackv5.find( '.articleFeedbackv5-ui' ); |
1409 | 1409 | if ( $ui.hasClass( 'articleFeedbackv5-expired' ) ) { |
1410 | 1410 | // Changing one means the rest will get submitted too |
1411 | 1411 | $ui.removeClass( 'articleFeedbackv5-expired' ); |
— | — | @@ -1616,6 +1616,9 @@ |
1617 | 1617 | $.articleFeedbackv5.find( '.articleFeedbackv5-expertise input:checked' ).each( function () { |
1618 | 1618 | data['expertise-' + $( this ).val()] = 1; |
1619 | 1619 | } ); |
| 1620 | + if ( $.articleFeedbackv5.find( '.articleFeedbackv5-helpimprove input:checked' ).length > 0 ) { |
| 1621 | + data.email = $.articleFeedbackv5.find( '.articleFeedbackv5-helpimprove-email' ).val(); |
| 1622 | + } |
1620 | 1623 | return data; |
1621 | 1624 | }, |
1622 | 1625 | |