mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-24 14:04:09 +03:00
clean up show logic
This commit is contained in:
+1
@@ -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')
|
||||
|
||||
@@ -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">×</a>
|
||||
|
||||
Reference in New Issue
Block a user