]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Removed trailing semicolons from examples 9531/head
authorggam <ggam@brainleakage.com>
Wed, 14 Aug 2013 17:57:54 +0000 (19:57 +0200)
committerggam <ggam@brainleakage.com>
Wed, 14 Aug 2013 17:57:54 +0000 (19:57 +0200)
javascript.html

index 152b9b08e5ca1c0d3a638afc574d420156383e83..fd0a5a027fe346bb4369f7fd18985cb616683a5c 100644 (file)
@@ -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>