1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-08 06:36:33 +02:00

get modal working with new data-attrs

This commit is contained in:
Jacob Thornton
2011-10-05 00:14:55 -07:00
parent a91a407bd6
commit c9669be1ec
2 changed files with 10 additions and 13 deletions

View File

@@ -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()