mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
refactor alerts + add new readme which idefientifies goals for 2.0 js
This commit is contained in:
Vendored
+1
-5
@@ -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