diff --git a/docs/index.html b/docs/index.html index 857af24486..b24999c623 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1644,7 +1644,7 @@ diff --git a/docs/javascript.html b/docs/javascript.html index d16926186e..d5eb987392 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -182,15 +182,15 @@ $('#my-modal').bind('hidden', function () { diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js index da67060731..5c38a7477b 100644 --- a/js/bootstrap-modal.js +++ b/js/bootstrap-modal.js @@ -55,7 +55,7 @@ var Modal = function ( content, options ) { this.settings = $.extend({}, $.fn.modal.defaults) this.$element = $(content) - .delegate('.close', 'click.modal', $.proxy(this.hide, this)) + .delegate('.js-dismiss', 'click.modal', $.proxy(this.hide, this)) if ( options ) { $.extend( this.settings, options )