Ticket #4510: 4510.patch
| File 4510.patch, 1.7 KB (added by johnjamesjacoby, 10 months ago) |
|---|
-
bp-activity/bp-activity-actions.php
325 325 } 326 326 327 327 $comment_id = bp_activity_new_comment( array( 328 'content' => $content,328 'content' => $content, 329 329 'activity_id' => $activity_id, 330 'parent_id' => $parent_id330 'parent_id' => false 331 331 )); 332 332 333 333 if ( !empty( $comment_id ) ) -
bp-activity/bp-activity-notifications.php
188 188 * If this is a reply to another comment, send an email notification to the 189 189 * author of the immediate parent comment. 190 190 */ 191 if ( $activity_id == $parent_id)191 if ( empty( $parent_id ) || ( $activity_id == $parent_id ) ) 192 192 return false; 193 193 194 194 $parent_comment = new BP_Activity_Activity( $parent_id ); -
bp-themes/bp-default/_inc/global.js
411 411 } 412 412 413 413 /* Hide any error messages */ 414 jq( 'form#' + form + ' div.error').hide();414 jq( 'form#' + form.attr('id') + ' div.error').hide(); 415 415 target.addClass('loading').prop('disabled', true); 416 416 417 417 var ajaxdata = { … … 452 452 form.parent().parent().addClass('has-comments'); 453 453 } 454 454 ); 455 jq( 'form#' + form + ' textarea').val('');455 jq( 'form#' + form.attr('id') + ' textarea').val(''); 456 456 457 457 /* Increase the "Reply (X)" button count */ 458 458 jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html( Number( jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html() ) + 1 );
