Skip to content

Commit 16aafad

Browse files
committed
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2 parents 098eed9 + b3e6559 commit 16aafad

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

docs/_assets/css/jqm-docs.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ dd h4 { margin:15px 0 0 0; }
120120

121121
/* F bar theme - just for the docs overview headers */
122122
.ui-bar-f {
123-
border: 1px solid #56A00E;
123+
border-top: 1px solid #56A00E;
124+
border-bottom: 1px solid #56A00E;
124125
background: #74b042;
125126
color: #fff;
126127
font-weight: bold;

docs/forms/docs-forms.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,17 @@ <h2>Disabling form elements</h2>
8888

8989
<div data-role="fieldcontain">
9090
<label for="flip-s">Server status:</label>
91-
<select name="slider" id="flip-s" data-role="slider" disabled >
91+
<select name="flip-s" id="flip-s" data-role="slider" disabled >
9292
<option value="off">Off</option>
9393
<option value="on">On</option>
9494
</select>
9595
</div>
9696

97+
<div data-role="fieldcontain">
98+
<label for="slider">Max bandwidth:</label>
99+
<input type="range" name="slider" id="slider" value="0" min="0" max="100" disabled />
100+
</div>
101+
97102
<div data-role="fieldcontain">
98103
<label for="select-choice-x" class="select">Shipping:</label>
99104
<select name="select-shipper" id="select-choice-x" disabled>

docs/pages/page-links.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ <h2>Default link behavior: Ajax</h2>
3535
<p>If the Ajax request is successful, the new page content is added to the DOM, all mobile widgets are auto-initialized, then the new page is animated into view with a page transition.</p>
3636

3737
<p>If the Ajax request fails, the framework will display a small error message overlay (styled in the "e" swatch) that disappears after a brief time so this doesn't break the navigation flow. View an <a href="notapage.html">example of the error message</a>.</p>
38+
39+
<p><strong>Note:</strong> that you cannot link <strong>to</strong> multipage document with Ajax navigation active because the framework will only load the first page it finds, not the full set of internal pages. In these cases, you must link without Ajax (see next section) for a full page refresh to prevent potential hash collisions. There is currently a <a href="https://github.com/ToddThomson/jQuery-Mobile-Subpage-Widget" rel="external">subpage plugin</a> that makes it possible to load in multi-page documents.</p>
3840

3941

4042
<h2>Linking without Ajax</h2>

docs/pages/page-navmodel.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ <h2>Known limitations</h2>
129129
<ul>
130130
<li><p>When linking to directories, without a filename url, (such as <code>href="typesofcats/"</code> instead of <code>href="typesofcats/index.html"</code>), you must provide a trailing slash. This is because jQuery Mobile assumes the section after the last "/" character in a url is a filename, and it will remove that section when creating base urls from which future pages will be referenced.</p></li>
131131
<li><p>Documents loaded via Ajax will select the first page in the DOM of that document to be loaded as a JQM page element. As a result the developer must make sure to manage the ID attributes of the loaded page and child elements to prevent confusion when manipulating the DOM.</p></li>
132+
<li><p>If you link to multipage document, you must use a <code>data-ajax="false"</code> attribute on the link to cause a full page refresh due to the limitation above where we only load the first page node in an Ajax request due to potential hash collisions. There is currently a <a href="https://github.com/ToddThomson/jQuery-Mobile-Subpage-Widget" rel="external">subpage plugin</a> that makes it possible to load in multi-page documents. </p></li>
132133
<li><p>Any unique assets referenced by pages in a jQuery Mobile-driven site should be placed inside the "page" element (the element with a <code>data-role</code> attribute of <code>"page"</code>). For example, links to styles and scripts that are specific to a particular page can be referenced inside that <code>div</code>. However, a better approach is to use jQuery Mobile's page events to trigger specific scripting when certain pages load. <strong>Note: </strong> you can return a page from the server with a <code>data-url</code> already specified in the markup, and jQuery Mobile will use that for the hash update. This allows you to ensure directory paths resolve with a trailing slash and will therefore be used in the base url path for future requests.</p></li>
133134
<li><p>Conversely, any non-unique assets (those used site-wide) should be referenced in the <code>&lt;head&gt;</code> section of an HTML document, or at the very least, outside of the "page" element, to prevent running scripts more than once.</p></li>
134135
<li><p>The <code>"ui-page"</code> key name used in sub-hash url references can be set to any value you'd like, so as to blend into your URL structure. This value is stored in <code>jQuery.mobile.subPageUrlKey</code>.</p></li>

js/jquery.mobile.page.sections.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi
7474
});
7575

7676
} else if ( role === "content" ) {
77-
if ( contentTheme && pageRole === "dialog" ) {
77+
if ( contentTheme ) {
7878
$this.addClass( "ui-body-" + ( contentTheme ) );
7979
}
8080

0 commit comments

Comments
 (0)