Skip to content

Commit

Permalink
fix incorrect button binding (GH-21)
Browse files Browse the repository at this point in the history
  • Loading branch information
makeusabrew committed Feb 28, 2012
1 parent dc5d779 commit b02453f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bootbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ var bootbox = window.bootbox || (function() {
$("a.btn-primary:last", div).focus();
});

$("a", div).click(function(e) {
// wire up button handlers
div.on('click', '.modal-footer a', function(e) {
e.preventDefault();
hideSource = 'button';
div.modal("hide");
Expand All @@ -374,6 +375,7 @@ var bootbox = window.bootbox || (function() {
if (options.keyboard == null) {
options.keyboard = (typeof options.onEscape == 'function');
}

$("body").append(div);

div.modal({
Expand Down
2 changes: 1 addition & 1 deletion bootbox.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b02453f

Please sign in to comment.