]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix indentation of highlighted code in Modal docs
authorChris Rebert <github@rebertia.com>
Thu, 12 Feb 2015 18:36:15 +0000 (10:36 -0800)
committerChris Rebert <github@rebertia.com>
Thu, 12 Feb 2015 18:36:15 +0000 (10:36 -0800)
docs/_includes/js/modal.html

index 87f228e9981c52d539115fa2d357536908ee37a6..d845795992ca438959c1cc1fee9df077a98ed6f1 100644 (file)
   </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>