aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-10-05 00:14:55 -0700
committerJacob Thornton <[email protected]>2011-10-05 00:14:55 -0700
commitc9669be1ec2862b88ffdb296191e82fed79f56a4 (patch)
treee1ecde95c9ff59049338ac335f8ca5490cbbc646 /js
parenta91a407bd60a266f928b5fea70d3c4332394b3c8 (diff)
downloadbootstrap-c9669be1ec2862b88ffdb296191e82fed79f56a4.tar.xz
bootstrap-c9669be1ec2862b88ffdb296191e82fed79f56a4.zip
get modal working with new data-attrs
Diffstat (limited to '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 c8d41a50b..60b83d58f 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, options)
this.$element = $(content)
- .delegate('[data-modal-dismiss]', $.proxy(this.hide, this))
+ .delegate('[data-modal-dismiss]', 'click', $.proxy(this.hide, this))
if ( this.settings.show ) {
this.show()