mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 15:40:59 +00:00
docs snippets: a few more minor tweaks (#28225)
* Remove extra comma. * Use curly braces in snippet.
This commit is contained in:
parent
adf16da25e
commit
3aa0770b71
@ -1125,7 +1125,7 @@ $form-validation-states: map-merge(
|
|||||||
"invalid": (
|
"invalid": (
|
||||||
"color": $form-feedback-invalid-color,
|
"color": $form-feedback-invalid-color,
|
||||||
"icon": $form-feedback-icon-invalid
|
"icon": $form-feedback-icon-invalid
|
||||||
),
|
)
|
||||||
),
|
),
|
||||||
$form-validation-states
|
$form-validation-states
|
||||||
);
|
);
|
||||||
|
@ -50,7 +50,9 @@ All infinitive events provide [`preventDefault()`](https://developer.mozilla.org
|
|||||||
|
|
||||||
{% highlight js %}
|
{% highlight js %}
|
||||||
$('#myModal').on('show.bs.modal', function (e) {
|
$('#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 %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user