Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
ad00ad85
Commit
ad00ad85
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
modal docs: ensure all <button>s have an explicit `type` attribute
[skip sauce]
parent
4f983bba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/_includes/js/modal.html
+6
-6
docs/_includes/js/modal.html
with
6 additions
and
6 deletions
+6
-6
docs/_includes/js/modal.html
+
6
-
6
View file @
ad00ad85
...
...
@@ -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"
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment