Very Easy Solution to Event Not Defined when Clicking to Add Tags
-
I recently had an issue where clicking to add a tag returned an “event not defined” error in Firefox and would add the tags to the the “Group Tags” field.
To fix this, I edited group-tags.js which can be found in plugins/buddypress-group-tags/group-tags.js.
All I had to do wa the word “event” (without quotes) as the function parameter to line 25 of group-tags.js:
like this:
`j(‘.gtags-add’).click(function (event){`Pretty easy! This defines the event for the browser and works on Firefox, Chrome, and IE.
I hope this helps anyone who has been experiencing the same problem.
Can this be included in an update so that it doesn’t break next time the plug in is updated?
You must be logged in to reply to this topic.