diff options
| author | XhmikosR <[email protected]> | 2019-02-11 11:34:02 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-02-11 11:34:02 +0200 |
| commit | 3aa0770b711f69c4dcf5858b8913794e81b32d80 (patch) | |
| tree | ecce3e93795e8b5a54c3648cad6c4f0076422c3a /site/docs/4.2/getting-started/javascript.md | |
| parent | adf16da25ea554c2a9da814a2492cf18d51e1072 (diff) | |
| download | bootstrap-3aa0770b711f69c4dcf5858b8913794e81b32d80.tar.xz bootstrap-3aa0770b711f69c4dcf5858b8913794e81b32d80.zip | |
docs snippets: a few more minor tweaks (#28225)
* Remove extra comma.
* Use curly braces in snippet.
Diffstat (limited to 'site/docs/4.2/getting-started/javascript.md')
| -rw-r--r-- | site/docs/4.2/getting-started/javascript.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/site/docs/4.2/getting-started/javascript.md b/site/docs/4.2/getting-started/javascript.md index 536a65d28..fc1f2c5a7 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 %} |
