Client side event handler that is fired when anything is clicked inside of the dialog. This can be a button, a hyperlink or any element.

The even fired will be a jQuery style event with a jQuery event object passed. this points at the clicked element.

Handler code should check for specific elements like buttons clicked and then based on the id or value decide what action to take.