Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
1783c707
Commit
1783c707
authored
Sep 15, 2014
by
Chris Rebert
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14624 from twbs/type-button
modal docs: ensure all <button>s have an explicit `type` attribute
parents
4f983bba
ad00ad85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
docs/_includes/js/modal.html
docs/_includes/js/modal.html
+6
-6
No files found.
docs/_includes/js/modal.html
View file @
1783c707
...
@@ -102,13 +102,13 @@
...
@@ -102,13 +102,13 @@
</div>
<!-- /.modal -->
</div>
<!-- /.modal -->
<div
class=
"bs-example"
style=
"padding-bottom: 24px;"
>
<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
Launch demo modal
</button>
</button>
</div>
<!-- /example -->
</div>
<!-- /example -->
{% highlight html %}
{% highlight html %}
<!-- Button trigger modal -->
<!-- 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
Launch demo modal
</button>
</button>
...
@@ -146,12 +146,12 @@
...
@@ -146,12 +146,12 @@
<h2
id=
"modals-sizes"
>
Optional sizes
</h2>
<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>
<p>
Modals have two optional sizes, available via modifier classes to be placed on a
<code>
.modal-dialog
</code>
.
</p>
<div
class=
"bs-example"
>
<div
class=
"bs-example"
>
<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>
<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>
</div>
{% highlight html %}
{% highlight html %}
<!-- Large modal -->
<!-- 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 fade bs-example-modal-lg"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myLargeModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
>
<div
class=
"modal-dialog modal-lg"
>
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
</div>
</div>
<!-- Small modal -->
<!-- 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 fade bs-example-modal-sm"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"mySmallModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-sm"
>
<div
class=
"modal-dialog modal-sm"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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