Skip to content

Commit 8050fb0

Browse files
committed
Merge branch 'master' of https://github.com/walkingeyerobot/jquery-mobile into pull672
2 parents 96d941e + ad75771 commit 8050fb0

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

docs/api/themes.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ <h2>Lists &amp; Buttons</h2>
151151
<p>If you want to add visual emphasis to a button and help it stand out visually from its parent toolbar, an alternate swatch color can be set by adding a <code>data-theme="a"</code> to the anchor. Once an alternate swatch color is set on a button in the markup, the framework won't override that color if the parent theme is changed, because you made a conscious decision to set it.</p>
152152

153153
<div class="swatch-bars">
154-
<div data-role="header" data-theme="a" class="ui-bar" data-nobackbtn="true">
154+
<div data-role="header" data-theme="a" class="ui-bar" data-backbtn="false">
155155
<div><!-- wrapper div to have control over butttons -->
156156
<a href="index.html" data-icon="arrow-l" data-theme="a">A</a>
157157
<a href="index.html" data-icon="arrow-l" data-theme="b">B</a>
@@ -160,7 +160,7 @@ <h2>Lists &amp; Buttons</h2>
160160
<a href="index.html" data-icon="arrow-l" data-theme="e">E</a>
161161
</div>
162162
</div>
163-
<div data-role="header" data-theme="b" class="ui-bar" data-nobackbtn="true">
163+
<div data-role="header" data-theme="b" class="ui-bar" data-backbtn="false">
164164
<div><!-- wrapper div to have control over butttons -->
165165
<a href="index.html" data-icon="arrow-l" data-theme="a">A</a>
166166
<a href="index.html" data-icon="arrow-l" data-theme="b">B</a>
@@ -169,7 +169,7 @@ <h2>Lists &amp; Buttons</h2>
169169
<a href="index.html" data-icon="arrow-l" data-theme="e">E</a>
170170
</div>
171171
</div>
172-
<div data-role="header" data-theme="c" class="ui-bar" data-nobackbtn="true">
172+
<div data-role="header" data-theme="c" class="ui-bar" data-backbtn="false">
173173
<div><!-- wrapper div to have control over butttons -->
174174
<a href="index.html" data-icon="arrow-l" data-theme="a">A</a>
175175
<a href="index.html" data-icon="arrow-l" data-theme="b">B</a>
@@ -178,7 +178,7 @@ <h2>Lists &amp; Buttons</h2>
178178
<a href="index.html" data-icon="arrow-l" data-theme="e">E</a>
179179
</div>
180180
</div>
181-
<div data-role="header" data-theme="d" class="ui-bar" data-nobackbtn="true">
181+
<div data-role="header" data-theme="d" class="ui-bar" data-backbtn="false">
182182
<div><!-- wrapper div to have control over butttons -->
183183
<a href="index.html" data-icon="arrow-l" data-theme="a">A</a>
184184
<a href="index.html" data-icon="arrow-l" data-theme="b">B</a>
@@ -187,7 +187,7 @@ <h2>Lists &amp; Buttons</h2>
187187
<a href="index.html" data-icon="arrow-l" data-theme="e">E</a>
188188
</div>
189189
</div>
190-
<div data-role="header" data-theme="e" class="ui-bar" data-nobackbtn="true">
190+
<div data-role="header" data-theme="e" class="ui-bar" data-backbtn="false">
191191
<div><!-- wrapper div to have control over butttons -->
192192
<a href="index.html" data-icon="arrow-l" data-theme="a">A</a>
193193
<a href="index.html" data-icon="arrow-l" data-theme="b">B</a>

docs/toolbars/docs-headers.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2>Default header features</h2>
3939
<h1>Page title</h1>
4040
</div>
4141

42-
<p><strong>See that "back" button?</strong> The framework automatically generates a "back" button on every page, to simplify the process of including this common navigation element. To prevent the back button from being added to a header, either add your own button to the left slot (see below) or, add this attribute: <code>data-nobackbtn="true"</code> to the header container.
42+
<p><strong>See that "back" button?</strong> The framework automatically generates a "back" button on every page, to simplify the process of including this common navigation element. To prevent the back button from being added to a header, either add your own button to the left slot (see below) or, add this attribute: <code>data-backbtn="false"</code> to the header container.
4343

4444
<h2>Adding buttons</h2>
4545

@@ -86,20 +86,20 @@ <h3>Controlling button position with classes</h3>
8686

8787
<p>The button position can also be controlled by adding classes to the button anchors, rather than relying on source order. This is especially useful if you only want a button in the right slot. To specify the button position, add the class of <code>ui-btn-left</code> or <code>ui-btn-right</code> to the anchor.</p>
8888

89-
<p>In this example, we're adding only a single button to the right slot so the <code>data-nobackbtn="true"</code> needs to be added to the header container to suppress the automatic Back button behavior and the button needs the <code>ui-btn-right</code> class on the link.</p>
89+
<p>In this example, we're adding only a single button to the right slot so the <code>data-backbtn="false"</code> needs to be added to the header container to suppress the automatic Back button behavior and the button needs the <code>ui-btn-right</code> class on the link.</p>
9090

9191

9292

9393
<div class="highlight">
9494
<pre><code>
95-
&lt;div data-role=&quot;header&quot; data-position=&quot;inline&quot; data-nobackbtn=&quot;true&quot;&gt;
95+
&lt;div data-role=&quot;header&quot; data-position=&quot;inline&quot; data-backbtn=&quot;false&quot;&gt;
9696
&lt;h1&gt;Page Title&lt;/h1&gt;
9797
&lt;a href=&quot;index.html&quot; data-icon=&quot;gear&quot; class=&quot;ui-btn-right&quot;&gt;Options&lt;/a&gt;
9898
&lt;/div&gt;
9999
</code></pre>
100100
</div>
101101

102-
<div data-role="header" data-position="inline" data-nobackbtn="true">
102+
<div data-role="header" data-position="inline" data-backbtn="false">
103103
<h1>Page Title</h1>
104104
<a href="index.html" data-icon="gear" class="ui-btn-right">Options</a>
105105
</div>

experiments/converter/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h1>Currency converter</h1>
4949

5050
<div data-role="page" id="customize" class="ui-body-b">
5151

52-
<div data-role="header" data-theme="b" data-nobackbtn="true">
52+
<div data-role="header" data-theme="b" data-backbtn="false">
5353
<h1>Edit conversions</h1>
5454
<a href="#start" data-transition="fade" data-theme="b" data-icon="check" class="ui-btn-right">Done</a>
5555
</div>

js/jquery.mobile.page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ $.widget( "mobile.page", $.mobile.widget, {
7676
// auto-add back btn on pages beyond first view
7777
if ( o.addBackBtn && role === "header" &&
7878
($.mobile.urlStack.length > 1 || $(".ui-page").length > 1) &&
79-
!leftbtn && !$this.data( "noBackBtn" ) ) {
79+
!leftbtn && $this.data( "backBtn" ) === false ) {
8080

8181
$( "<a href='#' class='ui-btn-left' data-icon='arrow-l'>"+ o.backBtnText +"</a>" )
8282
.click(function() {

0 commit comments

Comments
 (0)