aboutsummaryrefslogtreecommitdiff
path: root/javascript.html
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-08-14 11:10:24 -0700
committerChris Rebert <[email protected]>2013-08-14 11:10:24 -0700
commit3890ab3987a4fb0027fbfcafe1d6e3f31c9fcf4a (patch)
treec20f5b01399d46c50137b17c0a18150b9e38f943 /javascript.html
parentb9620a1d5e519d1befd14f811c91b87f3c49f00b (diff)
parent2be8a5a2457141edf823e853b8cacec8f997f2e4 (diff)
downloadbootstrap-3890ab3987a4fb0027fbfcafe1d6e3f31c9fcf4a.tar.xz
bootstrap-3890ab3987a4fb0027fbfcafe1d6e3f31c9fcf4a.zip
Merge pull request #9531 from ggam/docs-indentation
Fixed inconsistencies in JavaScript examples
Diffstat (limited to 'javascript.html')
-rw-r--r--javascript.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/javascript.html b/javascript.html
index 3797dbf65..fd0a5a027 100644
--- a/javascript.html
+++ b/javascript.html
@@ -683,17 +683,17 @@ $('#myScrollspy').on('activate.bs.scrollspy', function () {
<p>Enable tabbable tabs via JavaScript (each tab needs to be activated individually):</p>
{% highlight js %}
$('#myTab a').click(function (e) {
- e.preventDefault();
- $(this).tab('show');
+ e.preventDefault()
+ $(this).tab('show')
})
{% endhighlight %}
<p>You can activate individual tabs in several ways:</p>
{% highlight js %}
-$('#myTab a[href="#profile"]').tab('show'); // Select tab by name
-$('#myTab a:first').tab('show'); // Select first tab
-$('#myTab a:last').tab('show'); // Select last tab
-$('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
+$('#myTab a[href="#profile"]').tab('show') // Select tab by name
+$('#myTab a:first').tab('show') // Select first tab
+$('#myTab a:last').tab('show') // Select last tab
+$('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
{% endhighlight %}
<h3>Markup</h3>
@@ -936,7 +936,7 @@ $('#example').tooltip(options)
</div><!-- /.bs-table-scrollable -->
{% highlight js %}
$('#myTooltip').on('hidden.bs.tooltip', function () {
-// do something…
+ // do something…
})
{% endhighlight %}
</div>