aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-08-27 00:28:58 -0700
committerJacob Thornton <[email protected]>2011-08-27 00:28:58 -0700
commit1cbda504a0a4bb4a34a43722a0f65d2a0bc8abb7 (patch)
treeb35d890c33467dda4a7f1a9ddc3fd68432bb651c /examples
parentdb706a2596bf18b60246fcf962134df8203b5cc9 (diff)
downloadbootstrap-1cbda504a0a4bb4a34a43722a0f65d2a0bc8abb7.tar.xz
bootstrap-1cbda504a0a4bb4a34a43722a0f65d2a0bc8abb7.zip
clean up show logic
Diffstat (limited to 'examples')
-rw-r--r--examples/assets/js/bootstrap-modals.js1
-rw-r--r--examples/bootstrap-js.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/assets/js/bootstrap-modals.js b/examples/assets/js/bootstrap-modals.js
index f684be25a..05a693d82 100644
--- a/examples/assets/js/bootstrap-modals.js
+++ b/examples/assets/js/bootstrap-modals.js
@@ -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')
diff --git a/examples/bootstrap-js.html b/examples/bootstrap-js.html
index 2cf545148..37aea3464 100644
--- a/examples/bootstrap-js.html
+++ b/examples/bootstrap-js.html
@@ -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>