Skip to:
Content

Changeset 6704


Ignore:
Timestamp:
01/06/2013 08:53:40 AM (5 years ago)
Author:
r-a-y
Message:

Backport bp-default JS fixes from r6326 to 1.6 branch.

See #4510.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.6/bp-themes/bp-default/_inc/global.js

    r6172 r6704  
    400400        /* Activity comment posting */
    401401        if ( target.attr('name') == 'ac_form_submit' ) {
    402             var form = target.parent().parent();
     402            var form        = target.parent().parent();
    403403            var form_parent = form.parent();
    404             var form_id = form.attr('id').split('-');
     404            var form_id     = form.attr('id').split('-');
    405405
    406406            if ( !form_parent.hasClass('activity-comments') ) {
     
    412412
    413413            /* Hide any error messages */
    414             jq( 'form#' + form + ' div.error').hide();
     414            jq( 'form#' + form.attr('id') + ' div.error').hide();
    415415            target.addClass('loading').prop('disabled', true);
    416416
     
    453453                            }
    454454                            );
    455                         jq( 'form#' + form + ' textarea').val('');
     455                        jq( 'form#' + form.attr('id') + ' textarea').val('');
    456456
    457457                        /* Increase the "Reply (X)" button count */
Note: See TracChangeset for help on using the changeset viewer.