I have a modal with multiple dismiss buttons using the data-dismiss="modal" attribute.
How do I get the button that triggered the modal dismissal from within the
following code?
$(modal).on('hide', function(e) {
...
})
e.currentTarget, e.relatedTarget and e.target all points to the modal DIV
instead of the button clicked on.
