Skip to:
Content
Pages
Categories
Search
Top
Bottom

Active Add Friend/Cancel Friendship Request Button

  • @msslrb

    Participant

    How do I disable the Add Friend/Cancel Friendship Request Button after click? Users are able to click the buttons multiple times before the original request is complete. Also, the active buttons show a faint blinking border. I would like to either have an progress cursor or opaque button indicating the request is in progress.

Viewing 6 replies - 1 through 6 (of 6 total)
  • @vapvarun

    Participant

    @msslrb these actions are already well optimized and do not take much time which needs a progress bar.

    @msslrb

    Participant

    My button takes a while to go from “Add Friend” to “Cancel Request” and it doesn’t appear to be working. Sometimes, I have to refresh the page to see the change.

    @shanebp

    Moderator

    It sounds like an ajax issue.
    Open your browser’s inspection tool.
    Then open the console and check for javascript errors.

    @msslrb

    Participant

    This is what I found.

    jquery.js?ver=1.12.4-wp:4 XHR failed loading: POST “https://example.com/wp-admin/admin-ajax.php”.
    send @ jquery.js?ver=1.12.4-wp:4
    ajax @ jquery.js?ver=1.12.4-wp:4
    n.<computed> @ jquery.js?ver=1.12.4-wp:4
    ajax @ buddypress-nouveau.min.js?ver=6.0.0:1
    buttonAction @ buddypress-nouveau.min.js?ver=6.0.0:1
    dispatch @ jquery.js?ver=1.12.4-wp:3
    r.handle @ jquery.js?ver=1.12.4-wp:3

    I’m not sure how to fix it. I discovered that friend requests to the admin is fairly quick. it’s the button for all other members that takes a long time.

    @shanebp

    Moderator

    There should be more info in the console message.

    What you’ve shared indicates a probable conflict with some other code or plugin.
    If you are using some plugin to minify javascript – try deactivating it.

    @msslrb

    Participant

    I’ve deactivated the theme and all plugins and the problem was still there. Is there a way for me to tell what code is causing the problem?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar