docs snippets: a few more minor tweaks (#28225)

* Remove extra comma.

* Use curly braces in snippet.
This commit is contained in:
XhmikosR 2019-02-11 11:34:02 +02:00 committed by GitHub
parent adf16da25e
commit 3aa0770b71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1125,7 +1125,7 @@ $form-validation-states: map-merge(
"invalid": (
"color": $form-feedback-invalid-color,
"icon": $form-feedback-icon-invalid
),
)
),
$form-validation-states
);

View File

@ -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 %}