diff --git a/docs/_includes/js/modal.html b/docs/_includes/js/modal.html index 87f228e9981c52d539115fa2d357536908ee37a6..d845795992ca438959c1cc1fee9df077a98ed6f1 100644 --- a/docs/_includes/js/modal.html +++ b/docs/_includes/js/modal.html @@ -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>