Using Skinr I'm finding that I need to do different kinds of cleanup depending on whether the dialog form was submitted, or simply closed (or canceled).
Is there a variable in Dialog that's being set to know whether we're submitting a form, or if we're simply closing the dialog?
Comments
Comment #1
miraclestyle commentedNot sure if this is what you are looking for:
Inside your ajax handling function where you check if the $output is empty, you can evaluate $form_state for clicked_button:
or you could inspect $form_state['executed'] parameter which I believe is set after the form was submitted:
Cheers...
Comment #2
moonray commentedActually, I need too do the evaluation in Dialog UI's onBeforeClose event (or if there's an event that gets triggered before that [perhaps on submit?], I could use that), in the JS, not the in PHP.
Comment #3
entrigan commentedany success with this moonray?
Comment #4
devin carlson commentedDialog 6.x is no longer supported.