Skip to content

Commit a8035e0

Browse files
committed
Merge branch 'master' into transitions
2 parents d0dc1ef + 3737d17 commit a8035e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2260
-1061
lines changed

.htaccess

Whitespace-only changes.

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ JSFILES = js/jquery.ui.widget.js \
6060
js/jquery.mobile.forms.button.js \
6161
js/jquery.mobile.forms.slider.js \
6262
js/jquery.mobile.forms.textinput.js \
63+
js/jquery.mobile.forms.select.custom.js \
6364
js/jquery.mobile.forms.select.js \
6465
js/jquery.mobile.buttonMarkup.js \
6566
js/jquery.mobile.controlGroup.js \
@@ -126,7 +127,7 @@ notify:
126127
@@echo "The files have been built and are in " $$(pwd)/${OUTPUT}
127128

128129
# Pull the latest commits. This is used for the nightly build but can be used to save some keystrokes
129-
pull:
130+
pull:
130131
@@git pull --quiet
131132

132133
# Zip the 4 files and the theme images into one convenient package
@@ -161,7 +162,7 @@ nightly: pull zip
161162
# Change the empty paths to the location of this nightly file
162163
@@find ${VER} -type f -name '*.html' -exec sed -i 's|href="themes/default/"|href="${NIGHTLY_WEBPATH}/${DIR}.min.css"|g' {} \;
163164
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="js/jquery.js"|src="http://code.jquery.com/jquery-${JQUERY}.min.js"|' {} \;
164-
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="js/"|src="${NIGHTLY_WEBPATH}/${DIR}.min.js"|g' {} \;
165+
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="js/"|src="${NIGHTLY_WEBPATH}/${DIR}.min.js"|g' {} \;
165166

166167
# Move the demos into the output folder
167168
@@mv ${VER} ${OUTPUT}/demos

build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
js/jquery.mobile.core.js,
3131
js/jquery.mobile.navigation.js,
3232
js/jquery.mobile.transition.js,
33-
js/jquery.mobile.degradeInputs.js,
33+
js/jquery.mobile.degradeInputs.js,
3434
js/jquery.mobile.dialog.js,
3535
js/jquery.mobile.page.sections.js,
3636
js/jquery.mobile.collapsible.js,
@@ -44,6 +44,7 @@
4444
js/jquery.mobile.forms.button.js,
4545
js/jquery.mobile.forms.slider.js,
4646
js/jquery.mobile.forms.textinput.js,
47+
js/jquery.mobile.forms.select.custom.js,
4748
js/jquery.mobile.forms.select.js,
4849
js/jquery.mobile.buttonMarkup.js,
4950
js/jquery.mobile.controlGroup.js,

docs/_assets/images/version.png

386 Bytes
Loading

docs/_assets/js/jqm-docs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $('div').live('pagecreate',function(event){
2929

3030
//collapse page navs after use
3131
$(function(){
32-
$('body').delegate('.content-secondary .ui-collapsible-content', 'vclick', function(){
32+
$('body').delegate('.content-secondary .ui-collapsible-content', 'click', function(){
3333
$(this).trigger("collapse")
3434
});
3535
});
@@ -48,8 +48,8 @@ function setDefaultTransition(){
4848
$.mobile.defaultPageTransition = trans;
4949
}
5050

51-
//set default documentation
52-
$( document ).bind( "mobileinit", setDefaultTransition );
51+
5352
$(function(){
53+
setDefaultTransition();
5454
$( window ).bind( "throttledresize", setDefaultTransition );
5555
});

docs/about/features.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ <h1>Features</h1>
2727
<h2>Key features:</h2>
2828
<ul>
2929
<li><strong>Built on jQuery core</strong> for familiar and consistent jQuery syntax and minimal learning curve</li>
30-
<li><strong>Compatible with all major mobile platforms</strong> - iOS, Android, Blackberry, Palm WebOS, Nokia/Symbian, Windows Mobile, bada, MeeGo with baseline support for all devices that understand HTML</li>
31-
<li><strong>Lightweight size</strong> (12k compressed for all mobile functionality) and minimal image dependencies for speed.</li>
30+
<li><strong>Compatible with all major mobile & desktop platforms</strong> - iOS, Android, Blackberry, Palm WebOS, Nokia/Symbian, Windows Mobile, Opera Mobile/Mini, Firefox Mobile and all modern desktop browsers.</li>
31+
<li><strong>Lightweight size</strong> (~20k compressed for all mobile functionality) and minimal image dependencies for speed.</li>
3232
<li><strong>HTML5 Markup-driven configuration</strong> of pages and behavior for fast development and minimal required scripting.</li>
3333
<li><strong>Progressive enhancement</strong> approach brings core content and functionality to all mobile, tablet and desktop platforms and a rich, installed application-like experience on newer mobile platforms.</li>
3434
<li><strong>Automatic initialization</strong> by using HTML5 <code> data-role</code> attributes in the HTML markup to act as the trigger to automatically initialize all jQuery Mobile widgets found on a page.</li>
3535
<li><strong>Accessibility</strong> features such as WAI-ARIA are also included to ensure that the pages work for screen readers (e.g. VoiceOver in iOS) and other assistive technologies.</li>
36-
<li><strong>New events</strong> streamline the process of supporting touch, mouse, and cursor focus-based user input methods with a simple API. </li>
37-
<li><strong>New plugins</strong> enhance native controls with touch-optimized, themable controls. </li>
36+
<li><strong>Touch and moust event support</strong> streamline the process of supporting touch, mouse, and cursor focus-based user input methods with a simple API. </li>
37+
<li><strong>UI widgets</strong> enhance native controls with touch-optimized, themable controls. </li>
3838
<li><strong>Powerful theming framework</strong> and ThemeRoller application make highly-branded experiences easy to build.</li>
3939

4040
</ul>

docs/about/intro.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>Introduction</h1>
2828

2929
<h2>jQuery Mobile Overview</h2>
3030

31-
<p>jQuery’s mobile strategy can be summarized simply: Delivering top-of-the-line JavaScript in a unified User Interface that works across the most-used smartphone web browsers and tablet form factors.</p>
31+
<p>jQuery’s mobile strategy can be summarized simply: A unified user interface system that works seamlessly across all popular mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation. Focused on a lightweight codebase built on progressive enhancement with a flexible, easily themeable design.</p>
3232

3333
<p>The critical difference with our approach is the <a href="platforms.html">wide variety of mobile platforms we’re targeting</a> with jQuery Mobile. We’ve been working hard at bringing jQuery support to all mobile browsers that are sufficiently-capable and have at least a nominal amount of market share. In this way, we’re treating mobile web browsers exactly how we treat desktop web browsers.</p>
3434

docs/about/platforms.html

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ <h1>Supported platforms</h1>
2424

2525

2626
<div class="content-primary">
27-
<h2>Supported platforms in Beta 1</h2>
27+
<h2>Supported platforms in Beta 2</h2>
2828

29-
<p>jQuery Mobile is the most broadly compatible HTML5 library for building web sites and apps and we've very proud of our commitment to accessibility, universal access, and staying true to the principles of the web. For anyone who needs to reach the greatest number of people worldwide, our broad support for all popular platforms is a distinct advantage.In Beta 1, we've added support for both Blackberry 5 devices and Opera Mini in Beta 1 which dramatically increases the reach of the framework. Both of these platforms had issues with handling the Ajax-based navigation so they receive a B grade experience with all the enhancements <a href="http://jquerymobile.com/blog/2011/05/27/jquery-mobile-team-update-week-of-may-23/">except for Ajax navigation</a>.</p>
29+
<p>At this stage, jQuery Mobile works on the vast majority of all modern desktop, smartphone, tablet, and e-reader platforms. In addition, feature phones and older browsers are also supported because of our progressive enhancement approach. We're very proud of our commitment to universal accessibility through our broad support for all popular platforms.</p>
3030

31-
<p>At this stage, jQuery Mobile works on the vast majority of all modern desktop, smartphone, tablet, and e-reader platforms. In addition, feature phones and older browsers are also supported because of our progressive enhancement approach. The only notable platform still in the works is Nokia’s Symbian S60 platform and we have this targeted for Beta 2.</p>
31+
<p>Our <a href="http://jquerymobile.com/gbs/">graded support matrix</a> was created over a year ago based on our goals as a project and since that time, we've been refining our grading system based on real-world device testing and the quickly evolving mobile landscape. To provide a quick summary of our browser support in Beta 1, we've created a simple A (full), B (full minus Ajax), C (basic) grade system with notes of the actual devices and versions we've been testing on in our lab.</p>
3232

33-
<p>Our <a href="http://jquerymobile.com/gbs/">graded support matrix</a> was created over a year ago based on our goals as a project. Since that time, we've been refining our grading system based on real-world device testing and the quickly evolving mobile landscape. To provide a quick summary of our browser support in Beta 1, we've created a simple A (full), B (full minus Ajax), C (basic) grade system with notes of the actual devices and versions we've been testing on in our lab.</p>
33+
<p>The visual fidelity of the experience is highly dependent on CSS rendering capabilities of the device and platform so not all A grade experience will be pixel-perfect but that's the nature of the web. We'll be adding additional vendor-prefixed CSS rules to bring transitions, gradients and other visual improvements to non-WebKit browsers in future releases so look for even more added visual polish as we move towards 1.0.</p>
3434

35-
<p>The visual fidelity of the experience is highly dependent on CSS rendering capabilities of the device and platform so not all A grade experience will be pixel-perfect but that’s the nature of the web. We’ll be adding additional vendor-prefixed CSS rules to bring transitions, gradients and other visual improvements to non-WebKit browsers in future releases so look for even more added visual polish as we move towards 1.0.</p>
36-
37-
<h3 style="font-weight: normal; background: #fff; border-left: 7px solid #74B64A; padding: 5px 0 5px 8px;"><strong> A-grade</strong> - Full enhanced experience with Ajax-based animated page transitions.</h3>
35+
<h3 style="display: block; font-size: 15px !important; font-weight: normal; background: #f0f0f0; border-left: 7px solid #74B64A; padding: 5px 0 5px 8px;"><strong> A-grade</strong> - Full enhanced experience with Ajax-based animated page transitions.</h3>
3836
<ul>
3937
<li><strong>Apple iOS 3.2-5.0 beta</strong>: Tested on the original iPad (3.2 / 4.3), iPad 2 (4.3), original iPhone (3.1), iPhone 3 (3.2), 3GS (4.3), and 4 (4.3 / 5.0 beta)</li>
40-
<li><strong>Android 2.1-2.3</strong>: Tested on the HTC Incredible (2.2), original Droid (2.2), Nook Color (2.2), HTC Aria (2.1), emulator (2.3). Functional on 1.5 &amp; 1.6 but performance may be sluggish, tested on Google G1 (1.5)</li>
38+
<li><strong>Android 2.1-2.3</strong>: Tested on the HTC Incredible (2.2), original Droid (2.2), Nook Color (2.2), HTC Aria (2.1), Google Nexus S (2.3) <span style="background: yellow; padding: 2px 5px; font-size: 10px;">NEW</span>. Functional on 1.5 &amp; 1.6 but performance may be sluggish, tested on Google G1 (1.5)</li>
39+
<li><strong>Android Honeycomb</strong> <span style="background: yellow; padding: 2px 5px; font-size: 10px;">NEW</span> - Tested on the Samsung Galaxy Tab 10.1</li>
4140
<li><strong>Windows Phone 7</strong>: Tested on the HTC 7 Surround</li>
4241
<li><strong>Blackberry 6.0</strong>: Tested on the Torch 9800 and Style 9670</li>
4342
<li><strong>Blackberry Playbook</strong>: Tested on PlayBook version 1.0.1 / 1.0.5</li>
4443
<li><strong>Palm WebOS (1.4-2.0)</strong>: Tested on the Palm Pixi (1.4), Pre (1.4), Pre 2 (2.0)</li>
44+
<li><strong>Palm WebOS 3.0</strong> <span style="background: yellow; padding: 2px 5px; font-size: 10px;">NEW</span> - Tested on HP TouchPad</li>
4545
<li><strong>Firebox Mobile (Beta)</strong>: Tested on Android 2.2</li>
4646
<li><strong>Opera Mobile 11.0</strong>: Tested on the iPhone 3GS and 4 (5.0/6.0), Android 2.2 (5.0/6.0), Windows Mobile 6.5 (5.0)</li>
4747
<li><strong>Kindle 3</strong>: Tested on the built-in WebKit browser included in the Kindle 3 device</li>
@@ -50,29 +50,24 @@ <h3 style="font-weight: normal; background: #fff; border-left: 7px solid #74B64A
5050
<li><strong>Internet Explorer 7-9</strong> - Tested on Windows XP, Vista and 7 (minor CSS issues)</li>
5151
<li><strong>Opera Desktop 10-11</strong> - Tested on OS X 10.6.7 and Windows 7</li>
5252
</ul>
53-
<h3 style="font-weight: normal; background: #fff; border-left: 7px solid #6699cc; padding: 5px 0 5px 8px;"><strong>B-grade</strong> - Enhanced experience except without Ajax navigation features.</h3>
53+
<h3 style="display: block; font-size: 15px !important; font-weight: normal; background: #f0f0f0; border-left: 7px solid #6699cc; padding: 5px 0 5px 8px;"><strong>B-grade</strong> - Enhanced experience except without Ajax navigation features.</h3>
5454
<ul>
5555
<li><strong>Blackberry 5.0</strong>: Tested on the Storm 2 9550, Bold 9770</li>
5656
<li><strong>Opera Mini (5.0-6.0)</strong> - Tested on iOS 3.2/4.3</li>
5757
<li><strong>Windows Phone 6.5</strong> - Tested on the HTC</li>
58+
<li><strong>Nokia Symbian^3</strong> <span style="background: yellow; padding: 2px 5px; font-size: 10px;">NEW</span> - Tested on Nokia N8 (Symbian^3), C7 (Symbian^3), also works on N97 (Symbian^1)</li>
5859
</ul>
59-
<h3 style="font-weight: normal; background: #fff; border-left: 7px solid #FFCC33; padding: 5px 0 5px 8px;"><strong>C<strong>-grade</strong></strong> - Basic, non-enhanced HTML experience that is still functional</h3>
60+
<h3 style="display: block; font-size: 15px !important; font-weight: normal; background: #f0f0f0; border-left: 7px solid #FFCC33; padding: 5px 0 5px 8px;"><strong>C<strong>-grade</strong></strong> - Basic, non-enhanced HTML experience that is still functional</h3>
6061
<ul>
6162
<li><strong>Blackberry4.x</strong>: Tested on the Curve 8330</li>
6263
<li><strong>All older smartphone platforms and featurephones</strong> - Any device that doesn't support media queries will receive the basic, C grade experience</li>
6364
</ul>
64-
<h3 style="font-weight: normal; background: #fff; border-left: 7px solid #aaaaaa; padding: 6px 0 8px 8px;"><strong>Not Currently Supported in Beta 1</strong></h3>
65+
<h3 style="display: block; font-size: 15px !important; font-weight: normal; background: #f0f0f0; border-left: 7px solid #aaaaaa; padding: 6px 0 8px 8px;"><strong>Not Officially Supported - </strong>May work, but haven't been thoroughly tested or debugged</h3>
6566
<ul>
66-
<li><strong>Nokia S60</strong> - Targeted for Beta 2 release. A/B grade support will depend on results of device testing.</li>
6767
<li><strong>Meego</strong> - Originally a target platform, but Nokia decision to relegate this platform to "experimental", we are considering dropping support.</li>
6868
<li><strong>Samsung Bada</strong> - The project doesn't currently have test devices or emulators, but current support is known to be fairly good. Support level undecided for 1.0.</li>
69-
<li><strong>Palm WebOS 3.0</strong> - We're hoping to get test devices from Palm soon to start testing but have heard that rendering is quite good in 3.0</li>
70-
</ul>
71-
72-
73-
<p>Since jQuery Mobile is built on the jQuery core, all pages should also work great on most recent versions of desktop browsers too - Firefox, Chrome, Safari, Internet Explorer, Opera, etc.</p>
69+
</ul>
7470

75-
<p>For more information about browser support, view the <a href="https://github.com/jquery/jquery-mobile/wiki/Current-development-status">current browser support status and known issues</a> and the project's target <a href="http://jquerymobile.com/gbs/" rel="external"><strong>graded browser matrix</strong></a>.</p>
7671

7772

7873
</div>

docs/api/events.html

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ <h2>Touch events</h2>
3838
<dd>Triggers after a held complete touch event (close to one second).</dd>
3939

4040
<dt><code>swipe</code></dt>
41-
<dd>Triggers when a horizontal drag of 30px or more (and less than 20px vertically) occurs within 1 second duration.</dd>
41+
<dd><p>Triggers when a horizontal drag of 30px or more (and less than 20px vertically) occurs within 1 second duration but these can be configured:</p>
42+
<ul>
43+
<li><code>scrollSupressionThreshold</code> (default: 10px) – More than this horizontal displacement, and we will suppress scrolling</li>
44+
<li><code>durationThreshold</code> (default: 1000ms) – More time than this, and it isn’t a swipe</li>
45+
<li><code>horizontalDistanceThreshold</code> (default: 30px) – Swipe horizontal displacement must be more than this.</li>
46+
<li><code>verticalDistanceThreshold</code> (default: 75px) – Swipe vertical displacement must be less than this.</li>
47+
</ul>
48+
</dd>
4249

4350
<dt><code>swipeleft</code></dt>
4451
<dd>Triggers when a swipe event occurred moving in the left direction.</dd>
@@ -128,6 +135,30 @@ <h2>Page initialization events</h2>
128135

129136

130137

138+
<h2>Virtual mouse events</h2>
139+
<p>We provide a set of "virtual" click events that normalize mouse and touch events. This allows the developer to register listeners for the basic mouse events, such as mousedown, mousemove, mouseup, and click, and the plugin will take care of registering the correct listeners behind the scenes to invoke the listener at the fastest possible time for that device. This still retains the order of event firing in the traditional mouse environment, should multiple handlers be registered on the same element for different events.</p>
140+
<dl>
141+
<dt><code>vmouseover</code></dt>
142+
<dd>Normalized event for handling touch or mouse <code>mouseover</code> events</dd>
143+
144+
<dt><code>vmousedown</code></dt>
145+
<dd>Normalized event for handling touch or mouse <code>mousedown</code> events</dd>
146+
147+
<dt><code>vmousemove</code></dt>
148+
<dd>Normalized event for handling touch or mouse <code>mousemove</code> events</dd>
149+
150+
<dt><code>vmouseup</code></dt>
151+
<dd>Normalized event for handling touch or mouse <code>mouseup</code> events</dd>
152+
153+
<dt><code>vclick</code></dt>
154+
<dd>Normalized event for handling touch or mouse <code>click</code> events</dd>
155+
156+
<dt><code>vmousecancel</code></dt>
157+
<dd>Normalized event for handling touch or mouse <code>mousecancel</code> events</dd>
158+
</dl>
159+
160+
161+
131162
<h2>Animation Events</h2>
132163
<p>jQuery Mobile exposes the <code>animationComplete</code> plugin, which you can utilize after adding or removing a class that applies a CSS transition.</p>
133164

docs/content/content-grids.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h2>Two column grids</h2>
6565
</fieldset>
6666

6767

68-
<p>Theme classes (not data-theme attributes) from the <a href="../themes/index.html">theming system</a> can be added to an element, including grids. On the blocks below, we're adding two classes: <code>ui-bar</code> to add the default bar padding and <code>ui-bar-e</code> to apply the background gradient and font styling for the "e" toolbar theme swatch. For illustration purposes, an inline <code>style="height:120px"</code> attribute is also added to each grid to set each to a standard height. </p>
68+
<p>Theme classes (not data-theme attributes) from the <a href="../api/themes.html">theming system</a> can be added to an element, including grids. On the blocks below, we're adding two classes: <code>ui-bar</code> to add the default bar padding and <code>ui-bar-e</code> to apply the background gradient and font styling for the "e" toolbar theme swatch. For illustration purposes, an inline <code>style="height:120px"</code> attribute is also added to each grid to set each to a standard height. </p>
6969

7070
<div class="ui-grid-a">
7171
<div class="ui-block-a"><div class="ui-bar ui-bar-e" style="height:120px">Block A</div></div>

0 commit comments

Comments
 (0)