1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 08:10:47 +02:00

initial idea for handling closing of modals from whatever element you want with .js-dismiss class

This commit is contained in:
Mark Otto
2011-09-28 20:21:09 -07:00
parent 1b21d5e321
commit 2d81d65533
3 changed files with 6 additions and 6 deletions

View File

@@ -1644,7 +1644,7 @@
<!-- Modal -->
<div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1">
<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">
@@ -1652,7 +1652,7 @@
</div>
<div class="modal-footer">
<a href="#" class="btn primary">Primary</a>
<a href="#" class="btn secondary">Secondary</a>
<a href="#" class="btn">Secondary</a>
</div>
</div>
</div>