diff options
author | Mark Otto <mark.otto@twitter.com> | 2011-09-29 07:21:09 +0400 |
---|---|---|
committer | Mark Otto <mark.otto@twitter.com> | 2011-09-29 07:21:09 +0400 |
commit | 2d81d65533ded88c76712e787edbd745d38e403e (patch) | |
tree | a68898fb108608de600579a3aa939fbfc62862d4 /js/bootstrap-modal.js | |
parent | 1b21d5e321ec77c6381becae2e2d7d1c4ab14d9a (diff) |
initial idea for handling closing of modals from whatever element you want with .js-dismiss class
Diffstat (limited to 'js/bootstrap-modal.js')
-rw-r--r-- | js/bootstrap-modal.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |