Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Cannot make it work with ajax content #60

Open
bonakor opened this issue Jan 28, 2016 · 0 comments
Open

Cannot make it work with ajax content #60

bonakor opened this issue Jan 28, 2016 · 0 comments

Comments

@bonakor
Copy link

bonakor commented Jan 28, 2016

Hi,

I managed to make the library working, but the button doesn't update the data-href url on new post loaded with ajax/js.

I added the WASHAREBTN.crBtn after content is loaded.

/*Article n+1*/
jQuery.noConflict();
jQuery(document).ready(function ($) {
    $(function() {
  $.fn.almUrlUpdate = function(permalink, type){
    // type = From which addon (previous-post | seo)
    // permalink = the updated url
    console.log("URL updated to " + permalink + '- dispatched from the '+ type + ' add-on.');
       WASHAREBTN.crBtn();  
  };
});
});

The console log sends message so I'm sure that it is loaded.
Can you help me, please?

Thank you :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant