aboutsummaryrefslogtreecommitdiff
path: root/docs/javascript.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-09-28 20:21:09 -0700
committerMark Otto <[email protected]>2011-09-28 20:21:09 -0700
commit2d81d65533ded88c76712e787edbd745d38e403e (patch)
treea68898fb108608de600579a3aa939fbfc62862d4 /docs/javascript.html
parent1b21d5e321ec77c6381becae2e2d7d1c4ab14d9a (diff)
downloadbootstrap-2d81d65533ded88c76712e787edbd745d38e403e.tar.xz
bootstrap-2d81d65533ded88c76712e787edbd745d38e403e.zip
initial idea for handling closing of modals from whatever element you want with .js-dismiss class
Diffstat (limited to 'docs/javascript.html')
-rw-r--r--docs/javascript.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/javascript.html b/docs/javascript.html
index d16926186..d5eb98739 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -182,15 +182,15 @@ $('#my-modal').bind('hidden', function () {
<!-- sample modal content -->
<div id="modal-from-dom" class="modal hide fade">
<div class="modal-header">
- <a href="#" class="close">&times;</a>
+ <a href="#" class="close js-dismiss">&times;</a>
<h3>Modal Heading</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
- <a href="#" class="btn primary">Primary</a>
- <a href="#" class="btn secondary">Secondary</a>
+ <a href="#" class="btn primary">Save changes</a>
+ <a href="#" class="btn js-dismiss">Close</a>
</div>
</div>