2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03: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
+1 -1
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()