mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-15 11:59:39 +03:00
initial idea for handling closing of modals from whatever element you want with .js-dismiss class
This commit is contained in:
Vendored
+1
-1
@@ -55,7 +55,7 @@
|
||||
var Modal = function ( content, options ) {
|
||||
this.settings = $.extend({}, $.fn.modal.defaults)
|
||||
this.$element = $(content)
|
||||
.delegate('.close', 'click.modal', $.proxy(this.hide, this))
|
||||
.delegate('.js-dismiss', 'click.modal', $.proxy(this.hide, this))
|
||||
|
||||
if ( options ) {
|
||||
$.extend( this.settings, options )
|
||||
|
||||
Reference in New Issue
Block a user