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:
Vendored
+1
-1
@@ -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