Auto-Close Mockup Comment After New Comment

In some cases, you'll want to automatically close the comment bubble when you submit a new comment to speed up your workflow. You can modify this using the built-in javascript hooks on the comment view.

First you'll want to create a new blank javascript file. Let's call it my-close-after-comment.js. Inside the file, we'll add this code:

Here we're hooking into the comment thread view's initialize function and listening for the successful comment submission event. When an comment is successfully added, we'll wait a half a second (500 milliseconds) and close the box.

Then, add your script to the  ProjectHuddle Project page to add this to your projects.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us