Skip to content

Commit 3bd9a26

Browse files
author
Quy Ton
committed
Apply code tag to data attribute on javascript page
1 parent 820a3b2 commit 3bd9a26

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/javascript.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ <h2>Example uses</h2>
11321132
<p>Do more with buttons. Control button states or create groups of buttons for more components like toolbars.</p>
11331133

11341134
<h4>Stateful</h4>
1135-
<p>Add data-loading-text="Loading..." to use a loading state on a button.</p>
1135+
<p>Add <code>data-loading-text="Loading..."</code> to use a loading state on a button.</p>
11361136
<div class="bs-docs-example" style="padding-bottom: 24px;">
11371137
<button type="button" id="fat-btn" data-loading-text="loading..." class="btn btn-primary">
11381138
Loading state
@@ -1141,14 +1141,14 @@ <h4>Stateful</h4>
11411141
<pre class="prettyprint linenums">&lt;button type="button" class="btn btn-primary" data-loading-text="Loading..."&gt;Loading state&lt;/button&gt;</pre>
11421142

11431143
<h4>Single toggle</h4>
1144-
<p>Add data-toggle="button" to activate toggling on a single button.</p>
1144+
<p>Add <code>data-toggle="button"</code> to activate toggling on a single button.</p>
11451145
<div class="bs-docs-example" style="padding-bottom: 24px;">
11461146
<button type="button" class="btn btn-primary" data-toggle="button">Single Toggle</button>
11471147
</div>
11481148
<pre class="prettyprint linenums">&lt;button type="button" class="btn btn-primary" data-toggle="button"&gt;Single Toggle&lt;/button&gt;</pre>
11491149

11501150
<h4>Checkbox</h4>
1151-
<p>Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group.</p>
1151+
<p>Add <code>data-toggle="buttons-checkbox"</code> for checkbox style toggling on btn-group.</p>
11521152
<div class="bs-docs-example" style="padding-bottom: 24px;">
11531153
<div class="btn-group" data-toggle="buttons-checkbox">
11541154
<button type="button" class="btn btn-primary">Left</button>
@@ -1165,7 +1165,7 @@ <h4>Checkbox</h4>
11651165
</pre>
11661166

11671167
<h4>Radio</h4>
1168-
<p>Add data-toggle="buttons-radio" for radio style toggling on btn-group.</p>
1168+
<p>Add <code>data-toggle="buttons-radio"</code> for radio style toggling on btn-group.</p>
11691169
<div class="bs-docs-example" style="padding-bottom: 24px;">
11701170
<div class="btn-group" data-toggle="buttons-radio">
11711171
<button type="button" class="btn btn-primary">Left</button>

docs/templates/pages/javascript.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ $('#my-alert').bind('closed', function () {
10621062
<p>{{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}</p>
10631063

10641064
<h4>{{_i}}Stateful{{/i}}</h4>
1065-
<p>{{_i}}Add data-loading-text="Loading..." to use a loading state on a button.{{/i}}</p>
1065+
<p>{{_i}}Add <code>data-loading-text="Loading..."</code> to use a loading state on a button.{{/i}}</p>
10661066
<div class="bs-docs-example" style="padding-bottom: 24px;">
10671067
<button type="button" id="fat-btn" data-loading-text="loading..." class="btn btn-primary">
10681068
{{_i}}Loading state{{/i}}
@@ -1071,14 +1071,14 @@ $('#my-alert').bind('closed', function () {
10711071
<pre class="prettyprint linenums">&lt;button type="button" class="btn btn-primary" data-loading-text="Loading..."&gt;Loading state&lt;/button&gt;</pre>
10721072

10731073
<h4>{{_i}}Single toggle{{/i}}</h4>
1074-
<p>{{_i}}Add data-toggle="button" to activate toggling on a single button.{{/i}}</p>
1074+
<p>{{_i}}Add <code>data-toggle="button"</code> to activate toggling on a single button.{{/i}}</p>
10751075
<div class="bs-docs-example" style="padding-bottom: 24px;">
10761076
<button type="button" class="btn btn-primary" data-toggle="button">{{_i}}Single Toggle{{/i}}</button>
10771077
</div>{{! /example }}
10781078
<pre class="prettyprint linenums">&lt;button type="button" class="btn btn-primary" data-toggle="button"&gt;Single Toggle&lt;/button&gt;</pre>
10791079

10801080
<h4>{{_i}}Checkbox{{/i}}</h4>
1081-
<p>{{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group.{{/i}}</p>
1081+
<p>{{_i}}Add <code>data-toggle="buttons-checkbox"</code> for checkbox style toggling on btn-group.{{/i}}</p>
10821082
<div class="bs-docs-example" style="padding-bottom: 24px;">
10831083
<div class="btn-group" data-toggle="buttons-checkbox">
10841084
<button type="button" class="btn btn-primary">{{_i}}Left{{/i}}</button>
@@ -1095,7 +1095,7 @@ $('#my-alert').bind('closed', function () {
10951095
</pre>
10961096

10971097
<h4>{{_i}}Radio{{/i}}</h4>
1098-
<p>{{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group.{{/i}}</p>
1098+
<p>{{_i}}Add <code>data-toggle="buttons-radio"</code> for radio style toggling on btn-group.{{/i}}</p>
10991099
<div class="bs-docs-example" style="padding-bottom: 24px;">
11001100
<div class="btn-group" data-toggle="buttons-radio">
11011101
<button type="button" class="btn btn-primary">{{_i}}Left{{/i}}</button>

0 commit comments

Comments
 (0)