1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-25 14:30:46 +02:00

clean up show logic

This commit is contained in:
Jacob Thornton
2011-08-27 00:28:58 -07:00
parent db706a2596
commit 1cbda504a0
5 changed files with 5 additions and 8 deletions

View File

@@ -65,6 +65,7 @@
this.$element = $(this.settings.content)
.delegate('.close', 'click', function (e) { e.preventDefault(); that.close() })
.appendTo(document.body)
.show()
setTimeout(function () {
that.$element.addClass('open')

View File

@@ -118,7 +118,7 @@ $('#modal-content').modal({
<h3>Demo</h3>
<!-- sample modal content -->
<div id="modal-from-dom" class="modal">
<div id="modal-from-dom" style="display: none" class="modal">
<div class="modal-header">
<h3>Modal Heading</h3>
<a href="#" class="close">&times;</a>