Hi,

I am having one problem with addtoany: I am using views slideshow with exposed filter. When user changes the values in the filter than the content is loaded via ajax, however addtoany stops working after Ajax reload (It works fine before) I guess the addtoany should be wrapped in the Drupal.behaviors.

Please help,

thanks,
Perry.

Comments

roshkovan’s picture

Hi,
I made a patch for 7x.-4.0 which also adds "Addtoany" on profile page and in views.

a_khalipau’s picture

Thanks for patch but it does not work with Custom buttons and Additional HTML. Icons and links have disappeared at all. Could you fix that?

quickly’s picture

The patch in #1 works well for add to any sharing button but custom html does not work at all now (I just see the images but they don't work with or without ajax). Any solutions?

miccelito’s picture

Version: 7.x-3.1 » 7.x-4.3

Would be nice to have a patch for "Addtoany 7.x-4.3 version" having it works on views display with ajax enabled.

noneTaken’s picture

Issue summary: View changes
StatusFileSize
new15.39 KB

Hi,

I'm currently using the module to display addToAny links in a separate block. It had some strange behaviour when caching was enabled.
I looked at issue: Only call script_load if da2a object loaded but the patch there is definitely not the solution.

After looking into the code I saw that it was not written in the Drupal way. Patch #1 cleans up the code very nicely but it has still some problems. The buttons were not shown.

I attached a patch for the 7.4 dev version. It's based on the patch from #1. Note that since I'm using addToAny as a block, I didn't test the views integration nor did I test the user integration! Therefore, use this patch as a starting point to improve and clean up the module.

Regards,

micropat’s picture

Title: Addtoany is not updated with Ajax reload. » AJAX support
Status: Active » Closed (fixed)

AJAX support has been added in the 7.x-4.5 release. Thanks for the reports and patches! The current implementation works best for the broadest support of Drupal sites, and future versions will more closely follow Drupal standards. Right now it should work robustly across various implementations.

cimo75’s picture

Hallo this is not working with https://www.drupal.org/project/jquery_ajax_load.
tx