Disable plugin on a link class
-
Hi,
I am trying to disable the plugin from interacting with my facebook share buttons –I edited ajax-page-loader.js
For ex.
jQuery(scope + “a”).live(‘click’,function(event){
var myClass = jQuery(this).attr(“class”);
if (myClass == ‘shareCircle’){
// stop default behaviour
console.log(myClass);
event.preventDefault();
return;
}Problem – without this -the page would load a quick error message, before reloading the same page.
Now that is fixed. But after I click share. It opens the facebook share popup. And the side content of the page reloads.
I want to stop the page from reloading all together.
Please I would appreciate any help to find this issue.
I have my class identified on click – Just want to pause the plugin from executing anything when I click on the links.It just wont fully do it right now.
Thank you so much,
FP
- The topic ‘Disable plugin on a link class’ is closed to new replies.