Code:
HTML
<!-- snip -->
<div class="parent" id="parent">
<div class="child" id="child">
</div>
</div>
<!-- snip -->
Javascript
/* snip */
$(function () {
$("#parent").click(function () {
alert("This dialog should only show up if the parent is clicked.");
});
});
/* snip */
(This is just the basic structure of the actual code... some things are different in the actual code eg. the child is a jQuery UI Draggable element)