aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes/js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-09-15 15:37:47 -0700
committerChris Rebert <[email protected]>2014-09-15 15:43:34 -0700
commitad00ad85fed5ae27b9bbc67dd8c2efae7cc457c4 (patch)
tree25eb4418b08f1d6521fb29d5c47d3d3c2b4d7f5d /docs/_includes/js
parent4f983bbaca9329b80e47a083f70ce9257f19a1a1 (diff)
downloadbootstrap-ad00ad85fed5ae27b9bbc67dd8c2efae7cc457c4.tar.xz
bootstrap-ad00ad85fed5ae27b9bbc67dd8c2efae7cc457c4.zip
modal docs: ensure all <button>s have an explicit `type` attribute
[skip sauce]
Diffstat (limited to 'docs/_includes/js')
-rw-r--r--docs/_includes/js/modal.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/_includes/js/modal.html b/docs/_includes/js/modal.html
index d5b1aee84..b325c5d19 100644
--- a/docs/_includes/js/modal.html
+++ b/docs/_includes/js/modal.html
@@ -102,13 +102,13 @@
</div><!-- /.modal -->
<div class="bs-example" style="padding-bottom: 24px;">
- <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
+ <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
</div><!-- /example -->
{% highlight html %}
<!-- Button trigger modal -->
-<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
+<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
@@ -146,12 +146,12 @@
<h2 id="modals-sizes">Optional sizes</h2>
<p>Modals have two optional sizes, available via modifier classes to be placed on a <code>.modal-dialog</code>.</p>
<div class="bs-example">
- <button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg">Large modal</button>
- <button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small modal</button>
+ <button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg">Large modal</button>
+ <button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small modal</button>
</div>
{% highlight html %}
<!-- Large modal -->
-<button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg">Large modal</button>
+<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg">Large modal</button>
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
@@ -162,7 +162,7 @@
</div>
<!-- Small modal -->
-<button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small modal</button>
+<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small modal</button>
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">