• Resolved ebud

    (@ebud)


    Maybe I am missing something but is it possible to show a loading icon when a user clicks the heart to favorite a post and then toggle back to the regular saved icon.

    The idea is to show the user their action is in process.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takashi Matsuyama

    (@takashimatsuyama)

    Hello @ebud ,
    Thank you for your question.

    I think it is possible by writing additional Javascript or by editing the JS file of this plugin directly.

    There is a topic in this forum that may be helpful.

    For example, write it to show a loading icon when clicked, and then hide it when Ajax stops.

    
    $(document).on('click', '.ccc-favorite-post-toggle-button', function(e) {
            e.preventDefault(); /* ← Perhaps it is unnecessary because it is duplicative. */
            /* your code */
    }
    

    Thanks

    Thread Starter ebud

    (@ebud)

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Loading on Click’ is closed to new replies.