Changeset 6704
- Timestamp:
- 01/06/2013 08:53:40 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.6/bp-themes/bp-default/_inc/global.js
r6172 r6704 400 400 /* Activity comment posting */ 401 401 if ( target.attr('name') == 'ac_form_submit' ) { 402 var form = target.parent().parent();402 var form = target.parent().parent(); 403 403 var form_parent = form.parent(); 404 var form_id = form.attr('id').split('-');404 var form_id = form.attr('id').split('-'); 405 405 406 406 if ( !form_parent.hasClass('activity-comments') ) { … … 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 … … 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 */
Note: See TracChangeset
for help on using the changeset viewer.