It's not clear why we're adding `data-dismiss="modal"` here (and not in other places). We specifically handle all the buttons in our own dialogs and manually call `hide()` on the Bootstrap modal--we don't want Bootstrap to handle this without going through our own dismissal code.