BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Post Update button disable during posting
Tagged: buddypress activity
- This topic has 6 replies, 2 contibutors, and was last updated 9 years, 9 months ago by Alyssa.
Question
January 23, 2015 at 4:17 pm #34976@jasonvphase2solutionsI’m curious of a way to either disable the Post Update button while the activity post is in the process of posting. Sometimes user click it twice if it doesn’t reload below instantly. I’m thinking either disabling the button or replacing it with a loading symbol after it is first clicked. Any ideas?
Answers
January 23, 2015 at 5:37 pm #34978@alyssa-buddyboss
AlyssaParticipant@jasonvphase2solutions I was told in the past this is not possible based on how BuddyPress functions with all its form validation. You may want to try BuddyPress support on this one.
January 26, 2015 at 3:10 pm #35052@jasonvphase2solutionsThanks TJ! I went ahead and started a forum post here: https://buddypress.org/support/topic/post-update-button-disable-during-posting/
I’ll keep this string updated once I find something.
January 26, 2015 at 9:35 pm #35059@jasonvphase2solutionsIt looks like this could be possible using something like:
<script> $( '#aw-whats-new-submit' ).click( function() { $( this ).attr( 'disabled', true ); }); </script>
Is it possible to add the loading animation inside of the Post Update button only while it processes the request?
January 29, 2015 at 4:03 pm #35149@alyssa-buddyboss
AlyssaParticipant@jasonvphase2solutions the problem with doing that is what if there is form validation, users will be unable to submit after fixing form validation. They will need to refresh the page and start over. I’m afraid you will need to contact BuddyPress for further support putting it into the process request. I’m not sure there is a hook there.
January 30, 2015 at 5:12 am #35170@jasonvphase2solutionsI agree. The overall goal here is to indicate that the message is posting. Using the code or something similar to what I have above, is there a way to show the Ajax circle loading image when it is posting the message. The same loading image as when you move from tab to tab on the activity page. I believe the older version of BuddyBoss had something like that.
Thoughts?
I appreciate your help TJ!
January 30, 2015 at 11:52 am #35186@alyssa-buddyboss
AlyssaParticipant@jasonvphase2solutions to my knowledge BuddyBoss has never had ajax loading icon on the post button. The tabs in the activity feed are all BuddyPress functions. I’m not knowledgeable with those functions to be able to give you any direction here. Sorry.
- The question ‘Post Update button disable during posting’ is closed to new replies.