AddToAny Share Buttons
[Plugin: AddToAny: Share/Bookmark/Email Buttons] Settings does not save selected Standalone Services (3 posts)

  1. Brian Zoetewey
    Posted 4 years ago #

    I am unable to get the selected items in the Standalone Services list to save on my wordpress installation.

    I have debugged this and know what the issue is. All code line numbers are in reference to version .

    In the javascript on the wp-admin AddToAny settings screen (add-to-any.php:1193), the code to create the "A2A_SHARE_SAVE_active_services" input field assumes that the AddToAll form is going to be the first form on the page. In my case it is not.
    Query('form:first').append('<input name="A2A_SHARE_SAVE_active_services[]" . . .

    I'd recommend assigning an id to the form (add-to-any.php:928) and using that in the jQuery selector instead.

    <form method="post" action="" id="add-to-any-settings-form">
    jQuery("form.#add-to-any-settings-form".append(. . .);

    Thanks for looking into this.


  2. zorbs
    Posted 4 years ago #

    Good catch, Omicron7! This was driving me crazy.
    Specifically, this won't work with the Quick Cache plugin, which adds a "Clean Cache" button (thus becomes the first form on the page) at the very top of the admin.

    I hope this is fixed in the next release.

  3. KatyDigg
    Posted 3 years ago #

    Thank you for this thread, Omicron7, and post, zorbs!

    Agreed.....this won't work with the Quick Cache plugin.

    Likewise, I hope this is fixed in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • AddToAny Share Buttons
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic