diff options
| author | Mark Otto <[email protected]> | 2011-09-28 20:21:09 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2011-09-28 20:21:09 -0700 |
| commit | 2d81d65533ded88c76712e787edbd745d38e403e (patch) | |
| tree | a68898fb108608de600579a3aa939fbfc62862d4 /js/bootstrap-modal.js | |
| parent | 1b21d5e321ec77c6381becae2e2d7d1c4ab14d9a (diff) | |
| download | bootstrap-2d81d65533ded88c76712e787edbd745d38e403e.tar.xz bootstrap-2d81d65533ded88c76712e787edbd745d38e403e.zip | |
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 da6706073..5c38a7477 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 ) |
