get modal working with new data-attrs
This commit is contained in:
parent
a91a407bd6
commit
c9669be1ec
2 changed files with 10 additions and 13 deletions
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue