Skip to:
Content

BuddyPress.org

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#4763 closed defect (bug) (fixed)

Group invitation screen : remove invite link leads to 404

Reported by: imath's profile imath Owned by:
Milestone: 1.7 Priority: normal
Severity: normal Version: 1.7
Component: Groups Keywords:
Cc:

Description

I am very very sorry for the english that will follow !

I read this ticket : #4714 about the fact that the jQuery .live() method is deprecated.

My trouble is that when using the bp theme compat new feature with my theme, once i arrived at the last step of group creation, if i select a user to invite, then change my mind by clicking on the remove link for this friend, then the link is fired, and it leads to a 404. the url of the page is the one that is given by bp_legacy_theme_ajax_invite_user function at line 817 of buddypress_functions.php.

Now if i browse back and refresh the page and then click on the remove link, it's working. If i repeat the operation, i have the trouble again.

If i change the jQuery .on() method in buddypress.js at line 796 by the .live() one, then everything works..

Change History (3)

#1 @DJPaul
11 years ago

  • Milestone changed from Awaiting Review to 1.7

#2 @djpaul
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6791]) Fix jQuery action when removing a previously-selected friend from the Group Invites screen during group creation. Fixes #4763

#3 @boonebgorges
11 years ago

In 6922:

Use event delegation for removing group invites in bp-default

When jQuery.live() was replaced with jQuery.on() in r6635 #4714, it broke
some places in BP's JS where events must be bound to items added to the page
after document.ready(). In these cases, event delegation should be used. This
changeset fixes a problem where AJAX was broken for "Remove Invite" buttons on
group invitation pages for newly-added items on bp-default.

The same bug was fixed for bp-legacy in r6791. See #4763.

Fixes #4943

Note: See TracTickets for help on using tickets.