makeusabrew/bootbox — Issue #21: Bug when the dialog contains a link
Author: FGRibreau
Created: 2012-02-27 20:22:25+00:00
State: open

If the dialog contains a link `` inside its body, if the user clicks on it the dialog will disappear.

This issue came from L.363

```javascript
$("a", div).click(function(e) {
e.preventDefault();
hideSource = 'button';
div.modal("hide");
var handler = $(this).data("handler");
var cb = callbacks[handler];
if (typeof cb == 'function') {
cb();
}
});
```

`$("a", div)` should be `$(".modal-footer a", div)`