[Resolved] Change JS behavior for request-membership group action button
-
I’d like to disable the AJAX request for the “request membership” action button in the group directory. At the moment, the same function in buddypress.js catches all group action buttons: join group, leave group and request membership. If, within this function,
jq('#groups-dir-list').on('click', '.group-button a', function() {…
I add
if ( thelink.hasClass( 'request-membership' ) ) { return true; }
I get the result I want (send the user to the request membership form within the group), but I’m not sure how to do that without altering the core js file.
I could also remove the class “group-button” in the case of request membership so that the AJAX function wouldn’t catch it. Anyone have a best practices approach for this kind of problem?
Thanks in advance for your help,
-David
- The topic ‘[Resolved] Change JS behavior for request-membership group action button’ is closed to new replies.