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
19a6406e
Commit
19a6406e
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
fix indentation of highlighted code in Modal docs
parent
6379674f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/_includes/js/modal.html
+5
-5
docs/_includes/js/modal.html
with
5 additions
and
5 deletions
+5
-5
docs/_includes/js/modal.html
+
5
-
5
View file @
19a6406e
...
...
@@ -16,11 +16,11 @@
</div>
<p><strong
class=
"text-danger"
>
Due to how HTML5 defines its semantics, the
<code>
autofocus
</code>
HTML attribute has no effect in Bootstrap modals.
</strong>
To achieve the same effect, use some custom JavaScript:
</p>
{% highlight js %}
$('#myModal').on('shown.bs.modal', function () {
$('#myInput').focus()
})
{% endhighlight %}
{% highlight js %}
$('#myModal').on('shown.bs.modal', function () {
$('#myInput').focus()
})
{% endhighlight %}
<h2
id=
"modals-examples"
>
Examples
</h2>
...
...
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