diff --git a/docs/_includes/js/modal.html b/docs/_includes/js/modal.html index 87f228e998..d845795992 100644 --- a/docs/_includes/js/modal.html +++ b/docs/_includes/js/modal.html @@ -16,11 +16,11 @@

Due to how HTML5 defines its semantics, the autofocus HTML attribute has no effect in Bootstrap modals. To achieve the same effect, use some custom JavaScript:

- {% highlight js %} - $('#myModal').on('shown.bs.modal', function () { - $('#myInput').focus() - }) - {% endhighlight %} +{% highlight js %} +$('#myModal').on('shown.bs.modal', function () { + $('#myInput').focus() +}) +{% endhighlight %}

Examples