diff --git bp-templates/bp-legacy/js/buddypress.js bp-templates/bp-legacy/js/buddypress.js
index c81ae20..a04f665 100644
|
|
jq(document).ready( function() { |
903 | 903 | /* Select a user from the list of friends and add them to the invite list */ |
904 | 904 | jq("#send-invite-form").on( 'click', '#invite-list input', function() { |
905 | 905 | // 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; |
907 | 907 | |
908 | 908 | jq('.ajax-loader').toggle(); |
909 | 909 | |
… |
… |
jq(document).ready( function() { |
954 | 954 | /* Remove a user from the list of users to invite to a group */ |
955 | 955 | jq("#send-invite-form").on('click', 'a.remove', function() { |
956 | 956 | // 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; |
958 | 958 | |
959 | 959 | jq('.ajax-loader').toggle(); |
960 | 960 | |