Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <mark.otto@twitter.com>2011-09-29 07:21:09 +0400
committerMark Otto <mark.otto@twitter.com>2011-09-29 07:21:09 +0400
commit2d81d65533ded88c76712e787edbd745d38e403e (patch)
treea68898fb108608de600579a3aa939fbfc62862d4 /js/bootstrap-modal.js
parent1b21d5e321ec77c6381becae2e2d7d1c4ab14d9a (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.js2
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 )