Hi,
I've got a K2 item which I'm trying to use an AJAX filter module on, but JO K2 Social Share seems to be breaking the AJAX functionality.
See:
ourhomeschoolforum.com/videos/video-gallery (try clicking filters or nav at the bottom of the thumbnails — nothing changes)
I've disabled JO K2 Social Share for this item, but it still seems to be doing something. I've been talking with the developer of the AJAX filter module — he said:
The problem is that the plugin is trying to add js via the joomla API, but on ajax calls that functionality is not available, since the method is not available. ...need to add proper check, so that the js is added only when the page is first loaded.
and
the plugin should not execute the problematic code if the request is not standard html. Simple check would look like the code below:
if(JFactory()->getDocument()->getType() != 'html') return;
Would that line of code potentially fix the issue, and if so, where do I need to put it? In jo_k2_socialshare.php?
Thanks,
--Chad