jackmoore/colorbox — Issue #125: Feature: Callback which prevents the dialog from opening.
Author: lookfirst
Created: 2011-10-23 22:04:48+00:00
State: open

I need to execute some code, which is an ajax call, before the dialog opens. If this ajax call fails, I'd like the dialog to not open at all. As far as I can tell, there currently isn't a way to prevent the dialog from opening. I imagine it would be something like a 'shouldOpen()' that returns true/false.