1
0
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:
Jacob Thornton
2011-11-24 18:55:44 -08:00
parent b2650859d6
commit 71654cbf69
7 changed files with 201 additions and 45 deletions

View File

@@ -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() )