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:
2
js/bootstrap-modal.js
vendored
2
js/bootstrap-modal.js
vendored
@@ -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()
|
||||
|
Reference in New Issue
Block a user