- Display a dialog when the user approves an image
- Changing A Mockup URL Slug
- Extending Backbone Models, Views and Collections
- Adding Custom Scripts and Styles
- ph_website_publish_thread
- New Comment Threads
- Add additional notification emails
- Display a welcome message for new users on mockup projects
- Change the subscribed user email based on a role
- Display a dialog when the user submits a comment
- Auto-Close Mockup Comment After New Comment
- Changing the mockup download
- Add Settings To Extensions Page
- Listening for Javscript Events
- Change default mockup project options
- Overriding and Changing Templates
Display a dialog when the user submits a comment
Sometimes it’s useful to display some information after the user submits a comment. Perhaps you simply want to let them know that you’ve received their comment and will make changes ASAP.
First, you’ll want to create a new blank javascript file. Let’s call it my-user-submits-comment.js. Inside the file, we’ll add this code:
Here we’re hooking into the comment view’s initialize function and listening for the successful save event. When a comment is successfully saved, we’ll show a dialog box (using the Vex plugin) with our custom message.
![](https://surefeedback.com/wp-content/uploads/2023/11/file-zDC7YPu5UF-1-1024x507.gif)
Then, add your script to the ProjectHuddle Project page to add this to your projects.
We don't respond to the article feedback, we use it to improve our support content.