From: XhmikosR Date: Mon, 11 Feb 2019 09:34:02 +0000 (+0200) Subject: docs snippets: a few more minor tweaks (#28225) X-Git-Tag: v4.3.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aa0770b711f69c4dcf5858b8913794e81b32d80;p=thirdparty%2Fbootstrap.git docs snippets: a few more minor tweaks (#28225) * Remove extra comma. * Use curly braces in snippet. --- diff --git a/site/docs/4.2/components/forms.md b/site/docs/4.2/components/forms.md index 94a868fad4..e655e21589 100644 --- a/site/docs/4.2/components/forms.md +++ b/site/docs/4.2/components/forms.md @@ -1125,7 +1125,7 @@ $form-validation-states: map-merge( "invalid": ( "color": $form-feedback-invalid-color, "icon": $form-feedback-icon-invalid - ), + ) ), $form-validation-states ); diff --git a/site/docs/4.2/getting-started/javascript.md b/site/docs/4.2/getting-started/javascript.md index 536a65d285..fc1f2c5a77 100644 --- a/site/docs/4.2/getting-started/javascript.md +++ b/site/docs/4.2/getting-started/javascript.md @@ -50,7 +50,9 @@ All infinitive events provide [`preventDefault()`](https://developer.mozilla.org {% highlight js %} $('#myModal').on('show.bs.modal', function (e) { - if (!data) return e.preventDefault() // stops modal from being shown + if (!data) { + return e.preventDefault() // stops modal from being shown + } }) {% endhighlight %}