Add Friend, javascript override
-
BuddyPress version: 1.9.2
Wordpress version: 3.8.1Hi All,
As a simple test to see if I can prevent BP from navigating to the /friends/add-friend/<id>/ page I have put the following script in place:
jq('div.friendship-button a').on('click', function(e) { e.preventDefault(); return false; });
Placing a breakpoint in this script shows that the code does indeed run, however it doesn’t matter what I do within it, I cannot stop the page from navigating to the href url. Essentially I’m trying to override the way the friends system works.
Does anybody know a way of stopping the default behaviour of the friends button?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Add Friend, javascript override’ is closed to new replies.