Skip to:
Content

BuddyPress.org

Ticket #5423: 5423.07.patch

File 5423.07.patch, 1.2 KB (added by dcavins, 8 years ago)
  • bp-templates/bp-legacy/js/buddypress.js

    diff --git bp-templates/bp-legacy/js/buddypress.js bp-templates/bp-legacy/js/buddypress.js
    index c81ae20..a04f665 100644
    jq(document).ready( function() { 
    903903        /* Select a user from the list of friends and add them to the invite list */
    904904        jq("#send-invite-form").on( 'click', '#invite-list input', function() {
    905905                // New template contains a div with the class of invite that's a first-level child of the form. Old template doesn't.
    906                 var invites_new_template = jq("#send-invite-form > invite").length;
     906                var invites_new_template = jq("#send-invite-form > .invite").length;
    907907
    908908                jq('.ajax-loader').toggle();
    909909
    jq(document).ready( function() { 
    954954        /* Remove a user from the list of users to invite to a group */
    955955        jq("#send-invite-form").on('click', 'a.remove', function() {
    956956                // New template contains a div with the class of invite that's a first-level child of the form. Old template doesn't.
    957                 var invites_new_template = jq("#send-invite-form > invite").length;
     957                var invites_new_template = jq("#send-invite-form > .invite").length;
    958958
    959959                jq('.ajax-loader').toggle();
    960960