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