Skip to content

Commit

Permalink
docs snippets: a few more minor tweaks (#28225)
Browse files Browse the repository at this point in the history
* Remove extra comma.

* Use curly braces in snippet.
  • Loading branch information
XhmikosR committed Feb 11, 2019
1 parent adf16da commit 3aa0770
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/docs/4.2/components/forms.md
Expand Up @@ -1125,7 +1125,7 @@ $form-validation-states: map-merge(
"invalid": (
"color": $form-feedback-invalid-color,
"icon": $form-feedback-icon-invalid
),
)
),
$form-validation-states
);
Expand Down
4 changes: 3 additions & 1 deletion site/docs/4.2/getting-started/javascript.md
Expand Up @@ -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 %}

Expand Down

0 comments on commit 3aa0770

Please sign in to comment.