]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix <button>s with .btn but missing accompanying .btn-*
authorChris Rebert <code@rebertia.com>
Mon, 9 Dec 2013 01:15:26 +0000 (17:15 -0800)
committerChris Rebert <code@rebertia.com>
Mon, 9 Dec 2013 01:15:26 +0000 (17:15 -0800)
javascript.html

index 71bbf68231d44f18fe286c86315b3a4baa1157e0..2ebb503e2dd5c78edd7070caa48420e56101ec00 100644 (file)
@@ -1433,14 +1433,14 @@ $('.btn').button()
       <p>You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.</p>
     </div>
 {% highlight html %}
-<button type="button" class="btn" data-toggle="button">...</button>
+<button type="button" class="btn btn-primary" data-toggle="button">...</button>
 {% endhighlight %}
 
     <h4>$().button('loading')</h4>
     <p>Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute <code>data-loading-text</code>.
     </p>
 {% highlight html %}
-<button type="button" class="btn" data-loading-text="loading stuff...">...</button>
+<button type="button" class="btn btn-primary" data-loading-text="loading stuff...">...</button>
 {% endhighlight %}
 
     <div class="bs-callout bs-callout-danger">
@@ -1454,7 +1454,7 @@ $('.btn').button()
     <h4>$().button(string)</h4>
     <p>Resets button state - swaps text to any data defined text state.</p>
 {% highlight html %}
-<button type="button" class="btn" data-complete-text="finished!" >...</button>
+<button type="button" class="btn btn-primary" data-complete-text="finished!" >...</button>
 <script>
   $('.btn').button('complete')
 </script>