twitter/bootstrap — pull request #6542 by jonnywyatt (2013-01-11 11:31:48+00:00)
Title: Modal - send 'action' param with hide event (eg 'Save' button clicked to close modal)

If the 'data-dismiss' button also has a 'data-action' attribute, its value will be sent with the 'hide' event that is emitted from the 'hide' method.