mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-15 10:05:40 +02:00
initial idea for handling closing of modals from whatever element you want with .js-dismiss class
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)
|
||||
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