Skip to:
Content
Pages
Categories
Search
Top
Bottom

Post Update button disable during posting


  • Jason Verdelli
    Participant

    @jasonverdelli

    I’m curious of a way to either disable the Post Update button while the activity post is in the process of posting. Sometimes users click it twice if it doesn’t reload below instantly or the text will stay in the activity post box. I’m thinking either disabling the button or replacing it with a loading symbol after it is first clicked. Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)

  • Henry Wright
    Moderator

    @henrywright

    You could use jQuery?

    <script>
        $( '#button' ).click( function() {
            $( this ).attr( 'disabled', true );
        });
    </script>

    Jason Verdelli
    Participant

    @jasonverdelli

    Thanks Henry! I’m assuming I would want to plug this into post-form.php correct?

    I appreciate the help.


    Henry Wright
    Moderator

    @henrywright

    Yeah, it’ll go into your template file, after your button. Note, you’ll need to change the selector to that of your button. I’ve used #button but you may need something like #aw-whats-new-submit

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post Update button disable during posting’ is closed to new replies.
Skip to toolbar