Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2019-02-11 12:34:02 +0300
committerGitHub <noreply@github.com>2019-02-11 12:34:02 +0300
commit3aa0770b711f69c4dcf5858b8913794e81b32d80 (patch)
treeecce3e93795e8b5a54c3648cad6c4f0076422c3a
parentadf16da25ea554c2a9da814a2492cf18d51e1072 (diff)
docs snippets: a few more minor tweaks (#28225)
* Remove extra comma. * Use curly braces in snippet.
-rw-r--r--site/docs/4.2/components/forms.md2
-rw-r--r--site/docs/4.2/getting-started/javascript.md4
2 files changed, 4 insertions, 2 deletions
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 %}