mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-30 15:29:06 +02:00
refactor alerts + add new readme which idefientifies goals for 2.0 js
This commit is contained in:
6
js/bootstrap-modal.js
vendored
6
js/bootstrap-modal.js
vendored
@@ -194,10 +194,6 @@
|
||||
})
|
||||
}
|
||||
|
||||
if ( options === true ) {
|
||||
return modal
|
||||
}
|
||||
|
||||
if ( typeof options == 'string' ) {
|
||||
modal[options]()
|
||||
} else if ( modal ) {
|
||||
@@ -220,7 +216,7 @@
|
||||
* ========================== */
|
||||
|
||||
$(document).ready(function () {
|
||||
$('body').delegate('[data-controls-modal]', 'click', function (e) {
|
||||
$('body').delegate('[data-controls-modal]', 'click.modal.data-api', function (e) {
|
||||
e.preventDefault()
|
||||
var $this = $(this)
|
||||
$('#' + $this.attr('data-controls-modal')).modal( $this.data() )
|
||||
|
Reference in New Issue
Block a user