Display a dialog when the user approves an image

Sometimes it's useful to display some information after the user approves an image. Perhaps you simply want to let them know that you've received their approval and will be in contact.

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

Here we're hooking into the approve button view's initialize function and listening for the successful approval event. When an image is successfully approved, we'll show a dialog box (using the  Vex plugin) with our custom message. 

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.