Compare commits

...

1968 commits

Author SHA1 Message Date
Ghislain Seguin
9ce232f42a Merge pull request #3497 from jakeboone02/global-config-loading-sequence
Fixed remaining loading sequence issues for global config tests
2012-01-28 10:13:06 -08:00
Jake Boone
e6b685d017 Fixed remaining loading sequence issues for global config tests 2012-01-28 11:31:03 -05:00
Ghislain Seguin
e37c7e9bf5 Moved RequireJS plugins to external/requirejs 2012-01-27 23:36:42 -08:00
Ghislain Seguin
b15815d5d8 Ensure module paths are relative 2012-01-27 23:27:13 -08:00
Ghislain Seguin
02c45dfe19 Fixed loading sequence 2012-01-27 23:26:13 -08:00
Ghislain Seguin
c000625372 Updated to RequireJS 1.0.5 2012-01-27 23:15:18 -08:00
Ghislain Seguin
2deb132a4f Fixed meta-module for docs
Moved dependency on jquery.mobile from jqm-docs to jquery.mobile.docs
Use order! plugin to ensure that jquery.mobile gets executed (dumped) first
Added pragmas around the jqm-docs define
2012-01-27 23:14:02 -08:00
John Bender
e74eeda398 default to core 1.7.1 in the deploy of the demo 2012-01-27 08:05:28 -08:00
scottjehl
4523bb241b Undoing one of my earilier changes to remove a jump-to-top that commonly happened at the start of transitions, 2012-01-27 20:39:07 +07:00
scottjehl
a2bfc27492 Implemented and documented the tapToggleBlacklist option of the fixedtoolbar plugin, which tells the plugin to ignore certain targets for tap toggling the toolbars. The default list is "a, input, select, textarea, .ui-header-fixed, .ui-footer-fixed". 2012-01-27 19:34:14 +07:00
scottjehl
5ef03c8474 Merge remote branch 'origin/master' 2012-01-27 18:43:27 +07:00
scottjehl
8232059164 Added an optional 1.0-style loading box design, configurable via a new loadingMessageTextVisible option, which defaults to false for regular loading messages, but is true for internal error messages. In order to support this change, the show loader method was modified with 3 arguments: theme, text, and text-only. Other new core options have been added to configure the theme for default and error message boxes: loadingMessageTheme and pageLoadErrorMessageTheme. 2012-01-27 18:42:22 +07:00
John Bender
beaf693c23 use jquery min for deploy build 2012-01-26 12:41:25 -08:00
John Bender
45b71e1a88 Makefile whitespace 2012-01-26 12:41:25 -08:00
Ghislain Seguin
d3911f1209 Merge pull request #3475 from jasondscott/issue_1524
Issue #1524 - Taphold event fired while scrolling on Blackberry Playbook
2012-01-26 11:42:04 -08:00
John Bender
5c0429463a TODO update jquery version in tag replace 2012-01-26 08:20:32 -08:00
scottjehl
45eb085167 ensure that fullscreen toolbars do not animate in when the page is first shown 2012-01-26 17:24:23 +07:00
scottjehl
82ddbf1318 Merge remote branch 'origin/master' 2012-01-26 17:07:26 +07:00
scottjehl
967a374cd3 updated documentation on the new fixedtoolbar plugin. 2012-01-26 17:02:16 +07:00
scottjehl
bb62031cc3 added support for the updatelayout event, so that fixed toolbars can be manually updated through this event alongside other plugins that subscribe to it. 2012-01-26 16:21:02 +07:00
scottjehl
bb17f146e4 added an argument to the show and hide methods to specify that no transition should be used, regardless of the default transition type. This is now used on pageshow, so the toolbar does not use an animated transition when the page is initially shown. 2012-01-26 16:06:44 +07:00
scottjehl
ee0573e7d2 set the default toolbars transition to slide, because it looks kinda nice 2012-01-26 15:18:33 +07:00
scottjehl
82ed98cffc some edits to make sure proper classes are toggled for the slide transition to work, if it's set. 2012-01-26 15:16:52 +07:00
scottjehl
8aaa1c9420 fixed up the unit tests to ensure the disablePageZoom option works as expected 2012-01-26 14:59:43 +07:00
scottjehl
893508710a renamed togglePageZoom option disablePageZoom 2012-01-26 14:26:26 +07:00
scottjehl
716bf7f45d removed ability to set "fullscreen" on the page itself. Instead, this should be set on the fixed toolbar elements. 2012-01-26 12:18:00 +07:00
Ghislain Seguin
022b75d111 Added comment 2012-01-25 21:05:02 -08:00
Ghislain Seguin
e1d98a7e1b Removed use of order! plugin 2012-01-25 20:54:16 -08:00
scottjehl
e307d9f66b updated platform support to include Bada and UCweb. 2012-01-26 11:46:14 +07:00
scottjehl
8ba1506510 removed the converter experiment 2012-01-26 10:49:16 +07:00
scottjehl
3c07beffad removed the google maps experiment 2012-01-26 10:49:02 +07:00
scottjehl
9732110552 removed the weather experiment 2012-01-26 10:48:17 +07:00
Ghislain Seguin
5062e566b8 Fixed version string in built bundles (docs and main) 2012-01-25 16:52:16 -08:00
Ghislain Seguin
e78c5ccf8b Added exclusions for the docs bundle 2012-01-25 16:51:39 -08:00
Ghislain Seguin
b467dfb536 Revert unwanted change use rhino to run JavaScript 2012-01-25 16:34:35 -08:00
Ghislain Seguin
5ced7f81cd Added AMD text plugin 2012-01-25 15:36:49 -08:00
Ghislain Seguin
ae835d0af1 Fixes #3479
Added $.mobile.version
2012-01-25 15:21:02 -08:00
Ghislain Seguin
b08ff1ec6a Removed extra newline 2012-01-25 15:21:01 -08:00
John Bender
227530a107 remove redundant compile output cleaning 2012-01-25 14:49:55 -08:00
toddparker
e47a74dd90 Changed version flag to say "1.x Unstable" on master homepage 2012-01-25 14:58:17 -05:00
scottjehl
72b0d46dff Added updatePagePadding option to automate the use of the updatePagePadding method, with a default value of true. When true, this method calls the updatePagePadding method on webkitAnimationStart, animationstart, pageshow, and throttledresize. The animation events catch the page before it transitions in, whereas pageshow event serves the purpose of catching the page when animations are not in play, or when there's no FROM page that you're transitioning from. Lastly, the throttledresize event updates the value on resize.
This method still needs unit test coverage. Fixes #3484
2012-01-25 22:15:40 +07:00
scottjehl
9381ae8f09 this seems to be a little better on repaints. 2012-01-25 21:12:23 +07:00
scottjehl
99db3d039f Merge remote branch 'origin/master' 2012-01-25 18:26:57 +07:00
scottjehl
699001a3c6 Added an experimental "updatePagePadding" method, which allows developers to adjust the page element's padding to accommodate a taller toolbar, so there is no overlap.
Addresses Issue #3484

Caveats:

- This method must be called when the toolbar is visible, meaning you'll see a visible jump when a page is shown. For this reason, I'm hesitant to recommend this feature. It would be a lot smoother to set the page padding in a custom CSS file to make up for whatever EM height your toolbars happen to be.

- Height is set in Pixels, meaning changes in font size could  render it inaccurate. If we want to set height in ems, we'll need to add an em conversion  utility function to jQM.

- To ensure it works properly, this method will need to be called on page show, and at any time a content reflow might occur: resize, orientationchange, zoom?

This method is not currently called automatically.

It can be called like this: $(".ui-header-fixed").fixedtoolbar( "updatePagePadding" );
2012-01-25 18:26:04 +07:00
scottjehl
544cdb49d6 if the option to disable page zoom on pages that contain a fixed toolbar is true, the plugin needs to use the lock to prevent other plugins from enabling zoom again while the page is in view. Fixes #3477 2012-01-25 17:39:13 +07:00
scottjehl
56607b946c this dependency is already in the define statement, which should be enough 2012-01-25 17:32:51 +07:00
scottjehl
b39c320bec preventFocusZoom default is true on iOS platforms, false otherwise, as it is only here to address an iOS bug. 2012-01-25 17:28:25 +07:00
scottjehl
f5260ab9e5 exclude non-iOS platforms from this behavior 2012-01-25 17:24:53 +07:00
Ghislain Seguin
271beeefb0 Merge pull request #3485 from jrburke/amd-relative
Update to relative AMD dependencies
2012-01-24 15:33:21 -08:00
jrburke
096e90bbfe Update to relative AMD dependencies, allows proper use of source in an AMD project. 2012-01-24 14:43:24 -08:00
scottjehl
40c400d657 Merge remote branch 'origin/master' 2012-01-24 17:34:20 +07:00
scottjehl
f9d7ff95a7 removed unused function in tests 2012-01-24 17:31:07 +07:00
scottjehl
9da89ff6db modified so that the select zoom calls manipulate the locked property, to ensure other zoom plugins don't mess with it during focus 2012-01-24 17:31:07 +07:00
scottjehl
6e12e62123 namespaced the events. 2012-01-24 17:31:07 +07:00
scottjehl
94a9b24567 added the locked property, with options to lock and unlock it when calling disable or enable, respectively. This allows a plugin to take control and ensure zoom isn't messed with while it's carrying out a zoom-specific task 2012-01-24 17:31:07 +07:00
scottjehl
edad9c1f9a window not w, evt wasn't defined. Thanks @staabm 2012-01-24 17:31:06 +07:00
scottjehl
5725b4bac9 updated to bulletproof further 2012-01-24 17:31:06 +07:00
scottjehl
6cee30d22c updated to use only the devicemotion event, for compatibility and less battery battering 2012-01-24 17:31:06 +07:00
scottjehl
460ad7197c This change brings the iOS orientationchange bug workaround up to the latest code from that external project, with an experimental attempt at iOS4.3 support on the 3GS using the devicemotion event, which may be a bad idea to use unthrottled - not sure yet. This code needs to be tested on a device with iOS5, and I imagine the check for deviceorientation will also need a check for the value of evt.gamma. At that point, we may decide to only support iOS5 for this workaround, and the code can bind only to deviceorientation and be more concise. 2012-01-24 17:31:06 +07:00
scottjehl
4e2c8ef2a3 added unit tests for prevent focus zoom option 2012-01-24 17:31:06 +07:00
scottjehl
3a9c22eacc switched up this check so it binds the events regardless of initial state, in case it's toggled later 2012-01-24 17:31:06 +07:00
scottjehl
ae726d2d45 added files to index php 2012-01-24 17:31:06 +07:00
scottjehl
b7549b213c moved the iosfocusfix logic over to the selectmenu plugin. It's now toggled via a new option: preventFocusZoom (Default is true). 2012-01-24 17:31:06 +07:00
scottjehl
6077668af4 added a restore method, similar to a widget's destroy. Restores the meta content back to original value 2012-01-24 17:31:06 +07:00
scottjehl
5fcf89e0d9 added unit tests for the zoom plugin 2012-01-24 17:31:05 +07:00
scottjehl
db453434a8 use maximum scale instead of user-scaling, as it's more reliable for restoring zoom 2012-01-24 17:31:05 +07:00
scottjehl
79b1979177 fixed up the unit tests so that they only test the plugin's usage of the zoom methods, not the result of whether those methods are working 2012-01-24 17:31:05 +07:00
scottjehl
29373214c6 added zoom dependency and removed internal handling of page zoom enable/disable, opting to use the zoom plugin methods instead 2012-01-24 17:31:05 +07:00
scottjehl
75214550b1 added meta viewport tag 2012-01-24 17:31:05 +07:00
scottjehl
b07bab7b51 fixed a duplicate listing 2012-01-24 17:31:05 +07:00
scottjehl
66be09d2de A new utility: $.mobile.zoom, which as 3 members: enabled [bool], disable [function], and enable [function].
This simple utility is used to disable user scaling in devices like iOS. The disable() method disables user-scaling. The enable() method enables user-scaling. The enabled property keeps track of state.

Two other utilites are included here as well.

First, there's zoom.iosfocusfix.js, which disables zoom as a select or input element is focused, preventing iOS from zooming into that element and cropping the viewport. Zoom is restored just after the focus event fires (a half second timeout).

Then there's zoom.iosorientationfix.js, which is intended to fix the iOS orientationchange zoom bug, following the approach from this project https://github.com/scottjehl/iOS-Orientationchange-Fix. This may not  be working yet. Needs testing, and it may require that we change the values of the meta content to use maximum-scale instead of user-scalable.

Lastly, fixedtoolbar, once it lands, should use this utility to disable/enable zoom, rather than the one that's currently included in its own source.
2012-01-24 17:31:05 +07:00
Jason
a215d4c13e Issue #1524 - Fixing style - Missing white space 2012-01-23 20:00:54 -05:00
Mat Marquis
e7250070d1 Added moz-prefixed transition for slider handle. 2012-01-23 17:27:32 -05:00
Mat Marquis
201058bc90 Cached window in show/hide functions, since I was in the neighborhood. 2012-01-23 15:54:08 -05:00
Jason
92cf8d62c4 Issue #1524 - Taphold event fired while scrolling on Blackberry Playbook
Cause: The vmousecancel event was not being fired for 'this'.

How Fixed: Bound vmousecancel event to document instead of 'this'.

How Tested: Ran the example provided with the issue
(http://jsbin.com/oruhu4/) with this change on BlackBerry Playbook v2.0
and iPad iOS 5.0.1
2012-01-23 15:44:33 -05:00
Ghislain Seguin
1609ea10e7 Changed input file for css structure to static string: jquery.mobile.structure 2012-01-23 15:43:46 -05:00
Ghislain Seguin
e42c7025e5 Use jquery.mobile.structure.css instead of the list all the individual 2012-01-23 15:43:46 -05:00
Ghislain Seguin
235f39b6a7 import jquery.mobile.structure.css instead of all the individual files 2012-01-23 15:43:46 -05:00
Ghislain Seguin
ddaab10c59 Created jquery.mobile.structure.css which contains the structure css files 2012-01-23 15:43:45 -05:00
scottjehl
7f2e50430e fixed the fixed toolbar tap toggle. Footers weren't moving to bottom. This line was outta line 2012-01-23 23:47:08 +07:00
scottjehl
c71ae9da12 z-index no longer required during transitions 2012-01-23 21:29:42 +07:00
Ghislain Seguin
9f3c58caf6 Moved the conditional define call within a document.write 2012-01-22 23:15:59 -08:00
Ghislain Seguin
eadf804d4b define jquery module if loading jQuery < 1.7 2012-01-22 23:15:47 -08:00
Ghislain Seguin
079324cf56 Use jQuery tag inserter instead of pointing directly at jquery.js 2012-01-22 23:15:30 -08:00
Ghislain Seguin
9febd86e55 Use jQuery tag inserter instead of pointing directly at jquery.js 2012-01-22 23:14:38 -08:00
Ghislain Seguin
9ffedb700b Added a script tag inserter to be able to pick jQuery with a url param 2012-01-22 23:14:23 -08:00
Ghislain Seguin
ca50119068 Added jQuery 1.7.1 2012-01-22 23:13:50 -08:00
Ghislain Seguin
bb6ce5195e Added jQuery 1.6.4 2012-01-22 23:13:31 -08:00
Ghislain Seguin
c5dd70970c Variableized the JavaScript runner 2012-01-20 23:05:03 -08:00
toddparker
8f636e5699 Removed all instances of data-position="inline" in headers
This is a throwback to when we used to have fixed toolbars by default.
Removing to avoid confusion.
2012-01-20 12:46:42 -05:00
Ghislain Seguin
229d50e872 Remove unnecessary order! plugins 2012-01-20 09:36:04 -08:00
Ghislain Seguin
fe29c2adf7 Moved the pagecreate handler registration for controlgroups to the init IIFE so it's executed after all required widgets have registered theirs 2012-01-20 09:35:36 -08:00
toddparker
b0d261ebe0 Switched from line-height to text-indent to accessibly hide buttons. Fixes #1927
Was causing an vertical scroll bar to appear in FF9 if a button at the
end of the content div is disabled / enabled. Changed '''line-height:
999px''' to '''text-indent: -9999px'''. Thanks n0v1!
2012-01-19 17:34:57 -05:00
Josh Dean
ba9d5a47e5 Added test for issue #3141 2012-01-19 09:26:33 -08:00
Josh Dean
a23f0d3a0e Update to buttonMarkup to use appropriate data selector 2012-01-19 09:20:05 -08:00
Ghislain Seguin
e4453aceb4 Save the fixture after the enhancement, then start 2012-01-18 23:12:37 -08:00
Ghislain Seguin
0a81d6d463 Merge pull request #3441 from imjoshdean/fix-3351
Fix to #3351, dialogs reopening when attempting to close them
2012-01-18 16:09:26 -08:00
Ghislain Seguin
ed124bf237 Merge pull request #3442 from imjoshdean/master
Bug fix for #3141: Prevent inputs with unnecessary data-role button from being double enhanced
2012-01-18 15:59:41 -08:00
Ghislain Seguin
96d339eee2 Added fixed toolbar stylesheet 2012-01-18 15:09:26 -08:00
Ghislain Seguin
0c997501ac Removed @import statement, they belong in jquery.mobile.css 2012-01-18 15:08:48 -08:00
Ghislain Seguin
8fe6483e64 Removed @import for jquery.mobile.headerfooter.css 2012-01-18 15:07:31 -08:00
Ghislain Seguin
1d1b601947 Merge pull request #3451 from eddiemonge/caching
Show me the cache
2012-01-18 13:59:36 -08:00
Ghislain Seguin
1950602dcb Switched to using AMD loader and $.testHelper.reloadModule instead of $.testHelper.reloadLib 2012-01-18 11:11:35 -08:00
John Bender
2034c3607e update button markup test to use the fixed toolbar 2012-01-18 10:48:14 -08:00
scottjehl
8b20b6a50e added unit tests for new fixedtoolbar plugin 2012-01-19 00:19:36 +07:00
scottjehl
d6d606a212 fixed the slider z index to prevent conflicts with toolbar 2012-01-19 00:19:20 +07:00
scottjehl
f00e3a1164 added new fixedToolbar plugin (its matching css is already in from the previous messy merge). Docs page is updated to match the new preferred syntax (no changes in API, however) 2012-01-19 00:19:06 +07:00
scottjehl
a4b7673c12 defined touchOverflowEnabled in core 2012-01-19 00:17:40 +07:00
scottjehl
a5fd5f235e removed files for previous fixed toolbars implementation 2012-01-19 00:15:27 +07:00
scottjehl
c3b2d7963b removed internal use of the touchOverflowEnabled flag. It'll remain defined until next major release, however. Now in core. 2012-01-19 00:15:09 +07:00
scottjehl
da964300dc removed disable zoom function from init 2012-01-19 00:13:13 +07:00
John Bender
f2802bdc65 reverted fixed toolbar merge, there are some issues with the branch that need to be addressed 2012-01-17 21:46:28 -08:00
Eddie Monge
7bee003ad9 Show me the cache 2012-01-17 16:03:38 -08:00
John Bender
ca0c1a9c61 fix test errors relying on require after switching back to synchronous load 2012-01-17 15:07:55 -08:00
John Bender
90b0f9ace3 use helper method to get page data to prevent dialog failures 2012-01-17 14:39:10 -08:00
Mat Marquis
86fd94288a Fixes #3448 — Added missing . 2012-01-17 17:16:23 -05:00
Mat Marquis
806e27d675 Additional meta information (grouping/required). 2012-01-17 14:05:23 -05:00
John Bender
461469e366 fix transition tests for older versions of firefox 2012-01-17 09:11:26 -08:00
John Bender
020f4b7db6 seperate transition tests, whitespace 2012-01-17 09:11:26 -08:00
scottjehl
57338ef99c filename 2012-01-18 00:06:56 +07:00
scottjehl
5704f4c12a Moved a rule to fixedToolbar.css 2012-01-18 00:06:47 +07:00
scottjehl
5d30cdb50d Merge remote branch 'origin/master' 2012-01-18 00:06:18 +07:00
scottjehl
57af436ab6 Merge branch 'fixedtoolbar'
Conflicts:
	Makefile
	css/structure/index.php
	css/structure/jquery.mobile.core.css
	css/structure/jquery.mobile.forms.slider.css
	css/structure/jquery.mobile.transitions.fade.css
	css/themes/default/jquery.mobile.css
	css/themes/default/jquery.mobile.theme.css
	docs/pages/page-transitions.html
	js/jquery.mobile.core.js
	js/jquery.mobile.define.js
	js/jquery.mobile.docs.js
	js/jquery.mobile.fixHeaderFooter.js
	js/jquery.mobile.fixHeaderFooter.native.js
	js/jquery.mobile.forms.button.js
	js/jquery.mobile.forms.select.custom.js
	js/jquery.mobile.init.js
	js/jquery.mobile.js
	js/jquery.mobile.navigation.js
	js/jquery.mobile.support.js
	js/jquery.mobile.transition.flip.js
	js/jquery.mobile.transition.flow.js
	js/jquery.mobile.transition.js
	js/jquery.mobile.transition.pop.js
	js/jquery.mobile.transition.slide.js
	js/jquery.mobile.transition.slidedown.js
	js/jquery.mobile.transition.slideup.js
	js/jquery.mobile.transition.turn.js
	tests/jquery.testHelper.js
	tests/unit/listview/listview_core.js
	tests/unit/support/index.html
2012-01-18 00:05:45 +07:00
scottjehl
c4df92203d required core and now unit tests are passing again 2012-01-17 12:34:47 +07:00
scottjehl
8e9ad05507 updated unit test page to use require loader 2012-01-17 12:28:06 +07:00
toddparker
f53ac0da7f Speedier transition timing
Also added duration to some rules to tweak timing and make them more
reliable
2012-01-16 23:41:37 -05:00
Josh Dean
240505a433 Fix to #3351, dialogs reopening when attempting to close them 2012-01-16 18:38:58 -06:00
Josh Dean
fcbc042e84 Prevent inputs with unnecessary data-role button from being double enhanced 2012-01-16 18:23:14 -06:00
toddparker
956075cbff Faster fade in (225ms vs 300) and out (100ms vs 150) to see if this feels snappier. 2012-01-16 18:26:52 -05:00
toddparker
1f5fcda09d Moved all the custom CSS transition code into the custom file to make the transition page simpler 2012-01-16 18:17:45 -05:00
Mat Marquis
2c34b82e69 Merge pull request #3398 from garann/master
fix for duplicate/incorrect enhancement of buttons
2012-01-16 15:04:56 -08:00
Mat Marquis
bd0bdfd77e Removed fixed header/footer on transition pages that was previously causing Android to render box-shadows incorrectly/sulk in the corner; created separate page for custom transition documentation. 2012-01-16 17:51:11 -05:00
Mat Marquis
0172ff88d7 Setting .ui-mobile/.ui-mobile to height: 99.9% prevents a vertical scrollbar on dialog pages, in Firefox. 2012-01-16 16:07:37 -05:00
John Bender
f4faec7872 temprorary fix for failing checkbox radio test 2012-01-13 16:22:37 -08:00
Mat Marquis
d2fa7e214a Added meta info to jQuery Core file. 2012-01-13 17:31:35 -05:00
John Bender
5c1fc9540b guarantee the page reset in the listview tests has completed before continuing 2012-01-13 14:28:50 -08:00
Mat Marquis
877599dd6c Added meta information for download builder. 2012-01-13 17:27:58 -05:00
Mat Marquis
6e8fb254a6 Updated and DRY’d transition/3D-transform support tests for Firefox. 2012-01-13 15:49:21 -05:00
John Bender
e5d1b11328 switched init tests to new default css 2012-01-13 12:25:33 -08:00
John Bender
8debe792e0 switched to new default css with imports in select cached tests 2012-01-13 12:22:02 -08:00
John Bender
67ae0eb0bc use the first dialog in a document as a page when no pages exist Fixes #3275 2012-01-13 10:55:28 -08:00
John Bender
2f464dd865 add test to confirm that a document containing only a dialog with no pages will load the dialog as a page 2012-01-13 10:55:28 -08:00
jblas@adobe.com
24b01c7268 Added an index page for the tools directory so we can use the tools directly off the jquerymobile.com site without having to remember the name of the file for a given tool.
Note that all links in the index are rel="external" because some of the tool pages need to run JS to set paths, properly.
2012-01-13 10:38:23 -08:00
Ghislain Seguin
d04054b6fd Added @jrburke's version of reloadModule that undefines the module in RequireJS's cache so we can reload it 2012-01-13 10:04:55 -08:00
Ghislain Seguin
7c7e6f2578 Backed out AMD changes to support test suite until we figure out how to make it stable 2012-01-13 09:23:45 -08:00
Ghislain Seguin
c84107875c Fixes #3429 2012-01-13 08:12:35 -08:00
scottjehl
606bfe5f8e removed all internal usage of the touch overflow support test and enabled flag. Still leaving both defined, however. 2012-01-13 20:11:52 +07:00
scottjehl
372b61f467 added deprecated definition of touchOverflowEnabled. this will no longer be used, but we're leaving it defined for a while 2012-01-13 20:10:35 +07:00
scottjehl
d863697773 moved a non-fixed-toolbars rule back to core 2012-01-13 19:55:08 +07:00
scottjehl
e7cc245ee1 renamed files to plugin name 2012-01-13 19:53:13 +07:00
scottjehl
91cffd3e85 added the AMD enclosure 2012-01-13 17:44:07 +07:00
scottjehl
4356e578a0 bring z-index down to 1, to prevent competition with fixed toolbars 2012-01-13 17:35:48 +07:00
scottjehl
2f99c8a9b5 use existing elem instead of creating a new one. 2012-01-13 17:33:17 +07:00
Ghislain Seguin
268aab2344 Reverted to the old way (without RequireJS) until we find a way to make it work with RequireJS 2012-01-13 17:33:17 +07:00
Ghislain Seguin
7b673bda8d Hopefully made the event tests a little happier 2012-01-13 17:33:17 +07:00
Ghislain Seguin
ee51875f1a Added jQuery as a param to the define shim 2012-01-13 17:33:17 +07:00
Ghislain Seguin
038b0ee298 Move require.js to first tag so it can catch jquery module registration
Otherwise jquery may be loaded twice
2012-01-13 17:32:26 +07:00
Ghislain Seguin
1ad31620ed Added dependency on jquery.mobile.transitions 2012-01-13 17:32:26 +07:00
jrburke
befdd49643 Move require.js to first tag so it can catch jquery module registration, otherwise jquery may be loaded twice. 2012-01-13 17:32:26 +07:00
Ghislain Seguin
9b0e263248 Fixed closing pre tag 2012-01-13 17:32:26 +07:00
Ghislain Seguin
d97bc7dba1 Fixed closing p 2012-01-13 17:32:26 +07:00
Ghislain Seguin
1e0f481154 Removed stray anchor before doctype 2012-01-13 17:32:25 +07:00
Ghislain Seguin
095053ee07 Move require.js to first tag so it can catch jquery module registration
Otherwise jquery may be loaded twice
2012-01-13 17:32:25 +07:00
Ghislain Seguin
e64c02de8e Added dependency on jquery 2012-01-13 17:32:25 +07:00
Ghislain Seguin
ba1d5549d7 Added wrapper and pragmasOnSave 2012-01-13 17:31:29 +07:00
Ghislain Seguin
1a58e2ae37 Added wrapper to export as an AMD modules
removed jquery.mobile.exports
2012-01-13 17:31:29 +07:00
Ghislain Seguin
b33c4fb815 Removed unused app.build.js 2012-01-13 17:31:29 +07:00
Ghislain Seguin
ff95a53874 Added prepending of version licensed to jquery.mobile.docs.js and jquery.mobile.css 2012-01-13 17:31:29 +07:00
Mat Marquis
16c829ec26 Comment typo, made a TODO about globalizing the testing method added in the previous commit. 2012-01-13 17:31:29 +07:00
Mat Marquis
971ee484d3 Fixes a false positive for 3D transform support on Android 2.3 (possibly others). 2012-01-13 17:31:29 +07:00
Ghislain Seguin
3c74db1c03 Don't know why that r.js was there in the first place 2012-01-13 17:31:29 +07:00
Ghislain Seguin
716fe684d1 Rewrote "docs" target to take advantage of r.js' whole project optimization added build profile docs.build.js 2012-01-13 17:31:29 +07:00
Mat Marquis
f269788492 Fixes #2553 — Addresses issue where underlying checkboxes/radio buttons were not being updated when enhanced buttons were clicked. 2012-01-13 17:31:29 +07:00
Eddie Monge Jr
8801237429 add docs back to the latest build target 2012-01-13 17:31:28 +07:00
Ghislain Seguin
75e43f3d39 Finished merging branch 'out-in-transition', I had trailing commas in there instead of semi-colons 2012-01-13 17:31:28 +07:00
Ghislain Seguin
810696b2ba AMDized transition code 2012-01-13 17:30:51 +07:00
scottjehl
d4f0a024fc combined redundant syntax 2012-01-13 17:30:51 +07:00
scottjehl
d72397daa0 added the timing durations to the transitions themselves 2012-01-13 17:30:51 +07:00
scottjehl
c97d708bec fixed some typos where webkit needed to be moz 2012-01-13 17:30:50 +07:00
scottjehl
3bb06691f1 fix up dialog presentation - headers were busted 2012-01-13 17:30:50 +07:00
scottjehl
ef8332071a no bg image/gradient on ui-overlay 2012-01-13 17:30:50 +07:00
scottjehl
ce3b892c5f removed old link 2012-01-13 17:30:50 +07:00
scottjehl
8fda621da9 added missing files 2012-01-13 17:30:50 +07:00
scottjehl
1507d51c98 no longer need this class addition 2012-01-13 17:30:50 +07:00
scottjehl
fbd5e2b77a code style 2012-01-13 17:30:50 +07:00
scottjehl
967834d6b2 CSS for ui-overlay-x applies to container now too - removed double class 2012-01-13 17:30:50 +07:00
scottjehl
eac0b7d3c7 class name was body instead of overlay. Fixed 2012-01-13 17:30:49 +07:00
toddparker
6438b3423a Removed blurb about shutting off transitions over 1,000 pixels 2012-01-13 17:30:49 +07:00
toddparker
c4cbf8e7f1 Tweaked max width blurb to match the "false" default to avoid confusion 2012-01-13 17:30:49 +07:00
toddparker
a6dc847474 SetScrollBack to 10 (from 250), CSS tweaks to table 2012-01-13 17:30:49 +07:00
toddparker
a6b090d15c Re-vamp of transition button design, added page demos
Added a new page to contrast the dialog vs. page transitions. Page has
fixed toolbars and form elements to really stress the transitions.

Switched to a table design with a button for dialog and page for each
transition.
2012-01-13 17:30:49 +07:00
toddparker
97ff127a1c Turned maxTransitionWidth to false by default
Useful for testing, we may set this back to a value once we've seen
more feedback. Improved the comment a bit.
2012-01-13 17:30:49 +07:00
Mat Marquis
b52551d9a3 Updated 3d transform test to accomodate FF10. 2012-01-13 17:30:49 +07:00
Mat Marquis
733bda9a04 Removed reference to themeswitcher JS docs-wide. 2012-01-13 17:30:48 +07:00
Mat Marquis
930d69ab37 Removed themeswitcher in docs. 2012-01-13 17:30:48 +07:00
scottjehl
f7aa71d423 if there's an overlay theme, we're going to remove it from the page container. First though, check that the incoming page isn't a dialog with the same overlay theme. If so, don't remove the class, as it'll remove it for the next one too 2012-01-13 17:29:42 +07:00
scottjehl
473802e26e don't append themeswitcher to the dialogs - updated now that the dialog markup changed 2012-01-13 17:29:42 +07:00
scottjehl
7b9d2920d2 removed the sample link to the delayed-load page. no longer needed 2012-01-13 17:29:42 +07:00
scottjehl
bdc400bbeb added some unit tests for maxTransitionWidth option 2012-01-13 17:29:42 +07:00
scottjehl
54aee8cb65 disable the maxTransitionWidth during testing by default so that window width doesn't conflict with tests. 2012-01-13 17:29:42 +07:00
scottjehl
4f12d46945 By caching the href value to data and switching the href to a #, we can avoid address bar showing in iOS on every click. The click handler resets the href during its initial steps if this data is present. Note that the address bar will still likely drop down when you click the browser's back button. The only time the back button will not drop the address bar appears to be when the back button does not trigger a pushstate operation - so pushstate would either have to be disabled, or the page would have to be local (multipage), or the page would need to be a dialog (since then going back would only be a hashchange).
Still, progress.
2012-01-13 17:29:41 +07:00
scottjehl
a9cd92a978 special case for dialogs - the theme class will apply to the page container when a dialog is shown, and that class will be removed when the dialog is hidden. This allows the transition to appear to affect only the inset window portion of the dialog page. 2012-01-13 17:29:41 +07:00
Ghislain Seguin
9ffabcce33 Use css/themes/default/jquery.mobile.css instead of css/themes/default/index.php 2012-01-13 17:29:41 +07:00
Ghislain Seguin
ba6ad1d07a Have index.php serve the right file, this is deprecated and should be removed before 1.1 release 2012-01-13 17:27:57 +07:00
Ghislain Seguin
de37fbe615 Ported 148cb09132 to valencia theme 2012-01-13 17:27:57 +07:00
Todd Parker
4f5ecb06e2 Missing a 0, thanks @agcolom! 2012-01-13 17:27:57 +07:00
Ghislain Seguin
b675d0ff8d Changed source CSS file for css bundle following bac53cf151 2012-01-13 17:27:56 +07:00
Mat Marquis
b815db5f76 Updated docs’ CSS to use new @import scheme. 2012-01-13 17:27:56 +07:00
Mat Marquis
eeb93c97d1 Single CSS concat file using @import, rather than the PHP concat. 2012-01-13 17:27:56 +07:00
Anne-Gaelle Colom
ead617f79a Added clarification to the Back button, Fixes #3291 2012-01-13 17:27:56 +07:00
Ghislain Seguin
7bd9e6c3a9 Updated CSS path to default/jquery.mobile.theme.css so it doesn't pick up the index.php 2012-01-13 17:27:56 +07:00
Mat Marquis
d1663f1373 Added page turning transition. 2012-01-13 17:27:56 +07:00
John Bender
eb9e113911 fix timing issue where the pushstate plugin expected popstate generated hashchanges to happen before a given timeout 2012-01-13 17:27:56 +07:00
Mat Marquis
cb84e13148 Fixed theme CSS inclusion on docs index. 2012-01-13 17:27:55 +07:00
toddparker
39759f0dfb Removed setDefaultTransition in docs.js
This isn't needed anymore.
2012-01-13 17:27:55 +07:00
toddparker
3099ff01a2 Added docs to cover the new transitions 2012-01-13 17:27:55 +07:00
toddparker
89442ef551 Whitespace 2012-01-13 17:27:55 +07:00
Chetan K Jain
44177ba3d7 fixes #3400 2012-01-13 17:27:55 +07:00
toddparker
36632aa594 Added in drop shadow on pages in "flow" transition, adjusted timing to be longer 2012-01-13 17:27:55 +07:00
scottjehl
2600aa9eb7 rewrote the transitions test suite and handlers to account for our new sequence. The main difference is most tests are async now, and use two functions: onFromComplete and onToComplete to test conditions before each page's animationComplete handler finishes (while animation classes are still present, for instance). onToComplete must call start() so that pages stay in proper sequences, as fromComplete may not always run depending on pages in play, and it's only halfway done in the trans.Needs more tests now! 2012-01-13 17:27:55 +07:00
scottjehl
2ba3842997 removed old commented out code 2012-01-13 17:27:55 +07:00
scottjehl
56af997812 moved the hide loader call back to nav again 2012-01-13 17:27:54 +07:00
scottjehl
abe0571b73 even when stubbing out the function for testing, this $.fn needs to return this (it's relied upon for chaining in nav) 2012-01-13 17:27:54 +07:00
scottjehl
da9cbcf162 added reference to flow transition fallback 2012-01-13 17:27:54 +07:00
scottjehl
df35552be6 one too many transition js refs 2012-01-13 17:27:54 +07:00
scottjehl
f2e4aa525f added fallback transition for flow 2012-01-13 17:27:54 +07:00
scottjehl
b742b97441 better check for supporting fallback 2012-01-13 17:27:54 +07:00
scottjehl
2520307036 pulled out the 3D madness 2012-01-13 17:27:54 +07:00
scottjehl
5e862b60ba changed up the timing and origin 2012-01-13 17:27:54 +07:00
scottjehl
43b5537d5b added an experimental 3D transition, "flow" 2012-01-13 17:27:54 +07:00
scottjehl
af02f7e589 removed rotate transition from concat files and docs 2012-01-13 17:27:54 +07:00
scottjehl
9bfa7d2de1 better comment 2012-01-13 17:27:54 +07:00
scottjehl
a3e776297e implemented fallback transition definitions for non-3D-supporting browsers, for all transitions except "fade". By default, these are all set to fall back to "fade", and they'll fall back to "none" if 3D is unsupported and no fallback is defined. They can be overridden at mobileinit, like any other jQM default. 2012-01-13 17:27:53 +07:00
scottjehl
a237c5f2e1 removed the experimental rotate transition 2012-01-13 17:27:53 +07:00
scottjehl
984edf8cc7 split the slide transitions into 3 files for slide, slidedown, and slideup 2012-01-13 17:27:53 +07:00
scottjehl
dbd03bf0df removed fallback transition CSS for non-3D browsers 2012-01-13 17:27:53 +07:00
Mat Marquis
2f088cb2e3 Updated page transition scripting/support test to allow for Firefox. 2012-01-13 17:27:53 +07:00
scottjehl
57c6b968cd updated docs to describe the maxTransitionWidth option. 2012-01-13 17:27:53 +07:00
scottjehl
518e3ce8cd Added a new core option called maxTransitionWidth, which defaults to 1000. Accepts any number or false value. If it's not false, the handler will use a "none" transition when the window width is wider than the specified value. This is useful because transitions get very wonky on wider screens. 2012-01-13 17:27:53 +07:00
scottjehl
a0c67fa026 updated the rotate transition to move the page out of view 2012-01-13 17:27:53 +07:00
scottjehl
58d285a4a7 updated docs page to describe the new transition handler and how it works. 2012-01-13 17:27:53 +07:00
scottjehl
f40caba625 removed "none" transition handler from Nav.js. Updated the new out-in transition handler so that it supports "none" transitions in addition to our new default css3 animation sequence. The new transition handler is set as the default, and available publicly as $.mobile.defaultTransitionHandler and $.mobile.transitionHandlers["default"]. 2012-01-13 17:27:53 +07:00
scottjehl
91709b4167 removed z-index rules, no longer needed 2012-01-13 17:27:53 +07:00
scottjehl
1f7d8ac7b6 z index not needed 2012-01-13 17:27:53 +07:00
scottjehl
34427cfb9d brought back a full flip transition for 3d supporting browsers, using 90deg pairs. Needs further testing 2012-01-13 17:27:52 +07:00
scottjehl
f5ffe7540d whitespace 2012-01-13 17:27:52 +07:00
scottjehl
5bf6728a65 removed or moved opacity rules for simpler cascade 2012-01-13 17:27:52 +07:00
scottjehl
93c1efe143 removed z-index rules, as pages no longer overlap in transitions 2012-01-13 17:27:52 +07:00
toddparker
21c53b646f Moved non-3D rules to the bottom to hide the ugliness
Rule order doesn't seem to matter because of specificity.
2012-01-13 17:27:52 +07:00
toddparker
7dcce519f7 First cut at making pop work for non-3D browsers. Still rough, but works.
I had to create a new set of basic keyframes for non-3D because we had
opacity baked into our keyframes. As an upside, I could tweak the scale
factor differently between Android (0 > 1) and 3D (0.8 > 1).
2012-01-13 17:27:52 +07:00
toddparker
33b8cb67e0 Slide transition improvements
- Switched from opacity to outline for nofade
- Re-vamped the non-3D slides to eliminate blinking
2012-01-13 17:27:52 +07:00
toddparker
c152cc16d9 A few more slide tweaks, still blinky or skips frames in unpredictable ways 2012-01-13 17:27:52 +07:00
toddparker
0675e15233 Added "nofade" transition, slide/up/down for non-3D devices
- Introduced a class (nofade) which is similar to dontmove for
overwriting the fade in/out classes. We're not scoping all classes to
with supported or not like in flip so we need to negate the fade rules
with a new animation
- Added a selector block at the top to lengthen all slide animations to
300ms to reduce blinkiness on Android. Shorter caused animations to
break out of sequence. Needs refinement on timing.
- Added rules to apply the "nofade" classes to the replace the fade
in/out animations for non-3D browsers. Had to set the duration equal to
the slide animations to keep it all in sync.
2012-01-13 17:27:52 +07:00
toddparker
7e9203bcfe Re-org file, scoped all flip rules to the 3d supported class to avoid android seeing these
Cleaned up unsupported rules, added to top of file - needed both fade
in and out rules
2012-01-13 17:27:52 +07:00
scottjehl
e0a630103b updated description of what happens with flip on non 3d 2012-01-13 17:27:52 +07:00
scottjehl
af7a8355dc added a rotate transition, just for fun. 2012-01-13 17:27:52 +07:00
scottjehl
d6a44fcce9 flipped the default timing for in and out - they were backwards 2012-01-13 17:27:52 +07:00
scottjehl
43f113dd78 removed old comment 2012-01-13 17:27:51 +07:00
scottjehl
73ea93df11 removed flip in rules, no longer in use 2012-01-13 17:27:51 +07:00
scottjehl
5d3468b5cd cleaned these up so only the right rules are in the right files 2012-01-13 17:27:51 +07:00
scottjehl
dcd1fef137 whitespace 2012-01-13 17:27:51 +07:00
scottjehl
5776196fea moved ui-viewport-transitioning rules into here 2012-01-13 17:27:51 +07:00
scottjehl
a1b2d9433e updated comment to credit jqTouch for original transitions ideas, though these are now quite different 2012-01-13 17:27:51 +07:00
scottjehl
bdcaa0ab23 missed slide in the new transitions file split out 2012-01-13 17:27:51 +07:00
scottjehl
a7dafba9fd updated make and concat files for new transition handler 2012-01-13 17:27:51 +07:00
scottjehl
76042018ff renamed the new transition handler transition.js 2012-01-13 17:27:51 +07:00
scottjehl
5a4f16d08a split transition CSS into separate files. 2012-01-13 17:27:51 +07:00
scottjehl
296b739521 tweaked scale and duration of some flip and pop transitions 2012-01-13 17:27:51 +07:00
scottjehl
a6b23b15be dontmove is no longer in use 2012-01-13 17:27:50 +07:00
scottjehl
76664aebc1 not needed, as flip already uses fade now in the "in" transition. 2012-01-13 17:27:50 +07:00
scottjehl
86e059465a lowercased 2012-01-13 17:27:50 +07:00
scottjehl
c2733fc8e7 for non-3d browsers, use fade instead of flip 2012-01-13 17:27:50 +07:00
scottjehl
49724f94b9 woops. add it whether it's supported or not :) 2012-01-13 17:27:50 +07:00
scottjehl
cf85b4229a add class for 3d transform support 2012-01-13 17:27:50 +07:00
scottjehl
9470239581 fixed a typo in the query 2012-01-13 17:27:50 +07:00
scottjehl
1e8a7c520e Added a feature test for css 3d transforms, which will allow us to conditionally apply the flip transition (AKA cartwheel, where unsupported). 2012-01-13 17:27:50 +07:00
toddparker
d231dd71cc Updated -moz out to match 2012-01-13 17:27:50 +07:00
toddparker
d39fb83ec4 Broke out the global and in and out transition rules for asymmetric timing
Also added duplicate buttons at the booth to test scroll position
smoothness.
2012-01-13 17:27:50 +07:00
scottjehl
920738c8b9 rolled that last one back. 2012-01-13 17:27:50 +07:00
scottjehl
dbddd9dbb6 a little faster on the fades. needs cleanup later 2012-01-13 17:27:50 +07:00
scottjehl
1532f509c6 removed spin because we aren't using it no mo 2012-01-13 17:27:50 +07:00
scottjehl
b6145b5a1a updated the slide and flip handlers to use combo fade/slide/flip transitions 2012-01-13 17:27:49 +07:00
scottjehl
1e7e65a6b8 fixed up the pop out transition for outin handler 2012-01-13 17:27:49 +07:00
scottjehl
3c3448d553 added new filename to make and combiner files 2012-01-13 17:27:49 +07:00
scottjehl
c3d2e70802 changed filename 2012-01-13 17:27:49 +07:00
scottjehl
b203c266e4 changed plugin name to outInTransitionHandler, as the sequence has nothing to do with "fade" specifically. 2012-01-13 17:27:49 +07:00
scottjehl
b7838a8a62 brought back the height settings, and fixed a typo between addClass and removeClass 2012-01-13 17:27:49 +07:00
scottjehl
edfea0ae22 don't use pre transitioning class, or viewport class for this transition handler. Instead, activate page early, then scroll to desired spot, and transition in. In order to make this work, I had to add an argument to the end of the promise, letting navigation know that the page is already focused, so don't do it over again. This should make for a smooth transition from point-a to point-b, without a visible scroll jump. Needs testing! 2012-01-13 17:27:49 +07:00
scottjehl
2ee3dd2a5e add back viewport transitioning class 2012-01-13 17:27:49 +07:00
scottjehl
b698d55ca1 don't scroll at the end. scroll halfway through instead 2012-01-13 17:27:49 +07:00
scottjehl
126846070d an attempt at simplification. not there yet... 2012-01-13 17:27:49 +07:00
scottjehl
554ef6da53 removed unused image 2012-01-13 17:27:49 +07:00
Todd Parker
0327298ca1 Loader design tweaks
Removed the spin class from the loader container, tweaked opacity and
added slight glow to bottom of loader, increased padding. Downloaded a
fresh loader image.
2012-01-13 17:27:49 +07:00
scottjehl
6e9da8e90f added fade out in transition handler 2012-01-13 17:27:48 +07:00
scottjehl
a8416daa06 changed filename 2012-01-13 17:27:48 +07:00
scottjehl
4d6f341a57 changed plugin name to outInTransitionHandler, as the sequence has nothing to do with "fade" specifically. 2012-01-13 17:27:48 +07:00
Todd Parker
8221c3e98e Add -moz prefixes for initial cut at Firefox transition support 2012-01-13 17:27:48 +07:00
Todd Parker
df64a22e3e Shorter fade out (150ms) and fade in (300ms) for speedier transitions. 2012-01-13 17:27:48 +07:00
scottjehl
4bc2bb8616 brought back the height settings, and fixed a typo between addClass and removeClass 2012-01-13 17:27:48 +07:00
Todd Parker
ff618ff5e1 Faster spinner animation
Was 4ms per frame, now 3ms.
2012-01-13 17:27:48 +07:00
scottjehl
d68d8ff53a don't use pre transitioning class, or viewport class for this transition handler. Instead, activate page early, then scroll to desired spot, and transition in. In order to make this work, I had to add an argument to the end of the promise, letting navigation know that the page is already focused, so don't do it over again. This should make for a smooth transition from point-a to point-b, without a visible scroll jump. Needs testing! 2012-01-13 17:27:48 +07:00
scottjehl
7141ad8b6f add back viewport transitioning class 2012-01-13 17:27:48 +07:00
scottjehl
5217ad7df3 don't scroll at the end. scroll halfway through instead 2012-01-13 17:27:03 +07:00
scottjehl
cde86da912 position loader fixed by default, then check if it's positioned correctly and if not, switch to an absolute positioned scheme, with updates on scroll (or scrollstop in iOS 4). 2012-01-13 17:27:03 +07:00
Todd Parker
ad2f977ca8 All new loader hotness
Created a new loader that has a circle baked into the animated gif so
there's less of a chance of artifacts in bad browsers. The edge is
chunky because it's a gif but then added 1px of padding to the loader
parent and that the border-radius can smooth this out in iOS. Actually
looks sharp in Android too because of interaction effects between these
rounded corners. Loader spin is faster and more compressed (16 colors).
Removed the body-a class on the spinner since we're just setting this to
flat black = one less gradient to render.
2012-01-13 17:27:02 +07:00
scottjehl
ab32d0850b an attempt at simplification. not there yet... 2012-01-13 17:27:02 +07:00
scottjehl
5da1f11c4b default transition type goes to fade 2012-01-13 17:27:02 +07:00
scottjehl
4bb63a315c for now, removed any difference between framework transition defaults and the docs. We might want to bring this back and recommend it though - I'm not sure how easy it'll be to bring it in standard with the ability to configure. 2012-01-13 17:27:02 +07:00
scottjehl
1e6e411278 removed unused image 2012-01-13 17:27:02 +07:00
Todd Parker
609397dda4 More loader tweaks 2012-01-13 17:27:02 +07:00
Todd Parker
7c160b77af Loader design tweaks
Removed the spin class from the loader container, tweaked opacity and
added slight glow to bottom of loader, increased padding. Downloaded a
fresh loader image.
2012-01-13 17:27:02 +07:00
scottjehl
1435e0b49e added loader test page for local testing 2012-01-13 17:27:02 +07:00
scottjehl
fe5ef1aea9 gif loader style updates 2012-01-13 17:27:02 +07:00
scottjehl
88914e01a4 gif loader styles 2012-01-13 17:27:01 +07:00
scottjehl
b46b4220dc removed code to set css3transitionhandler as the default 2012-01-13 17:27:01 +07:00
scottjehl
f50e029bac hard-set opacity for "out" to prevent blinks 2012-01-13 17:27:01 +07:00
scottjehl
e830f6221b added fade out in transition handler file 2012-01-13 17:27:01 +07:00
scottjehl
eda70bd3b3 added fade out in transition handler 2012-01-13 17:27:01 +07:00
scottjehl
1a78cc86c3 gif-based loader animation 2012-01-13 17:27:01 +07:00
scottjehl
6a28fd4b13 removed commented out line 2012-01-13 17:27:01 +07:00
scottjehl
7a8821fb71 Much of the scripting in nav.js's transitionPages function was tied to the animation sequence for our css3transitionhandler. For example, the order was, scroll to top, run transitions, then scroll to the remembered location of the new page (there's more involved, but that's the gist of it). If we want to expand beyond this sequence, much of that scripting needs to move to the css3transitionhandler itself, and also to our "none" transition handler, which comes with nav model.
This commit moves all that logic into the transition handlers, and should provide a better starting point for adding different transition sequences, such as fade-out, scroll, fade-in.

In the process of making this change, the reFocus function was made public as $.mobile.focusPage.
2012-01-13 17:27:01 +07:00
Ghislain Seguin
70c4f9f0a5 Fixes #3394 - jquery.mobile.init was not being included in the built bundle 2012-01-13 17:26:21 +07:00
Ghislain Seguin
22ec6cf3ed Fixed wrong line break 2012-01-13 17:26:21 +07:00
Mat Marquis
42536ecafe Added download builder metadata. 2012-01-13 17:26:21 +07:00
John Bender
6b0d9dd2d0 conceding defeat on determining the load order issue that's causing the test failure 2012-01-13 17:25:56 +07:00
John Bender
4650f57222 remove duplicate test run 2012-01-13 17:25:56 +07:00
John Bender
21394cb5e5 check to make sure cached test page appears 2012-01-13 17:25:56 +07:00
jblas@adobe.com
c1a61aa6a8 Corrected the title for the functional test. 2012-01-13 17:25:56 +07:00
jblas@adobe.com
d4c7123c85 Fix for issue #2933 - get_orientation() and hence getScreenHeight() doesn't work on some devices
It seems that some device/browser vendors use window.orientation values 0 and 180 to denote the "default" orientation. For iOS devices, and most other smart-phones tested, the default orientation is always "portrait", but in some Android and RIM based tablets, the default orientation is "landscape".

- Modified the orientationchange plugin so that it injects a landscape orientation media query into the document to figure out what the initial orientation is, it then makes adjustments to a portrait_map if necessary, so that we can properly decode the window.orientation value whenever get_orientation() is called.
2012-01-13 17:25:55 +07:00
John Bender
bf39926d0d enforce test order ... dying a little inside 2012-01-13 17:25:55 +07:00
Eddie Monge Jr
01d1ce2342 increase java cache size 2012-01-13 17:25:55 +07:00
John Bender
384e8979f3 remove submodule update note 2012-01-13 17:25:55 +07:00
John Bender
fdcfd54172 vendor r.js and require.js 2012-01-13 17:25:55 +07:00
John Bender
8b08b65676 remove requirejs and r.js submodules in favor of vendoring the libraries 2012-01-13 17:25:55 +07:00
John Bender
5365928b40 add submodule update/init to readme 2012-01-13 17:25:55 +07:00
John Bender
6688882ef2 remove define stub, it's now stubbed through including jquery.mobile.define.js in js/index.php 2012-01-13 17:25:54 +07:00
John Bender
0c006605d1 obviate the need for stub definition of define when using vanilla /js require 2012-01-13 17:25:54 +07:00
John Bender
b3d1b49008 update functional tests to use requirejs 2012-01-13 17:25:54 +07:00
John Bender
4ca0e94b73 add ui-mobile-rendering to docs to temprarily prevent fouc with async load. @gseguin to address with jqm-docs.js change 2012-01-13 17:25:54 +07:00
John Bender
b3048e4be5 switch to explicit false check to avoid undefined issues 2012-01-13 17:25:54 +07:00
John Bender
921ab705f5 fix async loading select test issue where keepnative isn't defined in time for the leading test 2012-01-13 17:25:54 +07:00
John Bender
b3c4b8f939 note about fouc 2012-01-13 17:25:54 +07:00
John Bender
bb240a55a6 whitespace in readme 2012-01-13 17:25:54 +07:00
John Bender
67967318d4 added note about local server support for development 2012-01-13 17:25:53 +07:00
John Bender
799c0b6b5b ensure defaultTransitionHandler is defined after the navigation has been loaded 2012-01-13 17:25:53 +07:00
John Bender
fe32fd5b17 ensure defaultTransitionHandler is defined after the navigation has been loaded 2012-01-13 17:25:53 +07:00
John Bender
d347be825c move to reloadModule as it returns a deferred 2012-01-13 17:25:53 +07:00
John Bender
c50310bfab make sure the slider core runs before init to set keepNative properly 2012-01-13 17:25:53 +07:00
John Bender
3890539f8f update select cached tests to use async 2012-01-13 17:25:53 +07:00
John Bender
9747f2ce87 update listview pushstate test to use async 2012-01-13 17:25:53 +07:00
John Bender
5a6c8b145e init test order and other small fixes 2012-01-13 17:25:53 +07:00
John Bender
a85a5bc537 fixed listview tests async loading 2012-01-13 17:25:52 +07:00
Mat Marquis
6148cf9229 Updating select menu tests to match recent dialog markup changes. 2012-01-13 17:25:52 +07:00
John Bender
79c7590660 stub define in event tests 2012-01-13 17:25:52 +07:00
John Bender
6795eb37c9 stubbed define in nav tests 2012-01-13 17:25:52 +07:00
Mat Marquis
3d62715b3c Fixing navigation bug caused by dialog markup changes. 2012-01-13 17:25:52 +07:00
John Bender
7ba4547aa3 fix url checks to use search where appropriate 2012-01-13 17:25:52 +07:00
Mat Marquis
00b7c85b4f Applied top margin to dialog headers rather than .ui-dialog, as the latter was breaking content-only dialogs meant to align with the top of the viewport. 2012-01-13 17:25:52 +07:00
Mat Marquis
20b0434207 Moved .ui-dialog to element wrapping dialog header/content/footer, switched overlay non-theming class to .ui-dialog-page. 2012-01-13 17:25:52 +07:00
Mat Marquis
eb9968c2b6 Partial dialog refactor, in progress. 2012-01-13 17:25:52 +07:00
John Bender
57b1b23373 update nav base tests to use new push state helper 2012-01-13 17:25:51 +07:00
Frederik Lassen
de5ca04a74 Optimized the images even more. (Using ScriptPNG) 2012-01-13 17:25:51 +07:00
Frederik Lassen
b9853108b8 Corrected tiny typo. 2012-01-13 17:25:51 +07:00
Chetan K Jain
a95419ff73 data-id is not used in Pages and Dialogs 2012-01-13 17:25:51 +07:00
Chetan K Jain
3d8e887734 Update docs/about/getting-started.html 2012-01-13 17:25:51 +07:00
Chetan K Jain
5c7c1d875d Update docs/pages/page-anatomy.html 2012-01-13 17:25:51 +07:00
Mat Marquis
6e5d454880 Ensured the hover delay only applies to touch devices, logic that was mysteriously absent from my previous commit. 2012-01-13 17:25:51 +07:00
Mat Marquis
00b328b6cb Added slight delay before application of hover/down classes on touch devices, to prevent unintentional hover-ish behavior when the user intent is to scroll. 2012-01-13 17:25:50 +07:00
Anne-Gaelle Colom
ef56188c71 added navbar 2012-01-13 17:25:50 +07:00
zachleat
ebcf7a62c3 This might be a little overzealous, but I think the outline around the entire flip switch looks better than the clipped handle outline. 2012-01-13 17:25:50 +07:00
zachleat
e19ee8d953 Fix for browsers with JavaScript but without box-shadow enabled. outline: 0; outline-width: 2px; doesn't work, requires an outline-style to be set. 2012-01-13 17:25:50 +07:00
zachleat
3ca5a8a85e Per @toddparker's comment, added boxshadow to link buttons. Also changed focus class on sliders to add to the handle, while excluding the toggle switch. 2012-01-13 17:25:50 +07:00
zachleat
0c722fb8f7 Nerf, you guys use tabs. 2012-01-13 17:25:50 +07:00
zachleat
5cc81797ba First stab at more consistent focus classes on form elements, using .ui-focus. Links will still contain outline property. 2012-01-13 17:25:50 +07:00
Jake Boone
5f4c0a4914 Remove ui-btn-down class on scrollstart 2012-01-13 17:25:50 +07:00
Ghislain Seguin
6f61f4e7fc Fixed checkboxradio tests 2012-01-13 17:25:49 +07:00
Anne-Gaelle Colom
4b92928e69 Update docs/forms/switch/options.html 2012-01-13 17:25:49 +07:00
Anne-Gaelle Colom
8c2a69c9fa Update docs/forms/slider/options.html 2012-01-13 17:25:49 +07:00
Garann Means
0201319c74 Corrected fix for #3262 so it doesn't prevent buttons filling available space 2012-01-13 17:25:49 +07:00
Ghislain Seguin
26f2e492b8 Forgot to add rhino, there it is 2012-01-13 17:25:49 +07:00
Ghislain Seguin
e0c3fb26db Renamed .tmp temp file to .compiled 2012-01-13 17:25:49 +07:00
Ghislain Seguin
2ec6eaf35b Got rid of node dependency 2012-01-13 17:25:48 +07:00
Garann Means
226384d872 Fix for #3262 - set max-width for header/footer buttons and title
Text-overflow: ellipsis already set.
2012-01-13 17:25:48 +07:00
Ghislain Seguin
61595dd401 Reverted unwanted changes 2012-01-13 17:25:48 +07:00
Ghislain Seguin
86c611e436 Added require.js 1.0.3 as a submodule 2012-01-13 17:25:48 +07:00
Ghislain Seguin
b75bb594b4 Added r.js as a submodule
Removed almond
2012-01-13 17:25:48 +07:00
Gabriel Schulhof
ee7d94068b [custom select] Use $(window).width() and not window.innerWidth - same for height 2012-01-13 17:25:47 +07:00
Tyler Benziger
fd6b776447 gradient syntax fix 2012-01-13 17:25:47 +07:00
Tyler Benziger
8520cc015c gradient syntax fix 2012-01-13 17:25:47 +07:00
Ghislain Seguin
53a57b6d24 AMDized 2012-01-13 17:25:47 +07:00
Ghislain Seguin
3cf6c65b88 Changed $.extend to be non destructive 2012-01-13 17:25:47 +07:00
Ghislain Seguin
043a5164c9 Added $.testHelper.deferredSequence
Renamed reloadLib to reloadModule
Resuscitated $.testHelper.reloadLib
2012-01-13 17:25:47 +07:00
Ghislain Seguin
02baaf67f7 Expose jquery.mobile as an AMD module if running in an AMD env 2012-01-13 17:25:46 +07:00
Jake Boone
c31e7173d2 Move back button configuration options to Page section 2012-01-13 17:25:46 +07:00
Ghislain Seguin
6c874e2448 Remove .js suffix from libName 2012-01-13 17:25:46 +07:00
Ghislain Seguin
44b5951f00 Use new testHelper.reloadLib 2012-01-13 17:25:46 +07:00
Ghislain Seguin
94587acda2 Changed reloadLib to use requirejs' context. That process being async it now returns a $.Deferred 2012-01-13 17:25:46 +07:00
Ghislain Seguin
1e965041c1 Remove .js suffix from libName 2012-01-13 17:25:46 +07:00
Ghislain Seguin
f8dd89b269 AMDized 2012-01-13 17:25:46 +07:00
Ghislain Seguin
09c709ef0f Added dep on buttonMarkup 2012-01-13 17:25:46 +07:00
Jake Boone
bd1fa8a67f Use shorthand notation for margin 2012-01-13 17:25:45 +07:00
Tyler Benziger
09c0b6214b Gradient syntax fixed 2012-01-13 17:25:45 +07:00
toddparker
f0744317c0 More tweaks to the sliders to fit well at 320px 2012-01-13 17:25:45 +07:00
toddparker
0c0d7e4e6d Tweaked slider to be a bit wider
Checked to ensure this fits in inset lists
2012-01-13 17:24:55 +07:00
toddparker
ba1a6f74a9 Tightened up vertical spacing for form field containers at smartphone widths
There was more spacing between elements than needed, this cleans it up.
2012-01-13 17:24:55 +07:00
toddparker
201d3062be Tweaked fieldset border rules so field contains work with this element. Fixes #2448 2012-01-13 17:24:55 +07:00
Ghislain Seguin
ef7966cec4 AMDized 2012-01-13 17:24:55 +07:00
Ghislain Seguin
c7b81d3e59 Named the module for testability 2012-01-13 17:24:55 +07:00
Ghislain Seguin
6d6a4114f7 Minimized imported resources
Added css links
2012-01-13 17:24:55 +07:00
Ghislain Seguin
2bc4c46f4d Fixed test name 2012-01-13 17:24:55 +07:00
Ghislain Seguin
f945ca1564 AMDized 2012-01-13 17:24:55 +07:00
Ghislain Seguin
6d5996063f Trailing comma 2012-01-13 17:24:54 +07:00
Ghislain Seguin
cc9b7cf72f Minimized imported resources 2012-01-13 17:24:54 +07:00
Ghislain Seguin
c96c43a439 AMDized 2012-01-13 17:24:54 +07:00
Ghislain Seguin
adda6b7638 Added dep on page and page.sections (for nested lists) 2012-01-13 17:24:54 +07:00
Ghislain Seguin
e27ddb8c4a Added dep on textinput 2012-01-13 17:24:54 +07:00
Ghislain Seguin
3d96b0281c AMDized 2012-01-13 17:24:54 +07:00
Ghislain Seguin
383c38f316 AMDized 2012-01-13 17:24:54 +07:00
Ghislain Seguin
0b22de3a70 AMDized 2012-01-13 17:24:54 +07:00
Ghislain Seguin
0daa382a38 AMDized 2012-01-13 17:24:54 +07:00
Ghislain Seguin
fbab839995 Added dep on grid 2012-01-13 17:24:54 +07:00
Ghislain Seguin
e6d3dbc31f Use .js convention provided by requirejs 2012-01-13 17:24:54 +07:00
Ghislain Seguin
f727d57fac AMDized 2012-01-13 17:24:53 +07:00
Ghislain Seguin
1187352f03 Make sure controlGroup is loaded after checkboxradio (via order plugin) 2012-01-13 17:24:53 +07:00
John Bender
df26a446bd remove base url juggling in favore of .js convention provided by requirejs 2012-01-13 17:24:53 +07:00
John Bender
c50b33f89f update dialog tests to use amd 2012-01-13 17:24:53 +07:00
John Bender
a8aa89c470 upgrade degrade inputs tests to use amd, whitespace 2012-01-13 17:24:53 +07:00
John Bender
6af53d6409 update core tests to use amd, fix misleading test 2012-01-13 17:24:53 +07:00
John Bender
7e2ba55323 update control group tests to use amd 2012-01-13 17:24:53 +07:00
John Bender
86c050c2a0 remove unecessary collapsible test dep 2012-01-13 17:24:53 +07:00
John Bender
7c50bf975c update collapsible tests to use amd 2012-01-13 17:24:53 +07:00
John Bender
3580f2cc70 update checkboxradio tests to use amd 2012-01-13 17:24:52 +07:00
John Bender
eb2cb510ac update buttonMarkup tests to amd 2012-01-13 17:24:52 +07:00
John Bender
5d2dd81e48 update button core tests to amd 2012-01-13 17:24:52 +07:00
John Bender
a4c5d24ce8 added note to test helper 2012-01-13 17:24:52 +07:00
John Bender
b6f18635b3 page test moved to async load, fix for bad assumption in return false test 2012-01-13 17:24:52 +07:00
John Bender
0e9868465a more flexible async loading helper, converted select test 2012-01-13 17:24:52 +07:00
John Bender
797378b1af fix bug to allow pagebeforecreate bindings to prevent enhancement 2012-01-13 17:24:51 +07:00
John Bender
9c87aa48a4 whitespace in page core tests 2012-01-13 17:24:51 +07:00
John Bender
399026e225 alter select index tests to use async load 2012-01-13 17:24:51 +07:00
John Bender
34dcbe2aa7 async test library load helper 2012-01-13 17:24:51 +07:00
John Bender
66a818223a added page and page section dependencies to custom select 2012-01-13 17:24:51 +07:00
John Bender
526ee3453b added dialog to custom select deps 2012-01-13 17:24:51 +07:00
John Bender
ac6eb10913 alpha order deps 2012-01-13 17:24:51 +07:00
John Bender
7dc692dc3a add transition dep to navigation 2012-01-13 17:24:51 +07:00
John Bender
7a4c507e96 add page and listview dep to custom select 2012-01-13 17:24:51 +07:00
Ghislain Seguin
517c9588ca Added dep on "jquery.mobile.buttonMarkup" wherever needed 2012-01-13 17:24:50 +07:00
Ghislain Seguin
e419648b44 Added temporary dependency on mobile.widget 2012-01-13 17:24:50 +07:00
jblas@adobe.com
7aa80fd087 Fix for issue #3305 - Confusing documentation about dataUrl in changePage
- Changed 'data-url' to 'dataUrl' to match actual implementation.
2012-01-13 17:24:50 +07:00
Gabriele Rabbiosi
b0fb85a38d Substituted wrong semicolon with comma inside a list of variable
declaration
2012-01-13 17:24:50 +07:00
John Bender
18f4d3d5e0 fix improperly camel cased module references 2012-01-13 17:24:50 +07:00
Ghislain Seguin
fdc51cfdfb Fixed casing 2012-01-13 17:24:50 +07:00
Ghislain Seguin
c3ab146887 Added handling of pragmasOnSave from command line 2012-01-13 17:24:50 +07:00
Ghislain Seguin
fa86da6856 Reverted unwanted changes 2012-01-13 17:24:50 +07:00
Ghislain Seguin
d6993cd209 Re-added r.js & require.js 2012-01-13 17:24:50 +07:00
Ghislain Seguin
c6e49f7b07 Discovered r.js' pragmas use them instead of the hacky solution provided by amd-stripper.js 2012-01-13 17:24:49 +07:00
Ghislain Seguin
f3e3121166 Specified more dependencies 2012-01-13 17:23:19 +07:00
Ghislain Seguin
6f13267af7 Moved r.js and require.js to external 2012-01-13 17:21:45 +07:00
Ghislain Seguin
5299b7ef44 Use original r.js, externalized stripping of define/require to amd-stripper.js 2012-01-13 17:21:45 +07:00
Ghislain Seguin
43de7d9c32 Added amd-stripper.js 2012-01-13 17:21:45 +07:00
Ghislain Seguin
55ded76442 Re-introduced structure CSS files
Use YUICompressor for CSS compression as it is more efficient than r.js
2012-01-13 17:21:45 +07:00
Ghislain Seguin
0ed067ac0e Changed js and css targets to use r.js and r-jqm.js 2012-01-13 17:21:44 +07:00
Ghislain Seguin
6efb8eb9b2 Updated AMD stripping regexp 2012-01-13 17:21:44 +07:00
Ghislain Seguin
c6b6dff530 Not much, really 2012-01-13 17:21:27 +07:00
Ghislain Seguin
9a4ec07b62 Renamed r.js to r-jqm.js 2012-01-13 17:21:26 +07:00
Ghislain Seguin
c9cdf7f984 Fixed deps 2012-01-13 17:21:26 +07:00
Ghislain Seguin
5d479d9252 Fixed deps 2012-01-13 17:21:26 +07:00
Ghislain Seguin
fe537db42d use define instead of require
use order plugin for init (not ideal)
2012-01-13 17:21:26 +07:00
Ghislain Seguin
dbe10647d2 Actually need order! plugin for controlgroup at least 2012-01-13 17:21:26 +07:00
Ghislain Seguin
e058f75923 Up'd to 1.0.2 2012-01-13 17:21:26 +07:00
Ghislain Seguin
46ea93cea1 Added dep on jquery.mobile.core 2012-01-13 17:20:44 +07:00
Ghislain Seguin
eed95e982d removeClass( "ui-link" ) on first anchor in the li 2012-01-13 17:20:44 +07:00
Ghislain Seguin
88d5f0f89a Removed dep on jqm.core 2012-01-13 17:20:44 +07:00
Ghislain Seguin
b0ef5af05f Removed submodules 2012-01-13 17:20:44 +07:00
Ghislain Seguin
f8cf21438a Removed ref to order
Added dir exclusion regex for build
2012-01-13 17:20:44 +07:00
Ghislain Seguin
38585bc377 Not using order after all 2012-01-13 17:20:44 +07:00
Ghislain Seguin
0b99ba6d5d Updated script tags to use RequireJS to load the jQM 2012-01-13 17:20:44 +07:00
Ghislain Seguin
4a1f43dbba Moved $.support.mediaquery to jquery.mobile.media
Set dependencies
2012-01-13 17:20:43 +07:00
Ghislain Seguin
dbedf643d3 Specified dependencies 2012-01-13 17:20:43 +07:00
Ghislain Seguin
a39240924d Added collapsibleSet 2012-01-13 17:20:43 +07:00
Ghislain Seguin
b6e6febb76 Added dep on vmouse 2012-01-13 17:20:43 +07:00
Ghislain Seguin
65cdb13bc7 Added dep on jquery.mobile.buttonMarkup 2012-01-13 17:20:25 +07:00
Ghislain Seguin
17e298d5c1 Added r.js 2012-01-13 17:20:25 +07:00
Ghislain Seguin
323a52c195 Whitespace change 2012-01-13 17:20:25 +07:00
Ghislain Seguin
135642954f Modified shimming condition 2012-01-13 17:20:25 +07:00
Ghislain Seguin
7fd83103f2 Added almond.js 2012-01-13 17:20:25 +07:00
Ghislain Seguin
3f56ebf6ca Added RequireJS 1.0 2012-01-13 17:20:25 +07:00
Ghislain Seguin
a76b08de7d Removed 2012-01-13 17:20:25 +07:00
Ghislain Seguin
eb78d79937 Added module for docs 2012-01-13 17:20:24 +07:00
Ghislain Seguin
a4fc1f6f9d Added jQuery AMD shim to support jQuery < 1.7 2012-01-13 17:20:24 +07:00
Ghislain Seguin
d280d6ac9d Fixed path to almond.js
Excluded order plugin
2012-01-13 17:20:24 +07:00
Ghislain Seguin
49a42f376c Added @import to replace index.php 2012-01-13 17:20:24 +07:00
Ghislain Seguin
71fcd289fe stop using require-jquery 2012-01-13 17:20:24 +07:00
Ghislain Seguin
a95e7957e2 added order plugin to the baseUrl directory 2012-01-13 17:20:24 +07:00
Ghislain Seguin
07b85a1e34 AMDized 2012-01-13 17:20:24 +07:00
Ghislain Seguin
f01154d762 Moved to AMD 2012-01-13 17:20:24 +07:00
Ghislain Seguin
ad1653c7f4 Use @imports instead of the PHP combine, r.js will take care of optimization 2012-01-13 17:20:24 +07:00
Ghislain Seguin
1b45da3955 AMD build file 2012-01-13 17:20:23 +07:00
Ghislain Seguin
c771ef1f6b Main AMD module 2012-01-13 17:20:23 +07:00
Ghislain Seguin
7c04014394 Added r.js v1.0 2012-01-13 17:20:23 +07:00
Ghislain Seguin
db632f9152 Added requirejs v1.0 2012-01-13 17:20:23 +07:00
Ghislain Seguin
1ca9fb6b01 AMDized 2012-01-13 17:20:23 +07:00
Ghislain Seguin
3f1543a451 AMDized 2012-01-13 17:20:23 +07:00
Ghislain Seguin
e9cd5c7e3f Added almond as a submodule 2012-01-13 17:19:33 +07:00
scottjehl
262b7dc62b Merge remote branch 'origin/master' 2012-01-13 14:48:21 +07:00
scottjehl
845dc1ef73 use existing elem instead of creating a new one. 2012-01-13 14:46:35 +07:00
Ghislain Seguin
8bbc9f8489 Reverted to the old way (without RequireJS) until we find a way to make it work with RequireJS 2012-01-12 23:20:55 -08:00
Ghislain Seguin
e6fb1e7c8e Hopefully made the event tests a little happier 2012-01-12 23:19:58 -08:00
Ghislain Seguin
bc6cfbfb53 Added jQuery as a param to the define shim 2012-01-12 23:19:36 -08:00
Ghislain Seguin
323601ad25 Back by popular demand (also needed by event tests) 2012-01-12 22:35:27 -08:00
Ghislain Seguin
17164d28c4 Move require.js to first tag so it can catch jquery module registration
Otherwise jquery may be loaded twice
2012-01-12 21:58:42 -08:00
Ghislain Seguin
1630a18dd6 Added dependency on jquery.mobile.transitions 2012-01-12 21:43:41 -08:00
jrburke
73a8d24134 Move require.js to first tag so it can catch jquery module registration, otherwise jquery may be loaded twice. 2012-01-12 21:35:46 -08:00
Ghislain Seguin
1a1657a7ea Fixed closing pre tag 2012-01-12 21:29:00 -08:00
Ghislain Seguin
9e587e89b4 Fixed closing p 2012-01-12 21:27:47 -08:00
Ghislain Seguin
346786da11 Removed stray anchor before doctype 2012-01-12 21:27:09 -08:00
Ghislain Seguin
491cddd4b8 Move require.js to first tag so it can catch jquery module registration
Otherwise jquery may be loaded twice
2012-01-12 21:25:59 -08:00
Ghislain Seguin
948d39b898 Added dependency on jquery 2012-01-12 21:22:00 -08:00
Ghislain Seguin
90da812af7 Added wrapper and pragmasOnSave 2012-01-12 17:46:26 -08:00
Ghislain Seguin
5b8f2be9d2 Added wrapper to export as an AMD modules
removed jquery.mobile.exports
2012-01-12 17:45:47 -08:00
Ghislain Seguin
caca24a36a Removed unused app.build.js 2012-01-12 17:44:33 -08:00
Ghislain Seguin
d6330f9bc4 Added prepending of version licensed to jquery.mobile.docs.js and jquery.mobile.css 2012-01-12 16:58:18 -08:00
Mat Marquis
c35e6f2fde Comment typo, made a TODO about globalizing the testing method added in the previous commit. 2012-01-12 18:56:09 -05:00
Mat Marquis
abfec80413 Fixes a false positive for 3D transform support on Android 2.3 (possibly others). 2012-01-12 18:56:09 -05:00
Ghislain Seguin
c5f1fd5831 Merge pull request #3426 from eddiemonge/patch-14
add docs back to the latest build target
2012-01-12 15:39:30 -08:00
Ghislain Seguin
8a2881b783 Don't know why that r.js was there in the first place 2012-01-12 15:36:48 -08:00
Ghislain Seguin
228e31731a Rewrote "docs" target to take advantage of r.js' whole project optimization added build profile docs.build.js 2012-01-12 15:36:48 -08:00
Mat Marquis
8da75eb6b5 Fixes #2553 — Addresses issue where underlying checkboxes/radio buttons were not being updated when enhanced buttons were clicked. 2012-01-12 17:28:08 -05:00
Eddie Monge Jr.
efffcd22da add docs back to the latest build target 2012-01-12 14:19:31 -08:00
Ghislain Seguin
7e7b1b63f1 Finished merging branch 'out-in-transition', I had trailing commas in there instead of semi-colons 2012-01-12 10:09:25 -08:00
Ghislain Seguin
9e935c31f6 Merge branch 'out-in-transition'
Conflicts:
	css/structure/index.php
	docs/_assets/js/jqm-docs.js
	index.html
2012-01-12 09:56:48 -08:00
Ghislain Seguin
efb9b807b7 AMDized transition code 2012-01-12 09:36:46 -08:00
scottjehl
a83727e4be combined redundant syntax 2012-01-12 21:41:54 +07:00
scottjehl
2cd994b2e8 added the timing durations to the transitions themselves 2012-01-12 21:41:39 +07:00
scottjehl
32350a813a fixed some typos where webkit needed to be moz 2012-01-12 21:38:25 +07:00
scottjehl
70670bc344 fix up dialog presentation - headers were busted 2012-01-12 21:26:41 +07:00
scottjehl
6cd1adc528 no bg image/gradient on ui-overlay 2012-01-12 21:26:27 +07:00
scottjehl
5e878186cc removed old link 2012-01-12 21:06:49 +07:00
scottjehl
682ef80cf9 added missing files 2012-01-12 14:46:49 +07:00
scottjehl
fa4645c236 no longer need this class addition 2012-01-12 12:54:16 +07:00
scottjehl
6d4d0e14e6 code style 2012-01-12 12:50:47 +07:00
scottjehl
356e2cdfb8 Merge remote branch 'origin/out-in-transition' into out-in-transition 2012-01-12 12:39:04 +07:00
scottjehl
155adc14c1 CSS for ui-overlay-x applies to container now too - removed double class 2012-01-12 12:27:14 +07:00
scottjehl
ca98419cb0 class name was body instead of overlay. Fixed 2012-01-12 11:53:30 +07:00
toddparker
c514777327 Removed blurb about shutting off transitions over 1,000 pixels 2012-01-11 22:14:28 -05:00
toddparker
7df216aa33 Tweaked max width blurb to match the "false" default to avoid confusion 2012-01-11 22:09:16 -05:00
toddparker
9726f21e09 SetScrollBack to 10 (from 250), CSS tweaks to table 2012-01-11 22:07:04 -05:00
toddparker
4c26cd15e2 Re-vamp of transition button design, added page demos
Added a new page to contrast the dialog vs. page transitions. Page has
fixed toolbars and form elements to really stress the transitions.

Switched to a table design with a button for dialog and page for each
transition.
2012-01-11 21:45:11 -05:00
toddparker
0fb9024473 Turned maxTransitionWidth to false by default
Useful for testing, we may set this back to a value once we've seen
more feedback. Improved the comment a bit.
2012-01-11 20:53:41 -05:00
Mat Marquis
6db136ff12 Merge branch 'out-in-transition' of github.com:jquery/jquery-mobile into out-in-transition 2012-01-11 18:04:17 -05:00
Mat Marquis
f7d59da646 Updated 3d transform test to accomodate FF10. 2012-01-11 16:28:08 -05:00
Mat Marquis
5cfc363fa2 Removed reference to themeswitcher JS docs-wide. 2012-01-11 15:51:53 -05:00
Mat Marquis
071b65f00d Removed themeswitcher in docs. 2012-01-11 14:55:20 -05:00
jblas@adobe.com
86f74cbe39 Fix for issue #3416 - getTopOffset() should subtract scrollTop not add it.
- Modified private utility function getTopOffset() so that it subracts scrollTop from top instead of adding it.
2012-01-11 11:44:58 -08:00
scottjehl
347014530e if there's an overlay theme, we're going to remove it from the page container. First though, check that the incoming page isn't a dialog with the same overlay theme. If so, don't remove the class, as it'll remove it for the next one too 2012-01-11 23:29:50 +07:00
scottjehl
c0f39a6c7f don't append themeswitcher to the dialogs - updated now that the dialog markup changed 2012-01-11 22:01:23 +07:00
scottjehl
c46a94d598 removed the sample link to the delayed-load page. no longer needed 2012-01-11 21:42:55 +07:00
scottjehl
8f54d62527 added some unit tests for maxTransitionWidth option 2012-01-11 21:31:06 +07:00
scottjehl
4125bc6756 disable the maxTransitionWidth during testing by default so that window width doesn't conflict with tests. 2012-01-11 11:27:24 +07:00
scottjehl
5b6401327f By caching the href value to data and switching the href to a #, we can avoid address bar showing in iOS on every click. The click handler resets the href during its initial steps if this data is present. Note that the address bar will still likely drop down when you click the browser's back button. The only time the back button will not drop the address bar appears to be when the back button does not trigger a pushstate operation - so pushstate would either have to be disabled, or the page would have to be local (multipage), or the page would need to be a dialog (since then going back would only be a hashchange).
Still, progress.
2012-01-11 10:50:22 +07:00
scottjehl
e4d7ff92e8 special case for dialogs - the theme class will apply to the page container when a dialog is shown, and that class will be removed when the dialog is hidden. This allows the transition to appear to affect only the inset window portion of the dialog page. 2012-01-11 10:01:47 +07:00
Ghislain Seguin
ff9b742723 Use css/themes/default/jquery.mobile.css instead of css/themes/default/index.php 2012-01-10 14:49:52 -08:00
Ghislain Seguin
d47b6ba6c9 Removed as this is done through @import statements now 2012-01-10 14:34:59 -08:00
Ghislain Seguin
19bcd5a250 Have index.php serve the right file, this is deprecated and should be removed before 1.1 release 2012-01-10 14:32:48 -08:00
Ghislain Seguin
ee1d1f2670 Ported 148cb09132 to valencia theme 2012-01-10 14:31:27 -08:00
Todd Parker
68216bbd79 Missing a 0, thanks @agcolom! 2012-01-10 17:00:11 -05:00
Ghislain Seguin
a19e5dd944 Changed source CSS file for css bundle following bac53cf151 2012-01-10 13:50:58 -08:00
Mat Marquis
148cb09132 Updated docs’ CSS to use new @import scheme. 2012-01-10 16:35:51 -05:00
Mat Marquis
bac53cf151 Single CSS concat file using @import, rather than the PHP concat. 2012-01-10 16:35:50 -05:00
Todd Parker
52f25254e5 Merge pull request #3406 from agcolom/patch-53
Added clarification to the Back button, Fixes #3291
2012-01-10 13:24:20 -08:00
Anne-Gaelle Colom
ab29d7d14d Added clarification to the Back button, Fixes #3291 2012-01-10 20:45:57 +00:00
Ghislain Seguin
127b4493d6 Updated CSS path to default/jquery.mobile.theme.css so it doesn't pick up the index.php 2012-01-10 11:44:59 -08:00
Mat Marquis
1f5449e552 Added page turning transition. 2012-01-10 14:10:45 -05:00
John Bender
0b07290873 fix timing issue where the pushstate plugin expected popstate generated hashchanges to happen before a given timeout 2012-01-10 10:47:56 -08:00
Mat Marquis
8567dd6b07 Fixed theme CSS inclusion on docs index. 2012-01-10 12:31:19 -05:00
Chetan K Jain
b07f347787 fixes #3400 2012-01-10 12:31:19 -05:00
Ghislain Seguin
92fd8f663c Fixes #3394 - jquery.mobile.init was not being included in the built bundle 2012-01-10 12:31:18 -05:00
Mat Marquis
cbebd88265 Fixed theme CSS inclusion on docs index. 2012-01-10 12:14:27 -05:00
toddparker
d7f9cee654 Removed setDefaultTransition in docs.js
This isn't needed anymore.
2012-01-10 11:27:24 -05:00
toddparker
a2145cb2b5 Added docs to cover the new transitions 2012-01-10 11:15:19 -05:00
Todd Parker
db2829bc29 Merge pull request #3401 from chetankjain/patch-4
fixes #3400. Thanks chetankjain!
2012-01-10 07:35:25 -08:00
toddparker
3da8b6e245 Whitespace 2012-01-10 10:31:36 -05:00
Chetan K Jain
233f5720bd fixes #3400 2012-01-10 21:00:14 +05:30
toddparker
fab717a459 Added in drop shadow on pages in "flow" transition, adjusted timing to be longer 2012-01-10 10:29:04 -05:00
scottjehl
e35327c894 rewrote the transitions test suite and handlers to account for our new sequence. The main difference is most tests are async now, and use two functions: onFromComplete and onToComplete to test conditions before each page's animationComplete handler finishes (while animation classes are still present, for instance). onToComplete must call start() so that pages stay in proper sequences, as fromComplete may not always run depending on pages in play, and it's only halfway done in the trans.Needs more tests now! 2012-01-10 17:30:28 +07:00
scottjehl
67aec832cb removed old commented out code 2012-01-10 14:07:07 +07:00
scottjehl
6e2f1cd64f moved the hide loader call back to nav again 2012-01-10 14:06:24 +07:00
scottjehl
679a46dbf0 even when stubbing out the function for testing, this $.fn needs to return this (it's relied upon for chaining in nav) 2012-01-10 13:23:55 +07:00
scottjehl
7e0de23e61 added reference to flow transition fallback 2012-01-10 13:00:55 +07:00
scottjehl
4f570f3095 one too many transition js refs 2012-01-10 12:59:24 +07:00
scottjehl
c09c767bd5 added fallback transition for flow 2012-01-10 12:51:27 +07:00
scottjehl
8d0c2402ca better check for supporting fallback 2012-01-10 12:51:27 +07:00
scottjehl
75d0d95bea pulled out the 3D madness 2012-01-10 12:51:27 +07:00
scottjehl
a7e15820d8 changed up the timing and origin 2012-01-10 12:51:05 +07:00
scottjehl
8f5e263bd8 added an experimental 3D transition, "flow" 2012-01-10 12:51:05 +07:00
scottjehl
ffa23bc137 removed rotate transition from concat files and docs 2012-01-10 12:50:53 +07:00
scottjehl
d1edb4f98c better comment 2012-01-10 12:50:44 +07:00
scottjehl
0dd88f4f88 implemented fallback transition definitions for non-3D-supporting browsers, for all transitions except "fade". By default, these are all set to fall back to "fade", and they'll fall back to "none" if 3D is unsupported and no fallback is defined. They can be overridden at mobileinit, like any other jQM default. 2012-01-10 12:50:44 +07:00
scottjehl
fd700aaa15 removed the experimental rotate transition 2012-01-10 12:50:33 +07:00
scottjehl
40d9fa978a split the slide transitions into 3 files for slide, slidedown, and slideup 2012-01-10 12:50:33 +07:00
scottjehl
86e9c9df68 removed fallback transition CSS for non-3D browsers 2012-01-10 12:50:22 +07:00
Mat Marquis
0b80c12778 Updated page transition scripting/support test to allow for Firefox. 2012-01-10 12:50:22 +07:00
scottjehl
b019e01201 updated docs to describe the maxTransitionWidth option. 2012-01-10 12:50:22 +07:00
scottjehl
69558f2cbd Added a new core option called maxTransitionWidth, which defaults to 1000. Accepts any number or false value. If it's not false, the handler will use a "none" transition when the window width is wider than the specified value. This is useful because transitions get very wonky on wider screens. 2012-01-10 12:50:22 +07:00
scottjehl
3271066c97 updated the rotate transition to move the page out of view 2012-01-10 12:50:22 +07:00
scottjehl
c39cf6e6bc updated docs page to describe the new transition handler and how it works. 2012-01-10 12:50:21 +07:00
scottjehl
70ef725952 removed "none" transition handler from Nav.js. Updated the new out-in transition handler so that it supports "none" transitions in addition to our new default css3 animation sequence. The new transition handler is set as the default, and available publicly as $.mobile.defaultTransitionHandler and $.mobile.transitionHandlers["default"]. 2012-01-10 12:50:21 +07:00
scottjehl
22162fd5e7 removed z-index rules, no longer needed 2012-01-10 12:50:21 +07:00
scottjehl
11848a6829 z index not needed 2012-01-10 12:50:21 +07:00
scottjehl
f6ec2436b7 brought back a full flip transition for 3d supporting browsers, using 90deg pairs. Needs further testing 2012-01-10 12:50:21 +07:00
scottjehl
7341d7c9d0 whitespace 2012-01-10 12:50:21 +07:00
scottjehl
7be58bc085 removed or moved opacity rules for simpler cascade 2012-01-10 12:50:21 +07:00
scottjehl
9d2f96fc91 removed z-index rules, as pages no longer overlap in transitions 2012-01-10 12:50:21 +07:00
toddparker
74a8f2c2c3 Moved non-3D rules to the bottom to hide the ugliness
Rule order doesn't seem to matter because of specificity.
2012-01-10 12:50:21 +07:00
toddparker
6ddc8c0e9d First cut at making pop work for non-3D browsers. Still rough, but works.
I had to create a new set of basic keyframes for non-3D because we had
opacity baked into our keyframes. As an upside, I could tweak the scale
factor differently between Android (0 > 1) and 3D (0.8 > 1).
2012-01-10 12:50:21 +07:00
toddparker
4d5e2ec437 Slide transition improvements
- Switched from opacity to outline for nofade
- Re-vamped the non-3D slides to eliminate blinking
2012-01-10 12:50:21 +07:00
toddparker
9531ff46f8 A few more slide tweaks, still blinky or skips frames in unpredictable ways 2012-01-10 12:50:20 +07:00
toddparker
0edc6271a5 Added "nofade" transition, slide/up/down for non-3D devices
- Introduced a class (nofade) which is similar to dontmove for
overwriting the fade in/out classes. We're not scoping all classes to
with supported or not like in flip so we need to negate the fade rules
with a new animation
- Added a selector block at the top to lengthen all slide animations to
300ms to reduce blinkiness on Android. Shorter caused animations to
break out of sequence. Needs refinement on timing.
- Added rules to apply the "nofade" classes to the replace the fade
in/out animations for non-3D browsers. Had to set the duration equal to
the slide animations to keep it all in sync.
2012-01-10 12:50:20 +07:00
toddparker
373abd7623 Re-org file, scoped all flip rules to the 3d supported class to avoid android seeing these
Cleaned up unsupported rules, added to top of file - needed both fade
in and out rules
2012-01-10 12:50:20 +07:00
scottjehl
81c98eb1e1 updated description of what happens with flip on non 3d 2012-01-10 12:50:20 +07:00
scottjehl
13cdc5d7c4 added a rotate transition, just for fun. 2012-01-10 12:50:20 +07:00
scottjehl
bce5a5a33d flipped the default timing for in and out - they were backwards 2012-01-10 12:50:06 +07:00
scottjehl
3ec1085b70 removed old comment 2012-01-10 12:50:06 +07:00
scottjehl
c0e635bf72 removed flip in rules, no longer in use 2012-01-10 12:50:06 +07:00
scottjehl
3bf147e10b cleaned these up so only the right rules are in the right files 2012-01-10 12:50:05 +07:00
scottjehl
3fdaa38bd7 whitespace 2012-01-10 12:50:05 +07:00
scottjehl
d854f81376 moved ui-viewport-transitioning rules into here 2012-01-10 12:50:05 +07:00
scottjehl
5012030885 updated comment to credit jqTouch for original transitions ideas, though these are now quite different 2012-01-10 12:50:05 +07:00
scottjehl
9cd79a6adb missed slide in the new transitions file split out 2012-01-10 12:50:05 +07:00
scottjehl
c37ad79ed0 updated make and concat files for new transition handler 2012-01-10 12:50:05 +07:00
scottjehl
bc2b4faf0b renamed the new transition handler transition.js 2012-01-10 12:49:52 +07:00
scottjehl
edfafbf5d7 split transition CSS into separate files. 2012-01-10 12:49:21 +07:00
scottjehl
f31b792096 tweaked scale and duration of some flip and pop transitions 2012-01-10 12:48:58 +07:00
scottjehl
7d34652a07 dontmove is no longer in use 2012-01-10 12:48:58 +07:00
scottjehl
c471857595 not needed, as flip already uses fade now in the "in" transition. 2012-01-10 12:48:58 +07:00
scottjehl
fd236692ea lowercased 2012-01-10 12:48:58 +07:00
scottjehl
5e0d37dfa8 for non-3d browsers, use fade instead of flip 2012-01-10 12:48:58 +07:00
scottjehl
f72eb291f6 woops. add it whether it's supported or not :) 2012-01-10 12:48:57 +07:00
scottjehl
965f7e2681 add class for 3d transform support 2012-01-10 12:48:57 +07:00
scottjehl
0cafec13bd fixed a typo in the query 2012-01-10 12:48:57 +07:00
scottjehl
f80d855847 Added a feature test for css 3d transforms, which will allow us to conditionally apply the flip transition (AKA cartwheel, where unsupported). 2012-01-10 12:48:57 +07:00
toddparker
52c44937e7 Updated -moz out to match 2012-01-10 12:48:57 +07:00
toddparker
3b8e4cb8b6 Broke out the global and in and out transition rules for asymmetric timing
Also added duplicate buttons at the booth to test scroll position
smoothness.
2012-01-10 12:48:57 +07:00
scottjehl
949b919abf rolled that last one back. 2012-01-10 12:48:57 +07:00
scottjehl
ba2da4dac7 a little faster on the fades. needs cleanup later 2012-01-10 12:48:57 +07:00
scottjehl
44482cd79c removed spin because we aren't using it no mo 2012-01-10 12:48:57 +07:00
scottjehl
27f81a0ef0 updated the slide and flip handlers to use combo fade/slide/flip transitions 2012-01-10 12:48:57 +07:00
scottjehl
770979698e fixed up the pop out transition for outin handler 2012-01-10 12:48:57 +07:00
scottjehl
72fe72f772 added new filename to make and combiner files 2012-01-10 12:48:57 +07:00
scottjehl
86dfe99a1b changed filename 2012-01-10 12:48:40 +07:00
scottjehl
42bcd90a47 changed plugin name to outInTransitionHandler, as the sequence has nothing to do with "fade" specifically. 2012-01-10 12:48:40 +07:00
scottjehl
d01da49798 brought back the height settings, and fixed a typo between addClass and removeClass 2012-01-10 12:48:40 +07:00
scottjehl
cb151b5d9a don't use pre transitioning class, or viewport class for this transition handler. Instead, activate page early, then scroll to desired spot, and transition in. In order to make this work, I had to add an argument to the end of the promise, letting navigation know that the page is already focused, so don't do it over again. This should make for a smooth transition from point-a to point-b, without a visible scroll jump. Needs testing! 2012-01-10 12:48:39 +07:00
scottjehl
f46135b6fd add back viewport transitioning class 2012-01-10 12:48:39 +07:00
scottjehl
cb49d27006 don't scroll at the end. scroll halfway through instead 2012-01-10 12:48:39 +07:00
scottjehl
a73e04bf19 an attempt at simplification. not there yet... 2012-01-10 12:48:22 +07:00
scottjehl
80b5cad7b8 removed unused image 2012-01-10 12:48:22 +07:00
Todd Parker
ac94b063b0 Loader design tweaks
Removed the spin class from the loader container, tweaked opacity and
added slight glow to bottom of loader, increased padding. Downloaded a
fresh loader image.
2012-01-10 12:48:05 +07:00
scottjehl
594eb7b37c added fade out in transition handler 2012-01-10 12:44:42 +07:00
scottjehl
9afa2eaa5e changed filename 2012-01-10 12:43:11 +07:00
scottjehl
9aea79e744 changed plugin name to outInTransitionHandler, as the sequence has nothing to do with "fade" specifically. 2012-01-10 12:43:11 +07:00
Todd Parker
71a84e8c62 Add -moz prefixes for initial cut at Firefox transition support 2012-01-10 12:43:11 +07:00
Todd Parker
ae0ad6ff8a Shorter fade out (150ms) and fade in (300ms) for speedier transitions. 2012-01-10 12:43:11 +07:00
scottjehl
10a65c9d78 brought back the height settings, and fixed a typo between addClass and removeClass 2012-01-10 12:43:11 +07:00
Todd Parker
cbcc523e64 Faster spinner animation
Was 4ms per frame, now 3ms.
2012-01-10 12:43:11 +07:00
scottjehl
445d11c704 don't use pre transitioning class, or viewport class for this transition handler. Instead, activate page early, then scroll to desired spot, and transition in. In order to make this work, I had to add an argument to the end of the promise, letting navigation know that the page is already focused, so don't do it over again. This should make for a smooth transition from point-a to point-b, without a visible scroll jump. Needs testing! 2012-01-10 12:43:11 +07:00
scottjehl
955a37f1e8 add back viewport transitioning class 2012-01-10 12:43:10 +07:00
scottjehl
1bae528dc0 no need for pre-transition class 2012-01-10 12:43:10 +07:00
scottjehl
c72595c462 don't scroll at the end. scroll halfway through instead 2012-01-10 12:43:10 +07:00
scottjehl
0a267cea64 position loader fixed by default, then check if it's positioned correctly and if not, switch to an absolute positioned scheme, with updates on scroll (or scrollstop in iOS 4). 2012-01-10 12:43:10 +07:00
Todd Parker
41d63056c6 All new loader hotness
Created a new loader that has a circle baked into the animated gif so
there's less of a chance of artifacts in bad browsers. The edge is
chunky because it's a gif but then added 1px of padding to the loader
parent and that the border-radius can smooth this out in iOS. Actually
looks sharp in Android too because of interaction effects between these
rounded corners. Loader spin is faster and more compressed (16 colors).
Removed the body-a class on the spinner since we're just setting this to
flat black = one less gradient to render.
2012-01-10 12:43:10 +07:00
scottjehl
47bf7a9d38 an attempt at simplification. not there yet... 2012-01-10 12:43:10 +07:00
scottjehl
0a3be2ecf3 default transition type goes to fade 2012-01-10 12:43:10 +07:00
scottjehl
41bc37990a for now, removed any difference between framework transition defaults and the docs. We might want to bring this back and recommend it though - I'm not sure how easy it'll be to bring it in standard with the ability to configure. 2012-01-10 12:43:10 +07:00
scottjehl
19941f8e9f removed unused image 2012-01-10 12:43:10 +07:00
Todd Parker
8c4bc2fad8 More loader tweaks 2012-01-10 12:43:10 +07:00
Todd Parker
dac79b5cfa Loader design tweaks
Removed the spin class from the loader container, tweaked opacity and
added slight glow to bottom of loader, increased padding. Downloaded a
fresh loader image.
2012-01-10 12:43:09 +07:00
scottjehl
c1cdb0a1a8 added loader test page for local testing 2012-01-10 12:43:09 +07:00
scottjehl
12c5da43a8 gif loader style updates 2012-01-10 12:43:09 +07:00
scottjehl
9a410f57fa gif loader styles 2012-01-10 12:43:09 +07:00
scottjehl
b820de1afc removed code to set css3transitionhandler as the default 2012-01-10 12:43:09 +07:00
scottjehl
0bfacce751 hard-set opacity for "out" to prevent blinks 2012-01-10 12:43:09 +07:00
scottjehl
f5dd6fb8ea added fade out in transition handler file 2012-01-10 12:43:09 +07:00
scottjehl
597e6bd07a added fade out in transition handler 2012-01-10 12:40:23 +07:00
scottjehl
bcf8746d77 gif-based loader animation 2012-01-10 12:40:23 +07:00
scottjehl
195d4dc47e removed commented out line 2012-01-10 12:40:23 +07:00
scottjehl
821df23a7d Much of the scripting in nav.js's transitionPages function was tied to the animation sequence for our css3transitionhandler. For example, the order was, scroll to top, run transitions, then scroll to the remembered location of the new page (there's more involved, but that's the gist of it). If we want to expand beyond this sequence, much of that scripting needs to move to the css3transitionhandler itself, and also to our "none" transition handler, which comes with nav model.
This commit moves all that logic into the transition handlers, and should provide a better starting point for adding different transition sequences, such as fade-out, scroll, fade-in.

In the process of making this change, the reFocus function was made public as $.mobile.focusPage.
2012-01-10 12:40:23 +07:00
Garann Means
c0dbecc855 fix for #3141 - redirect from button() and buttonMarkup() to correct function for element 2012-01-09 23:38:12 -06:00
Ghislain Seguin
2ba27e0adc Fixes #3394 - jquery.mobile.init was not being included in the built bundle 2012-01-09 11:01:07 -08:00
Todd Parker
69983f7907 Merge pull request #3365 from fredefl/master
Fixed a typo and optimized images even more.
2012-01-07 15:23:04 -08:00
Ghislain Seguin
42c9409660 Fixed wrong line break 2012-01-06 17:14:48 -08:00
Mat Marquis
d7afc8aa78 Added download builder metadata. 2012-01-06 19:31:31 -05:00
John Bender
cf611bc1c7 conceding defeat on determining the load order issue that's causing the test failure 2012-01-06 15:27:21 -08:00
John Bender
f60dd96178 remove duplicate test run 2012-01-06 15:27:21 -08:00
John Bender
12f112d6d4 check to make sure cached test page appears 2012-01-06 15:27:21 -08:00
Ghislain Seguin
cc54ede5f0 Merge pull request #3385 from eddiemonge/patch-13
increase java cache size
2012-01-06 11:44:06 -08:00
jblas@adobe.com
f0cc30719d Corrected the title for the functional test. 2012-01-06 10:23:54 -08:00
jblas@adobe.com
1a5224047b Fix for issue #2933 - get_orientation() and hence getScreenHeight() doesn't work on some devices
It seems that some device/browser vendors use window.orientation values 0 and 180 to denote the "default" orientation. For iOS devices, and most other smart-phones tested, the default orientation is always "portrait", but in some Android and RIM based tablets, the default orientation is "landscape".

- Modified the orientationchange plugin so that it injects a landscape orientation media query into the document to figure out what the initial orientation is, it then makes adjustments to a portrait_map if necessary, so that we can properly decode the window.orientation value whenever get_orientation() is called.
2012-01-06 10:19:04 -08:00
John Bender
3cea545f73 enforce test order ... dying a little inside 2012-01-05 14:23:17 -08:00
Eddie Monge Jr.
23b2d7f0b4 increase java cache size 2012-01-05 11:55:34 -08:00
John Bender
8cbbb8076d remove submodule update note 2012-01-05 11:14:37 -08:00
John Bender
4624dcfa13 vendor r.js and require.js 2012-01-05 10:36:50 -08:00
John Bender
a9daa06158 remove requirejs and r.js submodules in favor of vendoring the libraries 2012-01-05 10:32:46 -08:00
John Bender
98ed3fc31b add submodule update/init to readme 2012-01-04 16:00:41 -08:00
John Bender
3c2bfaca8a remove define stub, it's now stubbed through including jquery.mobile.define.js in js/index.php 2012-01-04 14:26:03 -08:00
John Bender
0b1829967d obviate the need for stub definition of define when using vanilla /js require 2012-01-04 14:21:57 -08:00
John Bender
ea01f9f960 update functional tests to use requirejs 2012-01-04 14:04:18 -08:00
John Bender
bafd0cdf9f add ui-mobile-rendering to docs to temprarily prevent fouc with async load. @gseguin to address with jqm-docs.js change 2012-01-04 13:59:17 -08:00
John Bender
22504c7613 switch to explicit false check to avoid undefined issues 2012-01-04 13:14:43 -08:00
John Bender
b47d9ba24e fix async loading select test issue where keepnative isn't defined in time for the leading test 2012-01-04 13:13:24 -08:00
John Bender
95073892f0 Merge branch 'amd' 2012-01-04 12:24:33 -08:00
John Bender
db42f18ed5 note about fouc 2012-01-04 12:00:17 -08:00
John Bender
c9eed4e8b7 whitespace in readme 2012-01-04 11:59:02 -08:00
John Bender
e26d7de1a9 added note about local server support for development 2012-01-04 11:58:46 -08:00
John Bender
8ea0bddccc ensure defaultTransitionHandler is defined after the navigation has been loaded 2012-01-04 11:46:35 -08:00
John Bender
6e8433d395 ensure defaultTransitionHandler is defined after the navigation has been loaded 2012-01-04 11:38:32 -08:00
John Bender
223ad8daab move to reloadModule as it returns a deferred 2012-01-04 11:26:36 -08:00
John Bender
bda2834acc make sure the slider core runs before init to set keepNative properly 2012-01-04 11:23:21 -08:00
John Bender
0a48b9168f update select cached tests to use async 2012-01-04 11:10:04 -08:00
John Bender
dc3e42ec86 update listview pushstate test to use async 2012-01-04 11:08:21 -08:00
John Bender
912a7e852f init test order and other small fixes 2012-01-04 11:05:52 -08:00
John Bender
739452ded0 fixed listview tests async loading 2012-01-04 09:45:36 -08:00
Mat Marquis
573fcf8668 Updating select menu tests to match recent dialog markup changes. 2012-01-04 12:35:13 -05:00
John Bender
16391e4af9 stub define in event tests 2012-01-04 09:10:52 -08:00
John Bender
81d1f6f282 stubbed define in nav tests 2012-01-04 08:56:35 -08:00
Mat Marquis
f5794cf7c8 Fixing navigation bug caused by dialog markup changes. 2012-01-04 11:27:52 -05:00
John Bender
9c7e1b755f fix url checks to use search where appropriate 2012-01-04 08:02:31 -08:00
Mat Marquis
a502b0d831 Applied top margin to dialog headers rather than .ui-dialog, as the latter was breaking content-only dialogs meant to align with the top of the viewport. 2012-01-03 18:16:35 -05:00
Mat Marquis
9b3aefae84 Moved .ui-dialog to element wrapping dialog header/content/footer, switched overlay non-theming class to .ui-dialog-page. 2012-01-03 18:16:29 -05:00
Mat Marquis
1ffc6b007e Partial dialog refactor, in progress. 2012-01-03 18:16:23 -05:00
John Bender
d82b6aacfc update nav base tests to use new push state helper 2012-01-03 14:13:56 -08:00
Todd Parker
ac2f50bdda Merge pull request #3363 from chetankjain/patch-3
data-id is not used in Pages and Dialogs. Thanks chetankjain!
2012-01-03 08:56:46 -08:00
Frederik Lassen
1ae23973f0 Optimized the images even more. (Using ScriptPNG) 2012-01-01 23:17:53 +01:00
Frederik Lassen
d6184ef6ec Corrected tiny typo. 2012-01-01 23:10:30 +01:00
Todd Parker
afb18eaaa2 Merge pull request #3362 from chetankjain/patch-2
Update docs/about/getting-started.html
2012-01-01 07:16:32 -08:00
Todd Parker
d7b2a7f66f Merge pull request #3361 from chetankjain/patch-1
Update docs/pages/page-anatomy.html
2012-01-01 07:16:03 -08:00
Chetan K Jain
d7d38dca7e data-id is not used in Pages and Dialogs 2012-01-01 20:33:30 +05:30
Chetan K Jain
96b2b48f0b Update docs/about/getting-started.html 2012-01-01 20:01:22 +05:30
Chetan K Jain
b4ee437ca3 Update docs/pages/page-anatomy.html 2012-01-01 19:54:21 +05:30
Mat Marquis
5b9ca5caf0 Ensured the hover delay only applies to touch devices, logic that was mysteriously absent from my previous commit. 2011-12-30 15:58:56 -05:00
Mat Marquis
171be28a22 Added slight delay before application of hover/down classes on touch devices, to prevent unintentional hover-ish behavior when the user intent is to scroll. 2011-12-30 15:24:46 -05:00
Mat Marquis
bb2a578d6e Merge pull request #3278 from MaZderMind/fix-touchOverflow-with-lists
fix position of searchbar in touchOverflow mode
2011-12-30 10:42:16 -08:00
Todd Parker
597c25ac4a Merge pull request #3355 from agcolom/patch-52
added navbar
2011-12-30 07:17:28 -08:00
Anne-Gaelle Colom
80737f333a added navbar 2011-12-30 13:46:16 +00:00
Todd Parker
f57072fa7b Merge pull request #3326 from TylerBenziger/master
Gradient Syntax Fix
2011-12-29 15:16:25 -08:00
zachleat
e29320e711 This might be a little overzealous, but I think the outline around the entire flip switch looks better than the clipped handle outline. 2011-12-29 16:26:45 -05:00
zachleat
c4191d9bf6 Fix for browsers with JavaScript but without box-shadow enabled. outline: 0; outline-width: 2px; doesn't work, requires an outline-style to be set. 2011-12-29 16:26:45 -05:00
zachleat
328bbec94a Per @toddparker's comment, added boxshadow to link buttons. Also changed focus class on sliders to add to the handle, while excluding the toggle switch. 2011-12-29 16:26:45 -05:00
zachleat
bf58b38cb8 Nerf, you guys use tabs. 2011-12-29 16:26:45 -05:00
zachleat
07efc02c9f First stab at more consistent focus classes on form elements, using .ui-focus. Links will still contain outline property. 2011-12-29 16:26:44 -05:00
Mat Marquis
de7040047c Merge pull request #3352 from jakeboone02/issue-3350
Remove ui-btn-down class on scrollstart
2011-12-29 09:25:35 -08:00
Jake Boone
13cb24e586 Remove ui-btn-down class on scrollstart 2011-12-29 11:13:54 -05:00
Mat Marquis
60bc3fc06b Merge pull request #3344 from garann/master
Corrected fix for #3262 so it doesn't prevent buttons filling available space.
2011-12-29 07:45:17 -08:00
Ghislain Seguin
c5415307ba Fixed checkboxradio tests 2011-12-28 14:08:18 -08:00
Ghislain Seguin
1c284c1f9c Merge pull request #3349 from agcolom/patch-51
Update docs/forms/switch/options.html
2011-12-28 13:20:40 -08:00
Ghislain Seguin
cd618a266a Merge pull request #3348 from agcolom/patch-50
Update docs/forms/slider/options.html
2011-12-28 13:20:16 -08:00
Anne-Gaelle Colom
029ebc2cb7 Update docs/forms/switch/options.html 2011-12-28 21:16:43 +00:00
Anne-Gaelle Colom
39d4d86c7c Update docs/forms/slider/options.html 2011-12-28 21:13:54 +00:00
Garann Means
7a0addfd8f Corrected fix for #3262 so it doesn't prevent buttons filling available space 2011-12-27 12:00:13 -06:00
Ghislain Seguin
be0794dfd8 Forgot to add rhino, there it is 2011-12-27 09:21:19 -08:00
scottjehl
a75f4d1361 removed debug line 2011-12-27 21:07:50 +07:00
scottjehl
a89f2989eb blacklisted Opera Mobile from fixies 2011-12-27 20:51:29 +07:00
scottjehl
273642e2bc cleaned up the opt-out formatting and added Fennec < 6 and WebOS < 3. 2011-12-26 21:29:29 +07:00
scottjehl
ca3f67981e Blocked out Android 2.1 and older, running Webkit version older than 233 (the one that comes with 2.2) 2011-12-26 19:30:09 +07:00
scottjehl
b3a96dc327 Merge remote branch 'origin/css-fixed' into css-fixed 2011-12-26 18:44:52 +07:00
scottjehl
10ff3dbe13 clarified distinction on overflow between pages with fixed toolbars and pages without, and removed native-fixed class (old) 2011-12-26 16:53:56 +07:00
scottjehl
d954a19a8d removed margin overrides when overflow scrolling is in play 2011-12-26 16:32:59 +07:00
scottjehl
207264a370 removed listview margin overrides when overflow scrolling is in play. 2011-12-26 16:32:38 +07:00
scottjehl
d47dd88e0a listview related fixed style moved to listview plugin and out of core 2011-12-26 16:30:30 +07:00
scottjehl
f779416c8d moved touchOverflowEnabled setting to global config, class is applied through page plugin. False by default. No longer dependent on fixed headers and footers. 2011-12-26 16:30:00 +07:00
scottjehl
a00c05109b removed old class qualification for overflow scrolling margin overrides on listviews 2011-12-26 16:04:47 +07:00
scottjehl
ef37e9fde8 z-index of buttons within fixed headers -moved to specific class 2011-12-26 16:03:30 +07:00
scottjehl
d16da24e0e removed qualification of img { max-width: 100%; } to only fullscreen settings - now global within framework. 2011-12-26 16:01:57 +07:00
Ghislain Seguin
c8d88a2f3a Renamed .tmp temp file to .compiled 2011-12-24 20:06:54 -08:00
Ghislain Seguin
b74d20e735 Got rid of node dependency 2011-12-24 20:02:29 -08:00
Mat Marquis
138547c28a Merge pull request #3334 from garann/master
Fix for overlapping header/footer buttons
2011-12-24 18:09:30 -08:00
Garann Means
dde96bd026 Fix for #3262 - set max-width for header/footer buttons and title
Text-overflow: ellipsis already set.
2011-12-24 19:49:45 -06:00
Ghislain Seguin
83de694e9f Reverted unwanted changes 2011-12-24 00:51:39 -08:00
Ghislain Seguin
0bd10de3e8 Added require.js 1.0.3 as a submodule 2011-12-24 00:48:08 -08:00
Ghislain Seguin
f7e0f51230 Added r.js as a submodule
Removed almond
2011-12-24 00:37:15 -08:00
Todd Parker
aaeacae9e0 Merge pull request #3329 from gabrielschulhof/fix-custom-select-menu-position-in-IE8
Fix custom select menu popup positioning in IE8
2011-12-23 11:04:57 -08:00
Gabriel Schulhof
3b22bbf9fb [custom select] Use $(window).width() and not window.innerWidth - same for height 2011-12-23 16:09:50 +02:00
Tyler Benziger
297b6f3a78 gradient syntax fix 2011-12-22 22:51:30 -08:00
Tyler Benziger
5c7c7932a2 gradient syntax fix 2011-12-22 22:49:10 -08:00
Ghislain Seguin
42190caef2 AMDized 2011-12-22 17:32:01 -08:00
Ghislain Seguin
bd6eaba5e8 Changed $.extend to be non destructive 2011-12-22 17:31:50 -08:00
Ghislain Seguin
d97118d891 Added $.testHelper.deferredSequence
Renamed reloadLib to reloadModule
Resuscitated $.testHelper.reloadLib
2011-12-22 17:31:11 -08:00
Ghislain Seguin
05068af414 Expose jquery.mobile as an AMD module if running in an AMD env 2011-12-22 15:52:34 -08:00
Todd Parker
5763a79545 Merge pull request #3321 from jakeboone02/patch-6
Move back button configuration options to Page section. Thanks for the fix @jakeboone. Fixes #3320.
2011-12-22 12:52:07 -08:00
Jake Boone
7403ed9e43 Move back button configuration options to Page section 2011-12-22 15:39:06 -05:00
Ghislain Seguin
1bbd67bc98 Remove .js suffix from libName 2011-12-22 10:44:08 -08:00
Ghislain Seguin
db5a919928 Use new testHelper.reloadLib 2011-12-22 09:55:07 -08:00
Ghislain Seguin
b249dbe519 Changed reloadLib to use requirejs' context. That process being async it now returns a $.Deferred 2011-12-22 09:54:34 -08:00
Ghislain Seguin
a3392bc0ff Remove .js suffix from libName 2011-12-22 09:53:26 -08:00
Ghislain Seguin
22c6409f63 AMDized 2011-12-22 09:49:33 -08:00
Ghislain Seguin
a5d56000d4 Added dep on buttonMarkup 2011-12-22 09:48:51 -08:00
Todd Parker
a797de5fc1 Merge pull request #3318 from jakeboone02/patch-5
Use shorthand notation for margin
2011-12-22 09:07:20 -08:00
Jake Boone
0c1bba494b Use shorthand notation for margin 2011-12-22 11:56:50 -05:00
Tyler Benziger
0c13d8a81a Gradient syntax fixed 2011-12-21 23:30:46 -08:00
toddparker
2c2f830b48 More tweaks to the sliders to fit well at 320px 2011-12-21 23:36:57 -05:00
toddparker
29fdb304eb Tweaked slider to be a bit wider
Checked to ensure this fits in inset lists
2011-12-21 23:14:12 -05:00
toddparker
0f36a0eefd Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-12-21 22:48:45 -05:00
toddparker
e476ea615f Tightened up vertical spacing for form field containers at smartphone widths
There was more spacing between elements than needed, this cleans it up.
2011-12-21 22:48:39 -05:00
toddparker
055e15e84f Tweaked fieldset border rules so field contains work with this element. Fixes #2448 2011-12-21 22:40:41 -05:00
Ghislain Seguin
c58022c8ff AMDized 2011-12-21 16:41:43 -08:00
Ghislain Seguin
3f05a5e12c Named the module for testability 2011-12-21 16:41:27 -08:00
toddparker
140ee9cbba Changed the z-index of the slider handle from 10 and 20 to 1 for both types to prevent it from running over the fixed toolbars 2011-12-21 18:14:41 -05:00
Ghislain Seguin
67df0cdf10 Minimized imported resources
Added css links
2011-12-21 14:41:48 -08:00
Ghislain Seguin
dba47fee54 Fixed test name 2011-12-21 14:41:19 -08:00
Ghislain Seguin
5c4c62e5e5 AMDized 2011-12-21 14:39:45 -08:00
Ghislain Seguin
2f43368fda Trailing comma 2011-12-21 14:37:43 -08:00
Ghislain Seguin
4bb45a9b70 Minimized imported resources 2011-12-21 14:35:14 -08:00
Ghislain Seguin
ee91030bb3 AMDized 2011-12-21 14:29:09 -08:00
Ghislain Seguin
9b2e407fdd Added dep on page and page.sections (for nested lists) 2011-12-21 14:28:42 -08:00
Ghislain Seguin
83cd583e33 Added dep on textinput 2011-12-21 14:22:21 -08:00
Ghislain Seguin
69d69092d5 AMDized 2011-12-21 13:59:48 -08:00
Ghislain Seguin
2c38391171 AMDized 2011-12-21 13:43:48 -08:00
Ghislain Seguin
ba6c4dd8c8 AMDized 2011-12-21 13:36:59 -08:00
Ghislain Seguin
185ea02809 AMDized 2011-12-21 11:54:12 -08:00
Ghislain Seguin
4f6e082875 Added dep on grid 2011-12-21 11:54:00 -08:00
Ghislain Seguin
65c1d48e47 Use .js convention provided by requirejs 2011-12-21 11:50:46 -08:00
Ghislain Seguin
4e60cd57f2 AMDized 2011-12-21 11:46:11 -08:00
Ghislain Seguin
2a2ebfa55a Make sure controlGroup is loaded after checkboxradio (via order plugin) 2011-12-21 11:46:11 -08:00
John Bender
5158cbf4ce remove base url juggling in favore of .js convention provided by requirejs 2011-12-21 11:30:46 -08:00
John Bender
dc203029a3 update dialog tests to use amd 2011-12-21 08:13:24 -08:00
John Bender
94b6e9c8da upgrade degrade inputs tests to use amd, whitespace 2011-12-21 08:03:15 -08:00
John Bender
981a210d78 update core tests to use amd, fix misleading test 2011-12-21 07:58:11 -08:00
John Bender
0d7a3b9014 update control group tests to use amd 2011-12-20 23:06:40 -08:00
John Bender
38bd74cc95 remove unecessary collapsible test dep 2011-12-20 23:06:15 -08:00
John Bender
790e0439d1 update collapsible tests to use amd 2011-12-20 22:53:32 -08:00
John Bender
e778924de3 update checkboxradio tests to use amd 2011-12-20 22:49:16 -08:00
John Bender
88c22906a4 update buttonMarkup tests to amd 2011-12-20 22:43:25 -08:00
John Bender
1e4be460c2 update button core tests to amd 2011-12-20 22:24:03 -08:00
John Bender
37fdf3a7ca added note to test helper 2011-12-20 17:08:02 -08:00
John Bender
af50e19b1f page test moved to async load, fix for bad assumption in return false test 2011-12-20 17:02:43 -08:00
John Bender
810edd8472 more flexible async loading helper, converted select test 2011-12-20 17:01:16 -08:00
John Bender
621348b05b fix bug to allow pagebeforecreate bindings to prevent enhancement 2011-12-20 16:58:23 -08:00
John Bender
e466f6844c whitespace in page core tests 2011-12-20 16:33:38 -08:00
John Bender
b0c1acae4d alter select index tests to use async load 2011-12-20 15:02:09 -08:00
John Bender
5469442ad3 async test library load helper 2011-12-20 15:01:28 -08:00
John Bender
d6a5a00ebd added page and page section dependencies to custom select 2011-12-20 14:29:35 -08:00
John Bender
30b4727138 added dialog to custom select deps 2011-12-20 13:47:29 -08:00
John Bender
b35a9fa9ce alpha order deps 2011-12-20 13:29:02 -08:00
John Bender
f45aae07b7 add transition dep to navigation 2011-12-20 12:54:05 -08:00
John Bender
95f7151c8e add page and listview dep to custom select 2011-12-20 12:53:04 -08:00
Ghislain Seguin
14e1641a27 Added dep on "jquery.mobile.buttonMarkup" wherever needed 2011-12-20 11:33:55 -08:00
Ghislain Seguin
bd02b93df6 Added temporary dependency on mobile.widget 2011-12-20 11:25:39 -08:00
jblas@adobe.com
833526e18f Fix for issue #3305 - Confusing documentation about dataUrl in changePage
- Changed 'data-url' to 'dataUrl' to match actual implementation.
2011-12-20 09:50:33 -08:00
Gabriele Rabbiosi
3c57f57e08 Substituted wrong semicolon with comma inside a list of variable
declaration
2011-12-20 08:17:27 -08:00
scottjehl
5de358b8a5 make sure all page classes are removed at destroy 2011-12-20 17:45:38 +07:00
scottjehl
aae2d1b22c ensure tapping the toolbar itself (or something in it) will not trigger a toggle of the toolbars. 2011-12-20 17:44:20 +07:00
scottjehl
b70832981d fixed up the failing unit test by ensuring the toolbars were shown before testing for transition classes. 2011-12-20 17:38:06 +07:00
scottjehl
68e7bc562d changed any tests that used :visible or :hidden, because the toolbars are now hidden with absolute positioning, and are aways visible. Instead, checked for presence of hide class. 2011-12-20 17:38:06 +07:00
scottjehl
05d01e70fe Created 33 unit tests for the base features and methods of the fixedtoolbar plugin. 5 tests are currently failing due to a change in logic in the show/hide methods. Those tests just need adjusting, as the feature itself is currently working. 2011-12-20 17:38:05 +07:00
scottjehl
d442a0bc0f removed commented-out code for polyfilling fixed support - it wouldn't have worked as we'd want it to anyway. 2011-12-20 17:38:05 +07:00
scottjehl
6bc63b7f09 fixed the page class name for fullscreen to include "header" or "footer". Also improved the show and hide methods so that they don't apply a transition when showing or hiding a toolbar that is fixed (not fullscreen) when the user is scrolled to the top or bottom of the viewport already. 2011-12-20 17:38:05 +07:00
scottjehl
ba484f2e83 The ui-fixed-hidden class now switches the toolbar's positioning to "absolute" when hidden. This allows a hidden fixed toolbar to still be visible if you scroll to top. Fullscreen toolbars are hidden with a negative left value as well, so that they're entirely off screen. 2011-12-20 17:38:05 +07:00
scottjehl
16f73e737f removed the hideOnScrollStop option and feature - too complicated for a default option. Might be worth supporting as an extension though. 2011-12-20 17:38:05 +07:00
scottjehl
deadbe67b2 changed scrollToggle to hideOnScrollStop, which does just that. It only works if tapToggle is true, so that once hidden, the bar can be toggled visible again with a tap. 2011-12-20 17:38:05 +07:00
scottjehl
6aa3e384fe fixed the restorePageZoom method so that it does what it says on the tin. 2011-12-20 17:38:05 +07:00
scottjehl
32a2e34e07 patched up support for transition: "none" rather than false, for consistency with other uses of the option in jQM. 2011-12-20 17:38:05 +07:00
scottjehl
103f409c47 added new script and associated styles for handling "fixed" toolbars using native support for CSS position: fixed, where possible. Non-supporting platforms will fall back to inline positioning, either by gracefully degrading on their own or by opting them out through a blacklist (fixed positioning detection's got issues...).
unit tests and api documentation coming next, but for the most part, the API is the same as before.
2011-12-20 17:38:05 +07:00
scottjehl
69324e31f0 removed disablezoom function from init 2011-12-20 17:38:05 +07:00
scottjehl
b7bd8b0451 removed fixHeaderFooter files 2011-12-20 17:38:04 +07:00
John Bender
f904de98bf fix improperly camel cased module references 2011-12-19 15:58:13 -08:00
John Bender
f5c5c9a19a support 1.6.4 to 1.7.0 by defaulting to just props where the mouseHooks haven't been added 2011-12-19 13:14:42 -08:00
Todd Parker
286f8c35ff Removed reference to data-role="dialog". Fixes #3294 2011-12-18 20:49:22 -05:00
Todd Parker
cb7918c3fd Merge pull request #3297 from jakeboone02/patch-4
Add missing dd opening tag
2011-12-18 17:20:20 -08:00
Jake Boone
619d944201 Add missing dd opening tag 2011-12-17 15:43:19 -05:00
Todd Parker
34c53b5fe7 Merge pull request #3272 from agcolom/patch-48
Update docs/forms/selects/options.html. Fixes #3256
2011-12-16 11:53:49 -08:00
Todd Parker
de0573e175 Merge pull request #3271 from agcolom/patch-47
Update docs/forms/selects/index.html. Fixes issue #3256
2011-12-16 11:52:48 -08:00
Todd Parker
8d3744b00c Merge pull request #3283 from agcolom/patch-49
Update docs/api/data-attributes.html
2011-12-16 11:48:47 -08:00
Ghislain Seguin
e4bf0b1a8e Merge remote branch 'upstream/master' into amd
Conflicts:
	js/jquery.mobile.hashchange.js
2011-12-15 23:31:35 -08:00
Ghislain Seguin
1f8c9ec832 Fixed casing 2011-12-15 23:07:58 -08:00
Ghislain Seguin
86cd1e4932 Added handling of pragmasOnSave from command line 2011-12-15 22:36:11 -08:00
Ghislain Seguin
ab72921d19 Reverted unwanted changes 2011-12-15 18:26:57 -08:00
Ghislain Seguin
7233f6135e Re-added r.js & require.js 2011-12-15 18:17:07 -08:00
Ghislain Seguin
57a1129bfb Discovered r.js' pragmas use them instead of the hacky solution provided by amd-stripper.js 2011-12-15 18:15:42 -08:00
John Bender
75b50f2c88 add mouse event props to virtual mouse events Fixes #3280 2011-12-15 15:40:07 -08:00
Anne-Gaelle Colom
5df1479b2c Update docs/api/data-attributes.html 2011-12-15 23:24:27 +00:00
Ghislain Seguin
754cc81115 Specified more dependencies 2011-12-15 13:07:55 -08:00
MaZderMind
947a9e24ec fix position of searchbar in touchOverflow mode 2011-12-15 19:42:59 +01:00
John Bender
c7e1bf0c14 update jquery to 1.7.1 Fixes #2965, #3267 2011-12-15 10:35:53 -08:00
Ghislain Seguin
4b416c65cc Revert "Up'd to 1.0.1pre"
This reverts commit 224c68e423.
2011-12-15 09:50:51 -08:00
Mat Marquis
d05ba205e3 Fixes #3238 — Seems markup structure was changed at some stage, making the ‘aria-hidden=true’ attribute a little over-reaching. Removed. 2011-12-15 12:41:18 -05:00
Ghislain Seguin
224c68e423 Up'd to 1.0.1pre 2011-12-15 12:41:18 -05:00
Anne-Gaelle Colom
41da0d7f47 Update docs/forms/selects/options.html 2011-12-15 09:07:58 +00:00
Anne-Gaelle Colom
4a11404ebe Update docs/forms/selects/index.html 2011-12-15 08:54:16 +00:00
Ghislain Seguin
f55cf4d7c4 Moved r.js and require.js to external 2011-12-14 15:31:33 -08:00
Ghislain Seguin
08b89551b2 Use original r.js, externalized stripping of define/require to amd-stripper.js 2011-12-14 15:08:25 -08:00
Ghislain Seguin
ad98a8f13b Added amd-stripper.js 2011-12-14 15:07:06 -08:00
John Bender
15f1c6de66 wait to focus page header until after mobile rendering class is stripped Fixes #2965 2011-12-14 14:48:38 -08:00
Todd Parker
a9e6de3b4c Merge pull request #3261 from jakeboone02/native-select-docs
Corrected native select menu documentation
2011-12-14 14:23:01 -08:00
Todd Parker
eae79651da Merge pull request #3269 from agcolom/master
minor correction + one addition
2011-12-14 10:30:31 -08:00
Anne-Gaelle Colom
1c301a8b3e Update docs/api/data-attributes.html 2011-12-14 18:19:37 +00:00
Anne-Gaelle Colom
be77ab47be Update docs/api/globalconfig.html 2011-12-14 17:53:17 +00:00
Jake Boone
6b32ddf394 Corrected native select menu documentation 2011-12-13 14:36:01 -05:00
Todd Parker
504582e02f Merge pull request #3251 from JFK99/master
Fix non reacting generated back buttons with touchOverflowEnabled. Fixes #3241. Thanks JFK99
2011-12-12 14:35:17 -08:00
Nicolas Bartoli
30255d1fa2 Fixed non reacting generated back buttons with touchOverflowEnabled 2011-12-12 11:00:22 -08:00
jblas@adobe.com
16f1e47e7f Initial checkin of config-props.html, a utility for quickly assessing the support property settings, for a given device/browser, as calculated by jQuery Core and jQuery Mobile. 2011-12-12 10:15:20 -08:00
John Bender
c716ab707a take closestParentPage off of $.fn 2011-12-09 14:39:57 -08:00
John Bender
851f6d4c67 Merge pull request #3171 from eddiemonge/issue_3169.2
Not using YUI for js so removing this line
2011-12-09 14:00:59 -08:00
John Bender
5071221291 respect page loading times and comment on assumption in degradeInputs test 2011-12-09 12:52:53 -08:00
John Bender
def90bf230 whitespace in degradeInputs tests 2011-12-09 12:51:38 -08:00
John Bender
c49eac6e67 added commentary on selector perf and whitespace 2011-12-09 12:36:19 -08:00
John Bender
a80e4c3b4c test that closestPageData works as expected 2011-12-09 12:31:49 -08:00
John Bender
978762dc67 centralized method for finding closest page data 2011-12-09 12:17:20 -08:00
John Bender
2b49d382d8 Merge branch 'master' of https://github.com/eromba/jquery-mobile into eromba-master 2011-12-09 11:50:15 -08:00
Ghislain Seguin
e2606bc690 Re-introduced structure CSS files
Use YUICompressor for CSS compression as it is more efficient than r.js
2011-12-08 14:22:23 -08:00
Ghislain Seguin
ca6fe9bede Changed js and css targets to use r.js and r-jqm.js 2011-12-08 13:48:39 -08:00
Ghislain Seguin
aa1a3cdf49 Updated AMD stripping regexp 2011-12-08 13:48:07 -08:00
Ghislain Seguin
cf04068eba Assume jquery is loaded so don't require it 2011-12-08 10:02:36 -08:00
Ghislain Seguin
2ece69afd5 Merge remote branch 'upstream/master' into amd 2011-12-07 15:45:36 -08:00
Ghislain Seguin
d45e4a1585 Not much, really 2011-12-07 15:44:13 -08:00
Ghislain Seguin
4d4866c017 Renamed r.js to r-jqm.js 2011-12-07 15:42:25 -08:00
Ghislain Seguin
ff25bcc662 Fixed deps 2011-12-07 15:42:08 -08:00
Ghislain Seguin
f37f9c72b3 Fixed deps 2011-12-07 15:41:40 -08:00
Ghislain Seguin
b79de8c168 use define instead of require
use order plugin for init (not ideal)
2011-12-07 15:40:25 -08:00
John Bender
1742820c17 removed dead code path in slider 2011-12-07 10:03:01 -08:00
John Bender
c45160973a Merge branch 'eugenb1-patch-1' 2011-12-06 16:10:12 -08:00
John Bender
7a267e2c7d test that the link title value is the selected option text 2011-12-06 16:09:52 -08:00
John Bender
c0b857ab5e fixed closure compiler warning for missing while block 2011-12-06 15:56:28 -08:00
John Bender
3f9bca14a6 Revert "Merge pull request #3172 from eddiemonge/issue_3169.1"
This reverts commit 9e58b93cc5, reversing
changes made to 97bad66016.
2011-12-06 15:53:06 -08:00
John Bender
9066a0b932 Merge branch 'patch-1' of https://github.com/eugenb1/jquery-mobile into eugenb1-patch-1 2011-12-06 15:18:07 -08:00
John Bender
9e58b93cc5 Merge pull request #3172 from eddiemonge/issue_3169.1
Update IE checker code for compiler
2011-12-06 14:33:08 -08:00
Todd Parker
97bad66016 Merge pull request #3225 from agcolom/patch-46
Update docs/about/features.html
2011-12-06 07:35:06 -08:00
Anne-Gaelle Colom
e25a310063 Update docs/about/features.html 2011-12-06 15:23:19 +00:00
John Bender
cbaa42d63c default emptry string val to 0 on refresh Fixes #3029 2011-12-05 15:38:25 -08:00
John Bender
5f6ce0d651 test that an empty string val results in the min attr value on refresh 2011-12-05 15:38:25 -08:00
Ghislain Seguin
f585df2f53 Merge pull request #3221 from agcolom/patch-45
Update docs/about/features.html
2011-12-05 06:28:55 -08:00
Anne-Gaelle Colom
574040b79d Update docs/about/features.html 2011-12-05 11:42:05 +00:00
Kin Blas
b536eb5672 Merge pull request #3206 from luniki/master
List item pruning while filtering is wrong
2011-12-02 09:25:20 -08:00
Todd Parker
f7c7e90134 Merge pull request #3209 from agcolom/patch-43
Update docs/forms/selects/index.html
2011-12-02 09:14:31 -08:00
Anne-Gaelle Colom
6d22f9b977 Update docs/forms/selects/index.html 2011-12-02 17:03:57 +00:00
Todd Parker
09a001841e Merge pull request #3204 from agcolom/patch-42
Update docs/forms/selects/index.html
2011-12-02 05:09:19 -08:00
Marcus Lunzenauer
98b6ea3fb4 fix list item pruning while filtering 2011-12-02 11:57:55 +01:00
Anne-Gaelle Colom
435fc61a8d Update docs/forms/selects/index.html 2011-12-02 07:54:25 +00:00
Ghislain Seguin
07d21c6666 Actually need order! plugin for controlgroup at least 2011-12-01 17:28:11 -08:00
Ghislain Seguin
271fbeb109 Up'd to 1.0.2 2011-12-01 17:28:11 -08:00
Ghislain Seguin
6f77ee64a0 Added dep on jquery.mobile.core 2011-12-01 17:28:11 -08:00
Ghislain Seguin
cd9d8070ce Added dep on jquery.mobile.core 2011-12-01 17:28:11 -08:00
Ghislain Seguin
dd562968d2 removeClass( "ui-link" ) on first anchor in the li 2011-12-01 17:28:11 -08:00
Ghislain Seguin
b72efb3bec Removed dep on jqm.core 2011-12-01 17:28:11 -08:00
Ghislain Seguin
26df0afd45 Removed submodules 2011-12-01 17:28:10 -08:00
Ghislain Seguin
63da13b8f5 Removed ref to order
Added dir exclusion regex for build
2011-12-01 17:28:10 -08:00
Ghislain Seguin
0fa1cd188b Not using order after all 2011-12-01 17:28:10 -08:00
Ghislain Seguin
0897ef0e96 Updated script tags to use RequireJS to load the jQM 2011-12-01 17:28:10 -08:00
Ghislain Seguin
3d4f524604 Moved $.support.mediaquery to jquery.mobile.media
Set dependencies
2011-12-01 17:28:10 -08:00
Ghislain Seguin
7a90116ee2 Specified dependencies 2011-12-01 17:28:10 -08:00
Ghislain Seguin
82162fe904 Added collapsibleSet 2011-12-01 17:28:10 -08:00
Ghislain Seguin
45c6b309cb Added dep on vmouse 2011-12-01 17:28:10 -08:00
Ghislain Seguin
6b7e83effa Added dep on jquery.mobile.buttonMarkup 2011-12-01 17:28:10 -08:00
Ghislain Seguin
00e62041ed Added r.js 2011-12-01 17:28:10 -08:00
Ghislain Seguin
9bfb4b83f3 Whitespace change 2011-12-01 17:28:10 -08:00
Ghislain Seguin
276fd72b0e Modified shimming condition 2011-12-01 17:28:10 -08:00
Ghislain Seguin
1f9e17172c Added almond.js 2011-12-01 17:28:10 -08:00
Ghislain Seguin
5e19574165 Added RequireJS 1.0 2011-12-01 17:28:09 -08:00
Ghislain Seguin
e9e7b96d01 Removed 2011-12-01 17:28:09 -08:00
Ghislain Seguin
03878b7be8 Added module for docs 2011-12-01 17:28:09 -08:00
Ghislain Seguin
34ce8a8feb Added jQuery AMD shim to support jQuery < 1.7 2011-12-01 17:28:09 -08:00
Ghislain Seguin
c1672dc654 Fixed path to almond.js
Excluded order plugin
2011-12-01 17:28:09 -08:00
Ghislain Seguin
84ad0153f5 Added @import to replace index.php 2011-12-01 17:28:09 -08:00
Ghislain Seguin
91fe1cf8ed stop using require-jquery 2011-12-01 17:28:09 -08:00
Ghislain Seguin
46cd8f8436 added order plugin to the baseUrl directory 2011-12-01 17:28:09 -08:00
Ghislain Seguin
ff5f38a1f2 AMDized 2011-12-01 17:28:09 -08:00
Ghislain Seguin
970ba0432c Moved to AMD 2011-12-01 17:28:08 -08:00
Ghislain Seguin
b32facdd1d Use @imports instead of the PHP combine, r.js will take care of optimization 2011-12-01 17:28:08 -08:00
Ghislain Seguin
6d67f667cc AMD build file 2011-12-01 17:28:08 -08:00
Ghislain Seguin
c76f3551b6 Main AMD module 2011-12-01 17:28:08 -08:00
Ghislain Seguin
6e0b17f19a Added r.js v1.0 2011-12-01 17:28:08 -08:00
Ghislain Seguin
981f7567a7 Added requirejs v1.0 2011-12-01 17:28:08 -08:00
Ghislain Seguin
63292b805d AMDized 2011-12-01 17:28:08 -08:00
Ghislain Seguin
7f14a3dfed AMDized 2011-12-01 17:28:08 -08:00
Ghislain Seguin
c9b029e5df Added almond as a submodule 2011-12-01 17:28:08 -08:00
Ghislain Seguin
16bd333755 Merge pull request #3199 from jakeboone02/patch-3
Spelling correction in jquery.mobile.fixHeaderFooter.js.
2011-12-01 13:35:42 -08:00
Jake Boone
1e669734c3 Spelling correction in jquery.mobile.fixHeaderFooter.js. 2011-12-01 15:33:18 -05:00
Ghislain Seguin
807f7bbe78 Merge pull request #3194 from lamaster/patch-1
fix typo
2011-11-30 13:59:27 -08:00
Lamaster
f63f492917 typo: until is written twice 2011-12-01 03:54:57 +06:00
Eugen Bolz
27f49f0dcf Slider: use also option text as title 2011-11-29 08:35:18 +01:00
toddparker
3442eb88f0 Updated supported browsers to remove iOS form Opera Mobile, that was a typo 2011-11-28 17:43:32 -05:00
jblas@adobe.com
d9983d7390 Fix for #3185 - Dynamic Page load sample: In-Memory broken in IE7
- Removed trailing commas that choke IE from the docs.
2011-11-28 13:23:01 -08:00
jblas@adobe.com
ed05ff8509 Fix for #3185 - Dynamic Page load sample: In-Memory broken in IE7
- Removed trailing commas that choke IE.
2011-11-28 12:18:50 -08:00
toddparker
8975f5b9a0 Added initial-scale to the meta tags 2011-11-28 15:03:12 -05:00
Todd Parker
7637996b03 Merge pull request #3182 from lukeb/patch-1
Typo correction for "followin" to "following"
2011-11-28 05:44:05 -08:00
Luke Brookhart
83aaaea7de Typo correction for "followin" to "following" 2011-11-28 02:32:34 -05:00
Ghislain Seguin
61eb97c8c1 Merge pull request #3181 from jakeboone02/touchoverflow-debug
Improve wording of touchOverflow debugging tip
2011-11-27 21:02:55 -08:00
Jake Boone
4de3b1c4d3 Improve wording of touchOverflow debugging tip 2011-11-27 23:57:42 -05:00
Todd Parker
beffb36856 Merge pull request #3178 from MaZderMind/fix-touchOverflow-with-lists
Fix touch overflow with lists. Thanks MaZderMind
2011-11-27 17:35:09 -08:00
Todd Parker
e35a758b38 Merge pull request #3179 from MaZderMind/document-touchOverflow-debugging
add doumentation about debugging touchOverflow
2011-11-27 17:33:23 -08:00
Peter
32c43cb85f add doumentation about debugging touchOverflow 2011-11-27 22:46:28 +01:00
Peter
e3b58d272f comparing somehow more with the normal mode showed, that the spacing is just 1em 2011-11-27 22:26:44 +01:00
Peter
a7303d870e fix difference in spacing compared to classic mode 2011-11-27 22:16:18 +01:00
Peter
7e18890cd6 fix not-inset-list top position, while keeping inset-lists as they are in touchOverflow mode 2011-11-27 21:34:42 +01:00
Todd Parker
988c74b5bf Merge pull request #3176 from agcolom/patch-41
Update docs/_assets/css/jqm-docs.css
2011-11-27 09:03:11 -08:00
Anne-Gaelle Colom
0b38378877 Update docs/_assets/css/jqm-docs.css 2011-11-27 16:36:19 +00:00
Todd Parker
2f5096f792 Merge pull request #3175 from agcolom/patch-40
Update docs/api/events.html
2011-11-27 08:21:32 -08:00
Anne-Gaelle Colom
3ab8406e41 Update docs/api/events.html 2011-11-27 15:03:34 +00:00
Todd Parker
d8efb8a4ef Merge pull request #3174 from jakeboone02/patch-2
Make scope of <strong> tags match in data-filtertext examples
2011-11-26 19:24:24 -08:00
Jake Boone
c8b6a2dd6a Make scope of <strong> tags match in data-filtertext examples 2011-11-26 22:22:52 -05:00
Ghislain Seguin
1f2b371a62 Merge pull request #3173 from agcolom/patch-39
Update docs/api/globalconfig.html
2011-11-26 14:15:40 -08:00
Anne-Gaelle Colom
114c978c34 Update docs/api/globalconfig.html 2011-11-26 22:14:26 +00:00
John Bender
50d1f9177a Merge pull request #3168 from eddiemonge/issue_3159
Dont output errors to js file, increase cache size
2011-11-26 13:45:42 -08:00
Eddie Monge
43d83e2ef9 Not using YUI for js so removing this line 2011-11-26 12:27:31 -08:00
Eddie Monge
26dc452dc9 Update IE checker code for compiler 2011-11-26 12:21:18 -08:00
Eddie Monge
8dfa5f9ca9 Log levels dont need to be quieted anymore 2011-11-26 12:01:46 -08:00
Eddie Monge
a922b8fe02 Dont output errors to js file, increase cache size 2011-11-26 10:39:54 -08:00
Todd Parker
23f1937bf3 Merge pull request #3167 from forresst/patch-1
page overflow : repetition of word "can"
2011-11-26 08:47:54 -08:00
forresst
e02ca5de6c repetition of word "can" 2011-11-26 17:21:42 +01:00
toddparker
ee7f60914f Added a bit of extra info on the step attribute, general cleanup. 2011-11-25 21:58:45 -05:00
toddparker
e5de3e3221 A bit more formatting cleanup 2011-11-25 21:28:21 -05:00
toddparker
ecb8ad5884 Improved description and sample data for the filter text page 2011-11-25 21:18:03 -05:00
Todd Parker
f8dcaa2713 Merge pull request #3165 from MaZderMind/fix-touchOverflow-with-lists
fix css in touch-overflow example. Thanks MaZderMind!
2011-11-25 11:39:47 -08:00
Peter Körner
3d40a6a668 fix css in touch-overflow example 2011-11-25 16:01:13 +01:00
Todd Parker
37a0795e7a Merge pull request #3162 from forresst/patch-3
Update docs/lists/lists-split.html
2011-11-24 15:24:38 -08:00
Todd Parker
dbc565af0d Merge pull request #3161 from forresst/patch-2
Update docs/lists/lists-count.html
2011-11-24 15:24:03 -08:00
forresst
2a8b548e7d Update docs/lists/lists-split.html 2011-11-25 00:14:18 +01:00
forresst
773c17d210 Update docs/lists/lists-count.html 2011-11-25 00:11:55 +01:00
Todd Parker
b24c9b3835 Merge pull request #3160 from forresst/patch-1
Update docs/pages/phonegap.html
2011-11-24 14:56:11 -08:00
forresst
a790ba040e Update docs/pages/phonegap.html 2011-11-24 23:52:18 +01:00
Todd Parker
88023f8dab Merge pull request #3158 from jakeboone02/docs-filtertext
Document data-filtertext attribute for listview items
2011-11-24 09:24:15 -08:00
Jake Boone
ad69fed1b8 Add page to docs for filtering lists by hidden data 2011-11-24 12:15:32 -05:00
Jake Boone
37499c4df9 Document data-filtertext attribute 2011-11-24 11:23:01 -05:00
John Bender
1f6f149e83 add step to slider example 2011-11-23 13:59:28 -08:00
John Bender
d0911d3cd6 whitespace in slider docs index 2011-11-23 13:59:05 -08:00
John Bender
b4f945f73b test steps in refresh 2011-11-23 13:30:40 -08:00
John Bender
3b78250b17 comment linebreak 2011-11-23 13:30:40 -08:00
John Bender
3b83d4e032 force round numbers to avoid testing step rounding in keypress tests 2011-11-23 13:30:40 -08:00
John Bender
3e47bff3ff whitespace and spelling correction 2011-11-23 13:30:40 -08:00
jrowny
1597d756d8 slider step, remove round clean up code a bit 2011-11-23 13:30:40 -08:00
jrowny
e09374b41d add slider step support from jQuery UI 2011-11-23 13:30:40 -08:00
jrowny
7d204230f0 Add slider step support from jQuery UI 2011-11-23 13:30:40 -08:00
John Bender
47cf8d61b1 remove chrome ref 2011-11-22 13:16:18 -08:00
John Bender
f49fe2082b record enhancement time and pageprocessing, both of which ignore the network load time of the jqm js 2011-11-22 13:16:18 -08:00
Todd Parker
dd7a89c637 Merge pull request #3139 from agcolom/patch-38
Update docs/pages/page-dynamic.html
2011-11-22 12:55:28 -08:00
Anne-Gaelle Colom
cbcc0642de Update docs/pages/page-dynamic.html 2011-11-22 20:50:11 +00:00
John Bender
7c1cf95909 account for optional 'U;' in iPad ua. The fun continues 2011-11-22 11:06:08 -08:00
John Bender
7d7c913b64 fix for float value appearing earlier in ua string
surprised this didn't pop up earlier on android. I ❤️ ua strings.
2011-11-22 10:52:30 -08:00
John Bender
a4e09c8ad5 target the page through the event, simplify the href selection, account for ajax page loads 2011-11-22 10:36:24 -08:00
Eddie Monge
c787743a79 Add in more link rewrite test cases, and warning message 2011-11-22 10:36:24 -08:00
Eddie Monge
d64dd4fa2d Allow unlimited sub-directory replacements 2011-11-22 10:36:24 -08:00
Eddie Monge
92e198c04c Add check to see if ajax should be disabled 2011-11-22 10:36:24 -08:00
Eddie Monge
aa8b0b7cfd Ajax should be disabled instead 2011-11-22 10:36:24 -08:00
Eddie Monge
3f522a2bce Allow local browsing of the docs without a web server 2011-11-22 10:36:24 -08:00
Kin Blas
2b40784c4e Merge pull request #3122 from hpbuniat/closestEnabledButton-speedup
Minor performance optimization for closestEnabledButton in buttonMarkup
2011-11-21 16:35:19 -08:00
Ethan Romba
a8c04855b4 Issue #3081: Range inputs on dialogs don't degrade
The degradeInputs plugin bails early for pages that do not have
data-role="page". This behavior prevented range inputs (for slider widgets)
from degrading properly when used in dialogs.

Updated degradeInputs unit tests to check dialogs, too.
2011-11-21 16:47:14 -06:00
John Bender
7c62253ee5 Merge pull request #3097 from eddiemonge/intro
Old file that was replaced by license.txt in the root folder
2011-11-21 14:40:01 -08:00
John Bender
a9d9ca3dac test navbar button click functionality 2011-11-21 13:09:00 -08:00
John Bender
c80428062a move to hasClass check to avoid psuedo selector slowdown 2011-11-21 13:09:00 -08:00
Thomas Lallement
9d6ca3cc11 Edited js/jquery.mobile.navbar.js via GitHub 2011-11-21 13:09:00 -08:00
John Bender
6f00d35db8 move pagechange binding for textarea autogrow outside the check for text content 2011-11-21 10:15:47 -08:00
Hans-Peter Buniat
f3f5ba62e5 changed $.inArray to indexOf in closestEnabledButton - see http://jsperf.com/fsdsgt4 2011-11-20 23:32:14 +01:00
Todd Parker
e918442bbb Merge pull request #3112 from eddiemonge/make_file
Add images to the docs, fix cp syntax, rearrange build dependencies to ...
2011-11-18 19:16:35 -08:00
Eddie Monge
5acc18a215 Add images to the docs, fix cp syntax, rearrange build dependencies to be consistent 2011-11-18 19:01:04 -08:00
Todd Parker
574cafaebf Merge pull request #3111 from MauriceG/patch-19
Found a beta-release reference
2011-11-18 17:39:58 -08:00
Maurice Gottlieb
b2a769d984 propose for invisible beta-release paragraph 2011-11-19 02:13:54 +01:00
jblas@adobe.com
28b68f4d37 js/jquery.mobile.collapsibleSet.js was missing from the build. 2011-11-18 13:24:07 -08:00
Eddie Monge
ff6a349229 Old file that was replaced by license.txt in the root folder 2011-11-17 17:47:06 -08:00
Ghislain Seguin
c693561909 Merge pull request #3094 from eddiemonge/makefile
Fix license version and zip folder
2011-11-17 17:42:57 -08:00
Eddie Monge
5f2c4025ad Add the current git version to the build process when its not a stable build 2011-11-17 15:53:32 -08:00
Ghislain Seguin
3542c9c0b1 Merge pull request #3008 from eddiemonge/live-delegate
Change .live() to .delegate()
2011-11-17 15:13:29 -08:00
Mat Marquis
a0ec2eb4f3 Fixes #3086 — Windows Phone 7 seems unable to use find() for an attribute-based selector, in this context. 2011-11-17 18:08:05 -05:00
Ghislain Seguin
61cd735d72 Merge pull request #3096 from chrisben/master
Issue #2650: optimisation of png images
2011-11-17 14:22:16 -08:00
tichou
5460ae3a4f Optmised png images for both Default and Valencia themes 2011-11-17 22:56:23 +01:00
Eddie Monge
8c6498fdc3 Fix license version and zip folder 2011-11-17 11:47:03 -08:00
Ghislain Seguin
3d17a69d8b Merge pull request #3010 from gseguin/issue-2905
Decoupled collapsible and collapsible set
2011-11-17 09:35:05 -08:00
Ghislain Seguin
0e418c366c Up'd to 1.1pre 2011-11-17 09:31:51 -08:00
toddparker
d5d78f46e1 Tweaks to custom select menu pages 2011-11-17 11:42:49 -05:00
toddparker
ed6a084897 Fixed rc3 link in page template 2011-11-17 11:25:15 -05:00
toddparker
d1d5e09f95 Re-vamped getting started page, changed CDN refs to 1.0, added 1.0 final banner 2011-11-17 11:20:48 -05:00
Ghislain Seguin
98b1ed63d8 Merge pull request #3079 from eddiemonge/deploy
Deploy
2011-11-17 08:12:37 -08:00
Ghislain Seguin
93d3d41b1d Merge pull request #3055 from eddiemonge/patch-11
combine the css structure min and license files
2011-11-17 08:12:00 -08:00
Todd Parker
c5213aa48e Merge pull request #3089 from MauriceG/master
Fixing some typos at docs/about/getting-started and propose an explanation for the apparently overwritten collapsible paragraph.
2011-11-17 05:23:48 -08:00
Maurice Gottlieb
9a02a9f110 Fixing some typos at docs/about/getting-started 2011-11-17 12:50:22 +01:00
Todd Parker
5468ca32c9 Adjusted heading level 2011-11-17 02:14:49 -05:00
Todd Parker
7baa752cd3 Added a new Quick start guide page 2011-11-17 02:00:59 -05:00
Ghislain Seguin
afd21e209d Merge pull request #3080 from eddiemonge/small_img
Make one photo half its size while retaining the same quality
2011-11-16 17:45:19 -08:00
Eddie Monge
4a1f4f8a02 Add quiet option to scp 2011-11-16 17:35:25 -08:00
Eddie Monge
ecf0b97536 Update the deployed files to use the CDN for the resources 2011-11-16 17:04:22 -08:00
Eddie Monge
6b67d8009c Make one photo half its size while retaining the same quality 2011-11-16 17:02:28 -08:00
Mat Marquis
cb89aceb77 Updated docs to split native/custom selects into two separate pages. 2011-11-16 18:27:45 -05:00
Mat Marquis
ff93c76037 Fixes #3041 — Cleans up the support test for Opera Mini and opts it out of fixed toolbar behavior. 2011-11-16 17:13:13 -05:00
Mat Marquis
b4eef42e18 Fixes #3026 — Regression introduced by 01c77fa. 2011-11-16 15:25:00 -05:00
Mat Marquis
f016c2dc21 Ensures that dialogs’ content elements _do_ inherit the overall page theme. 2011-11-16 15:25:00 -05:00
Todd Parker
b78584b964 Merge pull request #3075 from agcolom/patch-36
Update docs/pages/pages-themes.html
2011-11-16 12:04:23 -08:00
Anne-Gaelle Colom
f89a925b7e Update docs/pages/pages-themes.html 2011-11-16 19:56:35 +00:00
Mat Marquis
4c5e85cc50 Correctly addresses #3020 — “Content” elements now correctly apply themes, but do not inherit the theme set on the overall page. 2011-11-16 10:35:03 -05:00
Todd Parker
e7a3623771 Merge pull request #3064 from jakeboone02/f-swatch-gradients-syntax
Docs: modified f-swatch gradient syntax to match default theme
2011-11-15 20:09:05 -08:00
Jake Boone
be8f75086e Modified f-swatch gradient syntax to match default theme 2011-11-15 21:39:58 -05:00
jblas@adobe.com
16aafad67e Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-15 16:18:50 -08:00
jblas@adobe.com
098eed9c3b Fix for #2826 - an error occurred with click event on svg element using "live" or "delegate"
- Modified findClosestLink() to check the ele.nodeName type before trying to access it.
2011-11-15 16:17:14 -08:00
Mat Marquis
b3e65595e6 Fixes #3053 — I was a little overzealous in ensuring “content” elements didn’t inherit a theme if it wasn’t intended. 2011-11-15 17:37:14 -05:00
toddparker
fcce0c4915 Removed left/right border on swatch F for the docs to prevent horizontal scrolling. Fixes #3045 2011-11-15 16:17:50 -05:00
Todd Parker
03b1ce3693 Merge pull request #3061 from MauriceG/patch-16
docs/forms: adding a disabled slider (not just) for testing purpose (#3058)
2011-11-15 11:19:55 -08:00
Maurice Gottlieb
718a0acf6d adding a disabled slider for testing purpose (#3058)
change name-attribute of the flipswitch for consistency
2011-11-15 20:01:40 +01:00
toddparker
31144912f0 Added notes about linking to multi-page docs and added a link to the subpage plugin 2011-11-15 13:47:18 -05:00
jblas@adobe.com
116fd5fdc5 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-15 10:23:18 -08:00
jblas@adobe.com
afb7bab90f Test case for issues:
3046 - closestEnabledButton() conflicts with OpenLayers
3054 - RC3 - button conflicts with svg element, throws error: Uncaught TypeError: Object #<SVGAnimatedString> has no method 'split'
2011-11-15 10:22:36 -08:00
Mat Marquis
d9ceb85ffb Merge pull request #3059 from MauriceG/master
fixing two other issues at docs/pages/pages-themes/theme-a and theme-e
2011-11-15 10:20:06 -08:00
jblas@adobe.com
ba8458daef Fix for issues:
- Modified findClosestEnabledButton() so that instead of checking for existence of ele.className, before using it, that it check for typeof ele.className === 'string'. This prevents us from looking at the className property of SVG elements which actually use type SVGAnimatedString which does not have the split() function in its API.
2011-11-15 10:19:37 -08:00
Maurice Gottlieb
d89c5cc063 fixing two other issues at docs/pages/pages-themes/ 2011-11-15 19:06:44 +01:00
Todd Parker
7a0df3e62c Merge pull request #3048 from agcolom/patch-34
Update docs/pages/page-navmodel.html
2011-11-15 09:41:11 -08:00
Todd Parker
6a0c19cc3a Merge pull request #3052 from agcolom/patch-35
Update docs/pages/multipage-template.html
2011-11-15 09:17:16 -08:00
Todd Parker
38ab30c6cb Merge pull request #3057 from MauriceG/master
Some corrections for the docs/pages/pages-themes/theme-x pages
2011-11-15 09:13:20 -08:00
Eddie Monge Jr.
0d283cb4ec combine the css structure min and license files 2011-11-15 09:04:16 -08:00
toddparker
c2315215fe Added more info to the touchOverflow docs, added links to good test page from the config page 2011-11-15 11:32:57 -05:00
Maurice Gottlieb
20e6002dbd fixing copy/paste typo at collapsible content description 2011-11-15 17:14:26 +01:00
Maurice Gottlieb
e33549ea9c fixing a typo at the e-swatch-page-link and a copy/paste typo at collapsible content description 2011-11-15 17:13:34 +01:00
Maurice Gottlieb
4e2aebaa36 fixing copy/paste typo at collapsible content description 2011-11-15 17:11:54 +01:00
Maurice Gottlieb
f3c2f4df5a fixing copy/paste typo at collapsible content description 2011-11-15 17:10:29 +01:00
Maurice Gottlieb
3b8a389b86 setting the header-data-theme to swatch b for consistency otherwise it defaults to swatch a,
fixing copy/paste typo at collapsible content description
2011-11-15 17:08:43 +01:00
Anne-Gaelle Colom
c3bfd324dd Update docs/pages/multipage-template.html 2011-11-15 14:51:07 +00:00
Anne-Gaelle Colom
7796c4182f Update docs/pages/page-navmodel.html 2011-11-15 08:34:10 +00:00
jblas@adobe.com
b8dcdc9657 A simple bookmarklet that allows us to attach to a jQuery Mobile application and throw an alert that displays the load, enhancment, and transition times for a page the user navigates to. 2011-11-14 16:22:39 -08:00
Todd Parker
ee779f29d6 Merge pull request #3044 from agcolom/patch-33
Update docs/pages/page-navmodel.html
2011-11-14 15:49:35 -08:00
Anne-Gaelle Colom
fb51bfad75 Update docs/pages/page-navmodel.html 2011-11-14 23:11:23 +00:00
Todd Parker
e530125237 Merge pull request #3042 from MauriceG/patch-15
Docs: fixing some typos at docs / content / content-themes.html
2011-11-14 14:55:04 -08:00
Todd Parker
9fd512503f Merge pull request #3043 from garann/c3fb688701aa418f6a9df549dd535fad76d9ea60
Proofreading fixes to touchOverflow doc
2011-11-14 14:54:34 -08:00
John Bender
c0880137b9 account for droid x ua string 2011-11-14 14:11:47 -08:00
Mat Marquis
86f639b286 Fixing ‘home’ link on new theme pages. 2011-11-14 16:56:30 -05:00
Mat Marquis
d52b02f60f Fixes footer nav links on new theme pages. 2011-11-14 16:53:17 -05:00
Mat Marquis
e69d8a5854 Kludged a little padding into the theme nav. Tell no one of this. 2011-11-14 16:48:59 -05:00
toddparker
59099abd31 Removed controlgroup 2011-11-14 16:39:50 -05:00
toddparker
3a6e35dd0e Updated references from RC2 to RC3 for release 2011-11-14 16:29:58 -05:00
Maurice Gottlieb
e516ab90fc fixing some typos at docs / content / content-themes.html 2011-11-14 21:49:32 +01:00
John Bender
cf521ea062 missing escape 2011-11-14 11:27:26 -08:00
John Bender
bfb42ff3f3 account for lack of 'mobile' in android ua strings 2011-11-14 11:25:22 -08:00
John Bender
ba8030e4f3 account for minor version only android version strings 2011-11-14 11:11:34 -08:00
John Bender
c8d06f5d86 union the non android entries with android entries where we trim the version number down to the minor version 2011-11-14 11:05:50 -08:00
Garann Means
c3fb688701 Minor copy edits to touchOverflow docs. 2011-11-14 13:00:30 -06:00
John Bender
54e9cc6466 test list view parent theme inheritance 2011-11-14 10:13:07 -08:00
jblas@adobe.com
db2782b564 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-14 09:45:21 -08:00
John Bender
3e93c2969a move the agent_version forward in the table caption and correct data attribute name 2011-11-14 09:43:34 -08:00
jblas@adobe.com
3353649a29 Uh, yeah, I'll take back another 700 msecs on WP7.5 (Mango) and 200 msecs on iPad. Thank You.
- Don't set the item class on the list item or it's btn-inner children until after the main processing loop. We now use a dictionary of item-classes to track what items get what set of classes and then set them all afterwards. This cuts down the per-item addClass() and children() function overhead significantly and gets us big wins on platforms like WP 7.5
2011-11-14 09:42:48 -08:00
John Bender
db87885f60 fixed dom selection issue 2011-11-14 09:39:29 -08:00
John Bender
1675d44bff simple time grouping to fix issues without aggregation 2011-11-14 09:39:29 -08:00
Mat Marquis
48de5f4209 Minor width tweak to slider input; prevents slider from breaking to second line at ~320px. 2011-11-14 12:17:53 -05:00
Mat Marquis
f62c5c01b3 Fixes #3028 — Listviews themselves are now inheriting the theme set at the page level. Individual list items remain themeable. 2011-11-14 12:02:42 -05:00
toddparker
b90eab4935 New black icon sprites based on the white version
Copied the 18 and 36px white icon and flipped it to black to ensure
that these are identical. Cleaned up antialiasing issues on the black
icons too. Added to valencia and default themes.
2011-11-13 23:08:04 -05:00
toddparker
581c4224a2 Updated 18px black icons sprite to match the latest white version 2011-11-13 22:41:52 -05:00
toddparker
da67275c13 Added theme roller link 2011-11-13 22:29:16 -05:00
toddparker
5470eaf124 Text edits to the supported browser page 2011-11-13 21:39:00 -05:00
toddparker
94defe7caf Added links to the data- attribute reference to key pages, removed old API pages 2011-11-13 21:13:53 -05:00
toddparker
e86b10ea55 Added info on calling the list view plugin, refreshing, linked up data attar page 2011-11-13 21:05:06 -05:00
toddparker
abdab6ea18 Language tweaks 2011-11-13 20:43:12 -05:00
Todd Parker
0ece0fa067 Merge pull request #3030 from MauriceG/patch-11
docs: lists/theming lists/LI-level theming: adding missing anchor tag to list-item
2011-11-13 17:28:38 -08:00
Todd Parker
693d470313 Merge pull request #3034 from MauriceG/patch-14
docs: fixing some typos at docs/forms/slider/index.html
2011-11-12 08:46:12 -08:00
Maurice Gottlieb
ef065cabaf fixing some typos at docs/forms/slider/index.html 2011-11-12 16:58:52 +01:00
Todd Parker
7c3268a305 Merge pull request #3032 from jakeboone02/patch-1
Fix comments
2011-11-12 07:33:01 -08:00
jakeboone02
9040f56c53 Fix comments 2011-11-12 10:26:20 -05:00
Maurice Gottlieb
f99230eb40 adding missing anchor tag 2011-11-12 13:47:35 +01:00
Mat Marquis
b2106887d8 Merge remote-tracking branch 'upstream/master' 2011-11-11 18:54:48 -05:00
Mat Marquis
cbc5a34e17 Added full-page theme examples for the sake of testing theme inheritance — see issue #3028. 2011-11-11 18:52:22 -05:00
jblas@adobe.com
0e0435ed1c Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-11 14:54:05 -08:00
jblas@adobe.com
6bd8f7a85b Reclaiming another 200-300 msecs on the 400 listview item page for iPad and WP7.5.
- Use $.data() instead of $.fn.data() in buttonMarkup().
- Avoid excess function overhead with a filtered children() call by walking the DOM ourselves in listview code.
2011-11-11 14:51:58 -08:00
toddparker
134bdcfc20 Updated graded support to remove Opera from WinMo, removed iOS5 (beta), added N9 2011-11-11 17:29:59 -05:00
Todd Parker
88bdc41ffb Merge pull request #3027 from jasonlcrane/lists-readonly-1
Update docs/lists/lists-readonly.html
2011-11-11 14:17:58 -08:00
Jason Crane
874eab7cb7 Removed "Inset" from header and minor tweaks. 2011-11-11 21:11:40 +00:00
Mat Marquis
5262c2be56 Fixes #3020 — Theme-dependent backgrounds should be applied only to ‘data-role=content’ within a dialog. 2011-11-11 15:20:36 -05:00
John Bender
00d604ccc4 Merge branch 'frietsch-master' 2011-11-11 12:09:17 -08:00
John Bender
ced1f865a2 whitespace and a comment on setting buttonPlaceholder to undefined 2011-11-11 12:08:59 -08:00
frietsch
c824b16816 Bugfix: If a named submit button was clicked multiple times, the name wasn't sent in 2nd ... nth time. 2011-11-11 12:08:59 -08:00
frietsch
b051c3203e Bugfix: If a named submit button was clicked multiple times, the name wasn't sent in 2nd ... nth time. 2011-11-11 12:08:59 -08:00
John Bender
d35b86fea0 test that the hidden element for input button submission is added many times 2011-11-11 12:08:24 -08:00
John Bender
73508f1dbf Merge branch 'pbosakov-issue_2821' 2011-11-11 11:20:57 -08:00
John Bender
46f6c678eb simplify nested branches 2011-11-11 11:20:30 -08:00
Todd Parker
de75527f78 Merge pull request #3024 from garann/master
Subjective edits to PhoneGap doc to make references to webviews consistent
2011-11-11 10:41:59 -08:00
jblas@adobe.com
343161c972 Reclaim 250 msecs on iPad and WP7.5 (Mango) by simply combining find().filter() calls and getting rid of fake pseudo selectors :eq(0) and :last. 2011-11-11 10:31:31 -08:00
Todd Parker
7406ea258a Merge pull request #3023 from garann/22d29992da740dfb12976d94514967d014044ec9
Small copy edits (typos, etc.) to the PhoneGap doc. Thanks garran
2011-11-11 10:05:01 -08:00
Garann Means
8f66cbe70c made references to webviews in PhoneGap docs consistent *twitch* 2011-11-11 12:01:13 -06:00
John Bender
1f20d7c002 Merge branch 'issue_2821' of https://github.com/pbosakov/jquery-mobile into pbosakov-issue_2821 2011-11-11 09:58:16 -08:00
Garann Means
22d29992da minor copy edits to the PhoneGap doc 2011-11-11 11:56:05 -06:00
Garann Means
ef05fd045f Merge remote-tracking branch 'upstream/master' 2011-11-11 11:45:14 -06:00
Todd Parker
48e5ce0343 Merge pull request #3022 from agcolom/patch-32
Update docs/pages/page-links.html
2011-11-11 08:50:05 -08:00
Anne-Gaelle Colom
b6deb43274 Update docs/pages/page-links.html 2011-11-11 16:44:46 +00:00
toddparker
6ac52d855a Added more info on how to add custom and HD icons 2011-11-11 10:27:18 -05:00
toddparker
3af9d83e51 Language tweak 2011-11-10 23:32:06 -05:00
toddparker
915b9e528b AddedTouchoverflow docs page, re-vamped transitions page to add info on adding cutom CSS and JS transitions 2011-11-10 23:28:49 -05:00
toddparker
2a1f95d7c7 Added new PhoneGap page, updated navigation 2011-11-10 21:59:50 -05:00
John Bender
f501712617 Merge pull request #2919 from redaemn/flip-switch-improvements
Corrected some tests for the slider widget
2011-11-10 15:10:38 -08:00
jblas@adobe.com
ac8a7c7cb9 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-10 14:15:25 -08:00
jblas@adobe.com
87070cc690 Reclaiming another 700-800 msecs on the 400 listview item test for WP7.5 (Mango) with a few minor tweaks:
- Added _findFirstElementByTagName() which does basic DOM traversal to find the first of an element with the given nodeName. Use this in place of $.fn.closest() and $.fn.children() calls that filter with ":eq(0)".
- Avoid calling $.fn.add() if you can. The creation of the new collection is costing about 400 msecs.
- Avoid calling $() with markup for a single node, just use document.createElement() and pass it to $().
2011-11-10 14:15:12 -08:00
John Bender
458ba65681 switched to bar chart per @toddparker 2011-11-10 11:42:28 -08:00
John Bender
eedb9ce8ac todo added to the chart display 2011-11-10 11:24:54 -08:00
John Bender
1572867147 decode get params when refining stats data 2011-11-10 10:55:14 -08:00
John Bender
4da7e378c2 create new tables based on agent version 2011-11-10 10:52:04 -08:00
John Bender
be1852827c close element creation tags 2011-11-10 10:29:15 -08:00
John Bender
cdfe8d157a remove id dependency on the data point 2011-11-10 10:18:28 -08:00
Ghislain Seguin
b4df2ecfb2 Added some more negative testing for theming 2011-11-10 10:10:08 -08:00
John Bender
477f85c500 blackberry ua support 2011-11-10 10:01:39 -08:00
Ghislain Seguin
c2436806f4 Removed double setting of ui-body- class on collapsible content 2011-11-10 09:54:58 -08:00
John Bender
633b5e089c Merge pull request #3015 from eddiemonge/patch-9
Update README.md
2011-11-10 09:54:47 -08:00
Eddie Monge Jr.
1296abb80f Update README.md 2011-11-10 09:53:48 -08:00
Ghislain Seguin
eb28b7ec57 Removed console.debug 2011-11-10 09:36:44 -08:00
Ghislain Seguin
3b13aaf288 Re-applied Kin's optimizations 2011-11-10 09:36:44 -08:00
Ghislain Seguin
6d4274fd6c Decoupled collapsible and collapsible-set
That fixes issue #2905 as well
2011-11-10 09:36:44 -08:00
Ghislain Seguin
94389bdcad Renamed variable 2011-11-10 09:36:44 -08:00
John Bender
d5ab078cdd Merge pull request #3009 from eddiemonge/server
Update Makefile to actually work on the server
2011-11-10 09:29:49 -08:00
John Bender
9a13fc0b35 added iPhone and iPad UA strings 2011-11-10 09:23:49 -08:00
Ghislain Seguin
4bba893940 Fixed custom select dialog header styling 2011-11-10 09:17:31 -08:00
Ghislain Seguin
acdbd8f1b7 Renamed variable 2011-11-10 09:17:31 -08:00
Todd Parker
2f6af4b991 Merge pull request #3014 from jasonlcrane/docs-list-1
Update docs/lists/docs-lists.html
2011-11-10 09:14:48 -08:00
John Bender
c1a6ea10e5 formatting in php for sanity 2011-11-10 09:04:18 -08:00
John Bender
5734ca62c6 add ability to refine data display to a user agent or data point 2011-11-10 09:04:18 -08:00
John Bender
f74d117aec simple user agent tracking and collection added to perf javascript 2011-11-10 09:04:18 -08:00
Jason Crane
810781ef87 Rewording for clarity and added a couple links 2011-11-10 16:57:09 +00:00
Jason Crane
c37ee3e882 Merge remote branch 'original/master' 2011-11-10 15:04:46 +00:00
Todd Parker
3edb68506d Merge pull request #3012 from agcolom/patch-30
Update docs/pages/page-cache.html
2011-11-10 04:41:27 -08:00
Todd Parker
1fe2e4434a Merge pull request #3013 from agcolom/patch-31
Update docs/pages/page-scripting.html
2011-11-10 04:38:38 -08:00
Anne-Gaelle Colom
245669f2dd Update docs/pages/page-scripting.html 2011-11-10 11:05:27 +00:00
Anne-Gaelle Colom
8f671be320 Update docs/pages/page-cache.html 2011-11-10 10:50:59 +00:00
John Bender
8ef15e82cc correction to license include in js/index.php 2011-11-09 22:36:00 -08:00
jblas@adobe.com
a8a6f58d3e Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-09 18:02:27 -08:00
jblas@adobe.com
8e23813d25 Got rid of pseudo selectors :header and :eq(0) since they take a long time on WP7.5 (Mango). This shaves off 300 msecs when loading the form gallery page. 2011-11-09 17:59:25 -08:00
Eddie Monge
b7cd2128dd Why three lines when 2 will suffice? 2011-11-09 17:57:50 -08:00
Eddie Monge
366d33ead0 Update Makefile to actually work on the server 2011-11-09 17:43:37 -08:00
John Bender
547e409707 Merge pull request #2999 from eddiemonge/server
Server
2011-11-09 16:14:45 -08:00
Eddie Monge
cd39c73d73 Merge in makefile 2011-11-09 16:06:33 -08:00
Eddie Monge
c367c832e2 Change .live() to .delegate() 2011-11-09 16:01:37 -08:00
John Bender
7085843b74 moved info text to license-info.txt 2011-11-09 16:00:25 -08:00
John Bender
989f7f1542 move intro to text for css combine, js combine, and makefile use 2011-11-09 15:45:08 -08:00
Mat Marquis
2212d7428c Merge branch 'master' of github.com:jquery/jquery-mobile 2011-11-09 18:34:17 -05:00
John Bender
3fdb12600e Merge pull request #2994 from eddiemonge/5535e24c46c95f16b437c0ebec8c19094caf18a7
License Changes
2011-11-09 15:27:25 -08:00
Mat Marquis
01c77fa9e1 Fixes #2588 — When Windows Phone 7.5 (Mango) tries to calculate a numeric opacity for a select—including “inherit”—without explicitly specifying an opacity on the parent to give it context, a bug appears where clicking elsewhere on the page after opening the select will open the select again. 2011-11-09 18:25:06 -05:00
Eddie Monge
75341c6ca7 Update the README to include instructions for including a custom theme 2011-11-09 14:56:38 -08:00
Ghislain Seguin
1b2f1d8e40 Merge pull request #2894 from MauriceG/patch-3
Fix for #2893: Buttons keep ui-btn-down-x class if leaved with mouse button pressed
2011-11-09 13:46:04 -08:00
John Bender
1d4109295d textinput whitespace 2011-11-09 11:43:40 -08:00
John Bender
d50aa91e6d comment clarification 2011-11-09 11:42:57 -08:00
John Bender
50204053bc test for page load text area autogrow 2011-11-09 11:35:22 -08:00
John Bender
3f52c482d0 account for css load in initial document load and page transition with text area autogrow 2011-11-09 11:35:21 -08:00
Ghislain Seguin
99783f4803 Merge pull request #2997 from eddiemonge/docs
Unify css and js references for doc changes
2011-11-09 10:56:44 -08:00
John Bender
fb2544b8a1 add some maring to account for silly large number strings on our perf charts 2011-11-09 10:10:57 -08:00
Mat Marquis
fab9de10b4 Merge pull request #3004 from eddiemonge/patch-7
Fixes #509
2011-11-09 08:43:29 -08:00
Eddie Monge Jr.
6b5ca6311a Remove unneeded css as height will suffice. Trigger the inputs keyup. Im not sure calling $(keyup) called the function on the element. 2011-11-09 08:32:00 -08:00
Eddie Monge
a213cfa281 Complete overhaul of Make process to be cleaner, clearer and server-friendly 2011-11-09 01:39:25 -08:00
Ghislain Seguin
8fb55a8afa Merge pull request #2974 from agcolom/patch-16
Update docs/toolbars/docs-bars.html
2011-11-08 22:45:55 -08:00
Eddie Monge
6cf19b1220 Merge branch 'master' of https://github.com/jquery/jquery-mobile into server
* 'master' of https://github.com/jquery/jquery-mobile:
  Speed up listview enhancement for WP 7.5 (Mango). This change allows the 400 listview item page to load in 3-4 seconds instead of 30 seconds.
2011-11-08 21:01:20 -08:00
Eddie Monge
88884db175 Unify css and js references for doc changes 2011-11-08 18:39:49 -08:00
jblas@adobe.com
cb820f6e5d Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-08 17:07:18 -08:00
jblas@adobe.com
76766a635f Speed up listview enhancement for WP 7.5 (Mango). This change allows the 400 listview item page to load in 3-4 seconds instead of 30 seconds.
- Modified refresh() so that it manually checks for the first image in the list item or .ui-link-inherit element. This allows us to avoid executing a selector with a direct descendant and :eq(0) pseudo which is quite slow on WP 7.5 IE.
2011-11-08 17:04:41 -08:00
Eddie Monge
9336d8e02b Merge branch 'master' of https://github.com/jquery/jquery-mobile into server
* 'master' of https://github.com/jquery/jquery-mobile:
  test that title is restored on link transition to first page
  Update docs/pages/page-dialogs.html
  Update docs/pages/page-links.html
  Update docs/pages/page-titles.html
  Update docs/pages/page-anatomy.html
2011-11-08 15:52:36 -08:00
Eddie Monge
5535e24c46 Update to add license to root, update individual files to not have license, add license to built and testing files 2011-11-08 15:43:36 -08:00
John Bender
949dd4c6c8 test that title is restored on link transition to first page 2011-11-08 15:41:37 -08:00
Eddie Monge
9709170235 Step 1 Remove unneeded PHP hook files 2011-11-08 15:00:35 -08:00
Todd Parker
c997b4cc20 Merge pull request #2992 from agcolom/patch-29
Update docs/pages/page-dialogs.html
2011-11-08 14:37:30 -08:00
Anne-Gaelle Colom
a2c6741e71 Update docs/pages/page-dialogs.html 2011-11-08 22:35:53 +00:00
Todd Parker
ccf13892c4 Merge pull request #2991 from agcolom/patch-28
Update docs/pages/page-links.html
2011-11-08 14:32:41 -08:00
Anne-Gaelle Colom
3259b02c1a Update docs/pages/page-links.html 2011-11-08 22:27:48 +00:00
Todd Parker
226bab004b Merge pull request #2990 from agcolom/patch-27
Update docs/pages/page-titles.html
2011-11-08 14:12:27 -08:00
Anne-Gaelle Colom
a989487b2f Update docs/pages/page-titles.html 2011-11-08 22:11:51 +00:00
Todd Parker
6832b68162 Merge pull request #2989 from agcolom/patch-26
Update docs/pages/page-anatomy.html
2011-11-08 14:09:53 -08:00
Anne-Gaelle Colom
bf4eac10ca Update docs/pages/page-anatomy.html 2011-11-08 22:08:35 +00:00
Todd Parker
4c6871d5be Merge pull request #2988 from jasonlcrane/docs-page-navmodel-1
Update docs/pages/page-navmodel.html. Thanks jasonlcrane!
2011-11-08 13:54:48 -08:00
jasonlcrane
1a8b56aa54 Fix typo in pushState plugin description, link to form submissions docs. 2011-11-08 21:41:26 +00:00
John Bender
94c2651244 Merge pull request #2959 from garann/158a65c1fd7f34afb6f157921a1604f6e3159a29
Store title of initial page
2011-11-08 13:38:29 -08:00
Todd Parker
7185e864c9 Merge pull request #2987 from agcolom/patch-25
Update docs/toolbars/bars-themes.html
2011-11-08 13:34:04 -08:00
Todd Parker
a35e1507da Merge pull request #2971 from agcolom/patch-14
Update docs/toolbars/index.html
2011-11-08 13:33:44 -08:00
Todd Parker
77733d3ae8 Merge pull request #2972 from agcolom/patch-15
Update docs/toolbars/docs-bars.html
2011-11-08 13:33:22 -08:00
Anne-Gaelle Colom
41ce526d5d Update docs/toolbars/bars-themes.html 2011-11-08 21:33:03 +00:00
Todd Parker
4f13feadcf Merge pull request #2986 from agcolom/patch-24
Update docs/toolbars/footer-persist-c.html
2011-11-08 13:32:50 -08:00
Todd Parker
7d0dddc904 Merge pull request #2985 from agcolom/patch-23
Update docs/toolbars/footer-persist-b.html
2011-11-08 13:32:33 -08:00
Anne-Gaelle Colom
100b1d167e Update docs/toolbars/footer-persist-c.html 2011-11-08 21:26:31 +00:00
Anne-Gaelle Colom
2314e554dc Update docs/toolbars/footer-persist-b.html 2011-11-08 21:24:58 +00:00
Todd Parker
b15f87c504 Merge pull request #2984 from agcolom/patch-22
Update docs/toolbars/footer-persist-a.html
2011-11-08 13:24:35 -08:00
Anne-Gaelle Colom
66da36b486 Update docs/toolbars/footer-persist-a.html 2011-11-08 21:22:41 +00:00
Todd Parker
690696c564 Merge pull request #2983 from agcolom/patch-21
Update docs/toolbars/bars-fullscreen.html
2011-11-08 13:09:40 -08:00
Todd Parker
209757da3f Merge pull request #2982 from agcolom/patch-20
Update docs/toolbars/bars-fixed.html
2011-11-08 13:09:17 -08:00
jasonlcrane
3550f3c6fc Linked to form submission docs page 2011-11-08 21:07:29 +00:00
jblas@adobe.com
12dea341c7 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-08 13:07:09 -08:00
jblas@adobe.com
d6f2f438b6 Fixing the busted unit/core tests.
- Clear the namespace property name cache if the namespace is changed.
2011-11-08 13:05:51 -08:00
Anne-Gaelle Colom
eeaf535081 Update docs/toolbars/bars-fullscreen.html 2011-11-08 21:02:07 +00:00
Anne-Gaelle Colom
6146add9fc Update docs/toolbars/bars-fixed.html 2011-11-08 20:58:34 +00:00
Todd Parker
40a1328c50 Merge pull request #2981 from agcolom/patch-19
Update docs/toolbars/docs-navbar.html
2011-11-08 12:09:49 -08:00
Mat Marquis
80893170ca Additional work on #2066 — This change only applies overflow-x: hidden to body/div elements that receive the .ui-mobile-viewport class, as we can safely predict that style won’t interfere with native select funcitonality when attached to those elements. This will address the vast majority of use cases, and prevent this style from causing unpredictable Android issues in the event that the page is wrapped in an unusual element (a form, table cell, marquee tag, etc.). 2011-11-08 15:06:33 -05:00
Anne-Gaelle Colom
aee0d8c486 Update docs/toolbars/docs-navbar.html 2011-11-08 19:36:39 +00:00
Todd Parker
fea5bfd138 Merge pull request #2980 from agcolom/patch-18
Update docs/toolbars/docs-footers.html
2011-11-08 11:23:55 -08:00
jblas@adobe.com
b198f57276 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-08 11:21:01 -08:00
Anne-Gaelle Colom
5d94d64296 Update docs/toolbars/docs-footers.html 2011-11-08 19:20:27 +00:00
jblas@adobe.com
488e8f70ad Some minor performance tweaks:
- Cache the nsNormalize() results so we don't have to call $.camelcase() every time jqmData() is called.

- Move the regexp used in our monkey patched $.find outside of the function to save some regex compilation cycles.
2011-11-08 11:19:39 -08:00
jasonlcrane
47080128d7 Fixes typo in first sentence of pushState plugin description 2011-11-08 18:13:59 +00:00
Todd Parker
67c245cc95 Merge pull request #2975 from agcolom/patch-17
Update docs/toolbars/docs-headers.html
2011-11-08 07:35:30 -08:00
Anne-Gaelle Colom
7a1d5ec057 Update docs/toolbars/docs-headers.html 2011-11-08 15:14:21 +00:00
Ghislain Seguin
f1f07a3faf Merge pull request #2973 from MauriceG/master
Removing discarded link to Responsive Layout Helpers page from Data attribute reference page
2011-11-08 06:49:10 -08:00
Anne-Gaelle Colom
a37f6278e2 Update docs/toolbars/docs-bars.html 2011-11-08 14:39:19 +00:00
Maurice Gottlieb
d53d3f8359 removing link to discarded page Responsive Layout Helpers 2011-11-08 15:37:47 +01:00
Ghislain Seguin
80644f305e Revert "Update docs/api/globalconfig.html"
This reverts commit c832f64ae8.
2011-11-08 06:26:24 -08:00
Ghislain Seguin
103a59c24b Revert "Update docs/api/events.html"
This reverts commit 7dba08a10b.
2011-11-08 06:26:22 -08:00
Ghislain Seguin
b64da2f5f2 Revert "Update docs/api/methods.html"
This reverts commit b019fa4c58.
2011-11-08 06:26:12 -08:00
Anne-Gaelle Colom
1b80023184 Update docs/toolbars/docs-bars.html 2011-11-08 14:05:21 +00:00
Ghislain Seguin
0c022a56e5 Merge pull request #2968 from agcolom/patch-11
Update docs/api/events.html
2011-11-08 06:04:38 -08:00
Ghislain Seguin
48fdbfc261 Merge pull request #2969 from agcolom/patch-12
Update docs/api/methods.html
2011-11-08 06:03:15 -08:00
Ghislain Seguin
4a20908f4e Merge pull request #2967 from agcolom/patch-10
Update docs/api/globalconfig.html
2011-11-08 06:00:45 -08:00
Anne-Gaelle Colom
f1b6b300cb Update docs/toolbars/index.html 2011-11-08 13:59:19 +00:00
Anne-Gaelle Colom
b019fa4c58 Update docs/api/methods.html 2011-11-08 13:49:10 +00:00
Anne-Gaelle Colom
7dba08a10b Update docs/api/events.html 2011-11-08 13:47:51 +00:00
Anne-Gaelle Colom
c832f64ae8 Update docs/api/globalconfig.html 2011-11-08 13:45:37 +00:00
Ghislain Seguin
8dcef4493d Fix for #2954 2011-11-07 21:02:28 -08:00
Todd Parker
72ff459602 Adjusted dialog docs 2011-11-07 22:52:06 -05:00
Todd Parker
82b7dcc1d1 Added overlay-theme attr info for selects 2011-11-07 22:47:47 -05:00
Todd Parker
2b618a1215 Added docs for dialog overlay attr, created a demo page to show this in action 2011-11-07 22:29:06 -05:00
Kin Blas
3316182253 Merge pull request #2962 from eddiemonge/patch-5
Wrong OR operator to compare values
2011-11-07 19:04:14 -08:00
Eddie Monge Jr.
4f354bafbc Wrong OR operator to compare values 2011-11-07 18:14:29 -08:00
John Bender
1d5f2af293 first pass at visualizing data collection 2011-11-07 16:56:19 -08:00
John Bender
9e255e6e75 add the pathname to the stats to differentiate tests. add grouping 2011-11-07 16:56:19 -08:00
jblas@adobe.com
e17e29b559 Eeking out another 200+ msecs (on iPad) by simply switching to children("img:eq0") instead of find(">img:eq0"). Still need to figure out how to get rid of the find(".ui-link-inherit>img:eq(0)") which is the where the bulk of listview enhancement is spent on WP7. 2011-11-07 15:16:32 -08:00
Todd Parker
d194476640 Merge pull request #2960 from agcolom/patch-9
Update docs/api/themes.html
2011-11-07 13:37:18 -08:00
Anne-Gaelle Colom
2cc42ff65f Update docs/api/themes.html 2011-11-07 21:21:38 +00:00
John Bender
2ec65580cf moved to pdo db interface to avoid uninstalled deps in prod 2011-11-07 13:19:32 -08:00
toddparker
3d34943068 Fixed alpha order of an option under selects 2011-11-07 16:05:52 -05:00
toddparker
56f0af4cdf Added an intro message that links to the ns global option 2011-11-07 16:02:27 -05:00
jblas@adobe.com
baee7ed5a7 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-07 12:40:57 -08:00
jblas@adobe.com
8177ec4bb5 Shave another 200-300ms off the 400 listview item page by simply reducing the number of function calls we make during enhancement.
- Got rid of _itemApply() and moved it's functionality to the bottom of refresh(), doing finds from $list where we can, and li where we can't. Boom, at least 1200+ less function calls.
2011-11-07 12:38:54 -08:00
Garann Means
bb61abc467 Merge remote-tracking branch 'upstream/master' 2011-11-07 14:29:18 -06:00
Garann Means
158a65c1fd Store title of initial page so it will appear correctly if reloaded via link instead of back button 2011-11-07 14:23:27 -06:00
Todd Parker
06e8f1d49f Merge pull request #2958 from TylerBenziger/master
Whitespace fix for Saf 5.0.5 Gradients
2011-11-07 12:08:21 -08:00
John Bender
6d85686c0c Merge branch 'list-perf' 2011-11-07 11:06:39 -08:00
John Bender
b3fdbcbb78 account for child page events 2011-11-07 11:06:10 -08:00
John Bender
7a84306cc2 readd lists-ul html 2011-11-07 10:42:56 -08:00
John Bender
4e61db3450 move the list perf test to a different naming scheme 2011-11-07 10:41:24 -08:00
John Bender
412af6f16c seperate stats recording from stat caculation, add timestamp 2011-11-07 10:39:24 -08:00
TylerBenziger
265e7bb887 Whitespace fix for jquery.mobile.theme.css 2011-11-07 10:32:09 -08:00
TylerBenziger
a4554d478e Whitespace fix for jquery.mobile.theme.css 2011-11-07 10:27:48 -08:00
TylerBenziger
a1097b32a2 Whitespace fix for jquery.mobile.theme.css 2011-11-07 10:00:39 -08:00
Ghislain Seguin
4cee7adaa9 Added data-overlay-theme 2011-11-06 20:23:39 -08:00
Ghislain Seguin
2dfa82d5f3 Merge pull request #2938 from eddiemonge/patch-4
code style cleanup
2011-11-06 15:37:40 -08:00
Eddie Monge Jr.
2663f95892 Update experiments/scrollview/scrollview.js 2011-11-06 15:09:11 -08:00
Todd Parker
e4f297a731 Merge pull request #2946 from agcolom/patch-8
Update docs/api/mediahelpers.html
2011-11-05 15:11:04 -07:00
Anne-Gaelle Colom
41792fc599 Update docs/api/mediahelpers.html 2011-11-05 21:18:13 +00:00
Todd Parker
7393adda28 Merge pull request #2945 from agcolom/patch-7
Update docs/api/data-attributes.html
2011-11-05 11:32:12 -07:00
Anne-Gaelle Colom
5d0b930691 Update docs/api/data-attributes.html 2011-11-05 17:34:08 +00:00
Ghislain Seguin
a9dc41750e Merge pull request #2944 from agcolom/patch-6
Update docs/api/data-attributes.html
2011-11-05 08:01:57 -07:00
Anne-Gaelle Colom
e83f108018 Update docs/api/data-attributes.html 2011-11-05 13:52:24 +00:00
Todd Parker
e7c37be849 Merge pull request #2943 from agcolom/patch-5
Update docs/api/data-attributes.html. Thanks agcolom!
2011-11-05 06:00:47 -07:00
Anne-Gaelle Colom
6eaa3882f7 Update docs/api/data-attributes.html 2011-11-05 12:56:18 +00:00
Todd Parker
87e6b4d8d2 Merge pull request #2942 from agcolom/patch-4
Update docs/toolbars/docs-headers.html
2011-11-05 05:11:17 -07:00
Anne-Gaelle Colom
eb9f685ffd Update docs/toolbars/docs-headers.html 2011-11-05 10:04:34 +00:00
Ghislain Seguin
3da8e0d171 Added tests for dialog theming and overlayTheme 2011-11-04 22:34:58 -07:00
Ghislain Seguin
47e0e4bf99 Fixed inheritance of content theme 2011-11-04 22:34:58 -07:00
Ghislain Seguin
26c48c8c6c Fix for #2871: Added overlayTheme option to dialog widget 2011-11-04 22:34:58 -07:00
Todd Parker
c8d3461676 Merge pull request #2941 from agcolom/patch-3
Update docs/api/data-attributes.html
2011-11-04 15:55:43 -07:00
Anne-Gaelle Colom
a350a031a7 Update docs/api/data-attributes.html 2011-11-04 22:45:15 +00:00
Todd Parker
f7bb876c3c Merge pull request #2940 from agcolom/patch-2
punctuation consistency
2011-11-04 15:39:42 -07:00
Anne-Gaelle Colom
28a19efc77 punctuation consistency 2011-11-04 22:33:37 +00:00
toddparker
3a32031516 Fixed code syntax issues. Thanks agcolom! 2011-11-04 18:07:44 -04:00
Mat Marquis
63573bce5e Merge pull request #2934 from garann/master
Issue #1447 - unescape entities in page titles
2011-11-04 15:04:26 -07:00
Eddie Monge Jr.
e56a382c3f Update experiments/scrollview/scrollview.js 2011-11-04 14:49:35 -07:00
Eddie Monge Jr.
0311c91f38 code style cleanup 2011-11-04 14:43:27 -07:00
jblas@adobe.com
0b5f6dab5d Reworked getInheritedTheme() to avoid closest() and attr(). This new version shaves off 200ms of page enhancement time on the forms gallery page on a Droid X (Android 2.1). 2011-11-04 14:11:19 -07:00
Garann Means
6699dab7d1 Corrected logic for locating entities in titles 2011-11-04 15:08:10 -05:00
jblas@adobe.com
2b2b8bf026 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-04 11:04:27 -07:00
jblas@adobe.com
b7c88e4d08 Added unit test case for issue #2520 (No longer able to remove / expire pages reliably). 2011-11-04 11:03:50 -07:00
jblas@adobe.com
97e3f8a800 Fix for issue #2520 - No longer able to remove / expire pages reliably
- Modified loadPage() so that if we are attempting to load the first page of the application document, that we first check to make sure it is in the DOM before returning our cached copy. If it is not in the DOM, we let it fall through to the ajax loading code so that it gets recreated. This is necessary since some developers are agressively pruning pages, including embedded ones, for various reasons.
2011-11-04 10:58:44 -07:00
Garann Means
d7d52544e7 Fix for #1447 - create element and read text from there to unescape entities in page title 2011-11-04 12:33:07 -05:00
Dan Heberden
dc8d538b44 Fix CSSTHME/CSSTHEME type in Makefile which was preventing build 2011-11-04 09:59:49 -07:00
Todd Parker
3133b36b37 Fixed my poor alphabetical attempt. Footer is after fieldset. Done. 2011-11-03 23:25:16 -04:00
Todd Parker
ae27590d18 Added data-track-theme for flip switch 2011-11-03 23:19:13 -04:00
Todd Parker
d5ebf30c3f Teaked title 2011-11-03 23:09:32 -04:00
Todd Parker
50e0c1a9d9 Added a few fixes and cleanup to data- attr page 2011-11-03 23:08:33 -04:00
Todd Parker
73ee4c995e Added a data tribute reference page, linked it up 2011-11-03 22:56:54 -04:00
John Bender
b5d6322e03 simple performance recording for page loads 2011-11-02 16:49:36 -07:00
Gabriele Rabbiosi
0e14c98efe Corrected some tests for the slider widget 2011-11-02 23:58:50 +01:00
toddparker
cdf1d2cc94 Added info on URL passing between pages to scripting and Ajax nav pages 2011-11-02 18:19:26 -04:00
John Bender
408c98322a whitespace in mobile widget 2011-11-02 14:23:29 -07:00
Petko Bossakov
8387919d26 Issue 2821: prevented caling blur() on a body element, causes bug in IE8 2011-11-02 22:09:25 +02:00
jblas@adobe.com
85927d3995 Sometimes things don't get more "dynamic" if you say "dynamic" too many times. 2011-11-02 10:17:17 -07:00
jblas@adobe.com
931c147e22 Documentation fix for #2914 - Layout events .trigger('updatelayout'); doesn't work with delay/speed
- Updated verbage in the 'updatelayout' section so that it is clearer that developers should trigger this event if their application manipulates the content in any way that may trigger a change in the width/height of the page.
2011-11-02 10:14:04 -07:00
John Bender
3503681b91 added comment for Issue #2066 special case 2011-11-02 09:30:07 -07:00
John Bender
dcf4130593 whitespace in core css 2011-11-02 09:29:38 -07:00
Todd Parker
493beeacc7 Merge pull request #2911 from charlieCollins/patch-1
Change usage of "the JQuery Mobile" that was repeated several times. Thanks charlieCollins
2011-11-01 15:30:05 -07:00
Mat Marquis
ab486257f7 Fixes #2066 — Select menus now open normally on Android when the page is wrapped in a form element. ♥ you, .NET. 2011-11-01 18:11:48 -04:00
Charlie Collins
c384f89163 Change usage of "the JQuery Mobile" that was repeated several times in one sentence. Also, tried to fix other typos seen on the live site (docuemnt, for example), but they appear to already be correct in source. 2011-11-01 19:05:34 -03:00
jblas@adobe.com
8c81959a7d Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-01 14:59:36 -07:00
jblas@adobe.com
e056d20728 Some minor listview tweaking to eliminate 1200 $.fn.find calls in our 400 item listview test case.
- Moved some of the finds we used to do for every item, out of the processing loop so we do just 3 big finds. This shaves off 200-300ms on iPad iOS 4.3.5.
2011-11-01 14:57:31 -07:00
Todd Parker
5279ba15eb Merge pull request #2907 from eddiemonge/docs_fixes
Change some < to &gt;, fix some code examples
2011-11-01 11:19:21 -07:00
Eddie Monge
503cefc115 Change some < to &gt;, fix some code examples 2011-11-01 11:16:34 -07:00
John Bender
13a0c1508f Revert "fixed js refs and whitespace in samples Fixes #2904"
This reverts commit c748072bac.
2011-11-01 10:45:14 -07:00
John Bender
c748072bac fixed js refs and whitespace in samples Fixes #2904 2011-11-01 10:39:26 -07:00
John Bender
010e93152d Merge pull request #2899 from jpfiset/master
Fix for issue #2897
2011-11-01 09:44:43 -07:00
jblas@adobe.com
ebd7e04ce0 More enhancement optimizations:
- Modified buttonMarkup so that it checks options against undefined before calling jqmData(). This is necessary because false is a valid option.

- Modified listview so that it doesn't check for a data-counttheme unless it actually has a count item.
2011-11-01 09:26:41 -07:00
toddparker
11dbc5771b Added link to JS Bin template 2011-11-01 11:36:22 -04:00
Jean-Pierre Fiset
bd5f62cb3c Fix for issue #2897 2011-11-01 11:00:27 -04:00
Maurice Gottlieb
3080b2a9c4 removing now also the ui-btn-down-x class when button loses focus 2011-11-01 14:34:53 +01:00
jblas@adobe.com
86e4e6fb43 Some code optimizations to speed up page enhancement.
- Avoid using $.each() when you can directly iterate on the collection. This avoids extra function calling overhead.

- Avoid calling jqmData() for options that are specified.

- Avoid calling $.fn.wrapInner(), creating the DOM nodes manually is much faster.
2011-10-31 23:45:42 -07:00
John Bender
70571119b7 test that the text and val can update the parent button markup 2011-10-31 14:07:10 -07:00
John Bender
a8202d240d reference the buttonMarkup text wrapper element through data 2011-10-31 13:24:17 -07:00
John Bender
0ffaab8d22 switched to prop per @eddiemonge 2011-10-31 11:44:56 -07:00
Alex Roberts
6b767b4b8d Update form button text on refresh.
Allows submit button values to change dynamically, and update accordingly in the UI. Such as in the event a button should read "Update" instead of "Save".
2011-10-31 11:05:54 -07:00
Mat Marquis
1c3a4c7a84 Merge pull request #2883 from MauriceG/patch-2
Fix for #2881 - Inconsistent background (box-shadow) on themeless dialogs.
2011-10-31 09:05:48 -07:00
Todd Parker
7bf9af787b Merge pull request #2796 from myakura/bug_2795
Fix for the issue #2795. Thanks myakura!
2011-10-31 08:26:49 -07:00
Maurice Gottlieb
aec206b712 Fix for #2881 - @wilto Could you please review this:
Add the ui-overlay-shadow class to both, content and, if there, to the footer.
Then add the ui-corner-bottom-class to the last one.
2011-10-29 16:52:31 +03:00
Masataka Yakura
8d0ca03161 remove "top" from gradient syntax for byte savings and spec compliance 2011-10-29 16:33:53 +09:00
John Bender
fef4b200a6 handle pixel values from calls to $.fn.css('left') in slider tests 2011-10-28 15:58:25 -07:00
Ghislain Seguin
f81888c4e1 Fix for #2865: when it's the first time we load the page, use the page title if there is one 2011-10-27 22:28:14 -07:00
Ghislain Seguin
3e99437104 Merge pull request #2873 from eddiemonge/patch-1
Some code cleanup
2011-10-27 22:20:24 -07:00
Ghislain Seguin
03e63af26f Merge pull request #2874 from eddiemonge/patch-2
Proposed fix for 2847
2011-10-27 22:19:28 -07:00
Todd Parker
6264d95da2 Merge pull request #2812 from redaemn/flip-switch-improvements
Fix for issue #2756 - flip toggle slider animated snapping. Thanks redaemn!
2011-10-27 18:31:39 -07:00
Eddie Monge Jr.
5a285701a8 Proposed fix for 2847 2011-10-27 18:10:49 -07:00
Eddie Monge Jr.
c04755d859 Some code cleanup 2011-10-27 18:09:01 -07:00
Todd Parker
fde88b2ec3 Merge pull request #2844 from samatjain/png-opt
Losslessly minimize themes’ PNGs. Thanks samatjain!
2011-10-27 17:48:44 -07:00
Ghislain Seguin
5804e364c1 Revert "on page-reload, i believe, toPage.jqmData( "title" ) is null and the page-header-text is always used"
This reverts commit 3d0f10d186.
2011-10-27 15:28:22 -07:00
Ghislain Seguin
23b1510cf8 Merge pull request #2868 from MauriceG/patch-1
Fix for #2865: Page title overridden on (first load) reload
2011-10-27 14:19:17 -07:00
Maurice Gottlieb
3d0f10d186 on page-reload, i believe, toPage.jqmData( "title" ) is null and the page-header-text is always used 2011-10-28 00:00:00 +03:00
John Bender
b0f430d9f8 Merge pull request #2867 from jakeboone02/grammar
Grammar correction
2011-10-27 12:19:02 -07:00
Jake Boone
7ada7ba0f1 Grammar correction 2011-10-27 14:53:45 -04:00
John Bender
250316274b change the credit link to the comment with the snippet 2011-10-27 11:38:34 -07:00
John Bender
4829928ca1 add documentation around application cache issues and a suggested workaround 2011-10-27 11:26:47 -07:00
Mat Marquis
8e6a67d3bb Additional fix for #2842 — Missed a spot. Full-width form elements due to hidden labels no longer rely on percentage-based left/right padding. 2011-10-27 11:16:46 -04:00
Todd Parker
57ba8d70e1 Merge pull request #2863 from MauriceG/issue_2845
Fix issue #2845: remove xhtml endtag from css-link. Thanks MauriceG!
2011-10-27 08:06:30 -07:00
Todd Parker
6321a69326 Merge pull request #2864 from MauriceG/issue_2528
Fixes #2528 - removing listviews glowing corners. Thanks MauriceG!
2011-10-27 07:44:39 -07:00
Maurice Gottlieb
3622e5227a Fix for issue #2528 removing listviews glowing corners 2011-10-27 15:28:05 +02:00
Maurice Gottlieb
d59a9d8b15 Fix issue #2845: remove xhtml endtag from css-link 2011-10-27 14:45:32 +02:00
Mat Marquis
26831aa66f Fixes #2629, fixes #2628 — Replacing ‘background: transparent’ with #fff, rgba(255,255,255,0), and an opacity filter solves this. 2011-10-26 17:57:03 -04:00
Mat Marquis
410a169b2b Fixes an issue introduced in commit #b0db8976, where lack of indexOf() was keeping IE 6/7/8 (at least) from rendering anything at all. 2011-10-26 16:54:11 -04:00
Mat Marquis
6b85cdbd99 Fixes #1077, fixes #2683 — Reverts fixed positioning to hide .ui-collapsible-heading-status (added in commit #c94c6bf). Uses ‘top: -9999px’ to hide element in lieu of ‘left: -9999px’, so as not to trigger Firefox 7’s ellipsis bug. 2011-10-26 16:12:56 -04:00
jblas@adobe.com
3e0928fcb9 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-10-26 11:36:31 -07:00
jblas@adobe.com
1405a9453f Add the XHR object to the data passed to loadpage and loadpagefailed callbacks. This was a low-hanging-fruit enhancement request for issue #2503 - User can't specify own error handling logic. 2011-10-26 11:34:27 -07:00
toddparker
bc97aa6532 Switched font-family TR tokens to /*{global-font-family}*/;
This makes all swatch fonts adhere to the global font family set in
ThemeRoller. This can be manually edited to further customize the
theme, but we're simplifying the TR UI.
2011-10-26 14:09:41 -04:00
toddparker
6a44236fb1 Fixed extra vertical padding for footers within dialogs 2011-10-26 14:03:27 -04:00
John Bender
28e860f121 Merge pull request #2840 from eddiemonge/min_license
Standardize licenses in files and match jQuery core min license in min fi
2011-10-26 10:55:47 -07:00
Mat Marquis
b4a3641820 Fixes #2842, reverts change made in commit #0f81773 — percentage-based textarea/text input padding is ignored in Firefox. Current Firefox. In 2011. Submitted with comment. 2011-10-26 13:17:13 -04:00
Todd Parker
3f488e1cd6 Update to set the z-index of custom select menus to stack on top of fixed toolbars. Fixes #2799. 2011-10-26 13:16:40 -03:00
jblas@adobe.com
b37bf0223c Added unit tests for issue #2835 - pagechangefailed not triggered when changing to non-existent internal page. 2011-10-25 17:07:31 -07:00
jblas@adobe.com
9a4eb1d833 Fix for issue #2835 - pagechangefailed not triggered when changing to non-existent internal page
- Modified loadPage() so that it bails if an embedded page is not found within the DOM.
2011-10-25 17:06:01 -07:00
Samat K Jain
54a2ac80c4 Losslessly minimize themes’ PNGs
Minimized themes’ PNGs for a space savings of 17%.
2011-10-25 15:50:29 -06:00
Eddie Monge
f6e319ef8a Standardize licenses in files and match jQuery core min license in min files 2011-10-25 11:15:19 -07:00
John Bender
580b376566 add a quick todo for a better possible solution for passing clicks from the label to the input 2011-10-25 10:55:30 -07:00
John Bender
6549b42ab5 test that clicks bound to labeled checkbox input are fired by label clicks 2011-10-25 10:55:13 -07:00
John Bender
4daed58a16 use triggerHandler to trigger click handler's bound to inputs on label click Fixes #1335 2011-10-25 10:53:20 -07:00
Ghislain Seguin
d8c0fb961f Merge pull request #2816 from MauriceG/patch-15
docs: repeated explanation for disable link based buttons removed at forms basics page
2011-10-24 18:59:41 -07:00
jblas@adobe.com
2b773393a8 Merge remote-tracking branch 'upstream/master' 2011-10-24 10:29:20 -07:00
Kin Blas
777d16c7cd Merge pull request #2823 from mcherbie/master
Doc Fix for Fixed Toolbar
2011-10-24 10:12:45 -07:00
Michael
0b177677d8 Prepend $.mobile to docs to fix code example 2011-10-24 10:00:37 -07:00
Gabriele Rabbiosi
ee05bb5576 Fixed issue #2631 - flip toggle switch animation improved 2011-10-23 14:30:10 +02:00
Maurice Gottlieb
410ca0972f docs: repeated explanation for disable link based buttons removed 2011-10-23 13:32:35 +03:00
Mat Marquis
53099d8cc4 Re-addresses #2776, and corrects an issue introduced in pull request #2783. Incorrect default theme was being set on the backdrop of dialog-style select menus. 2011-10-22 13:21:45 -04:00
Gabriele Rabbiosi
396f8d019e Issue #2756 - flip toggle switch value can be changed when the switch is disabled 2011-10-22 17:05:05 +02:00
Ghislain Seguin
55d89893a2 Merge pull request #2492 from hpbuniat/search-filter-bar-2416
Fix for #2416
2011-10-21 16:48:20 -07:00
Ghislain Seguin
a78fce4399 Merge pull request #2767 from easymovet/patch-1
Corrected .delegate() syntax for 'pagecreate' code example
2011-10-21 16:33:11 -07:00
John Bender
78381c6fed account for dialog or other sub element enhancements 2011-10-21 16:30:07 -07:00
John Bender
6bd2805cb9 corrected commit: find the closest page to pull the keep native selector Fixes #2803 2011-10-21 16:25:19 -07:00
John Bender
1bc2aecc91 Revert "find the closest page to pull the keep native selector Fixes #2803"
This reverts commit 9e1a3cc5a4.
2011-10-21 16:25:19 -07:00
Ghislain Seguin
16dc76fadf Merge pull request #2809 from eddiemonge/button_markup
Button markup optimization
2011-10-21 16:21:10 -07:00
Ghislain Seguin
3eaa45c577 Merge pull request #2789 from jakeboone02/f-button-styling
Add button styling to f swatch for docs
2011-10-21 16:16:28 -07:00
Eddie Monge
b0db897654 Button markup optimization 2011-10-21 16:08:28 -07:00
John Bender
f3c5cd811e tests to verify that items embedded in page sub elements are enhanced properly 2011-10-21 15:56:26 -07:00
John Bender
9e1a3cc5a4 find the closest page to pull the keep native selector Fixes #2803 2011-10-21 15:56:26 -07:00
gseguin
04b2ec4c41 Revert "Small button markup optimization"
This reverts commit c496044a47.
2011-10-21 15:54:13 -07:00
Ghislain Seguin
7259e48077 Merge pull request #2806 from eddiemonge/btn_markup
Small button markup optimization
2011-10-21 15:42:53 -07:00
Eddie Monge
c496044a47 Small button markup optimization 2011-10-21 15:22:43 -07:00
gseguin
e897c66c6f Fix for issue #2225 2011-10-21 15:22:36 -07:00
Mat Marquis
ac1832a686 Fixes #1077, somewhat mysteriously. Re-checked native selects across common devices/browsers, which seem unaffected by this change. 2011-10-21 17:14:44 -04:00
jblas@adobe.com
83b5182181 Fixed relative path references added from previous checkin. 2011-10-21 10:28:41 -07:00
Jake Boone
a28e43a2f3 Add button styling to f swatch for docs 2011-10-21 00:27:21 -04:00
toddparker
9e28d854c2 Reverting the last pull request, was causing a JS error and killing enhancement 2011-10-20 21:19:37 -04:00
toddparker
1496f5a485 Revert d61d6b0127953e10b17820cf1fdd14ed22a12c41^..HEAD 2011-10-20 21:18:03 -04:00
Todd Parker
d61d6b0127 Merge pull request #2768 from MauriceG/patch-10
fix for #2528 listviews: first list-item has "glowing" corners on top. Thanks MauriceG!
2011-10-20 17:07:05 -07:00
John Bender
742d1c905b linkBindingEnabled docs 2011-10-20 15:30:29 -07:00
John Bender
89e389c4b7 whitepsace in globalconfig docs 2011-10-20 15:30:04 -07:00
John Bender
1896235247 add linkBindingEnabled tests 2011-10-20 15:16:03 -07:00
John Bender
8f5889a707 add linkBindingEnabled to mobile object for complex apps that want to handle all nav 2011-10-20 15:16:03 -07:00
Mat Marquis
0a84a9eeea Merge pull request #2783 from MauriceG/patch-14
fix for issue #2776: Select full page menus background wrong color.
2011-10-20 15:14:17 -07:00
Maurice Gottlieb
6e536eb6b5 fix for issue #2776: Select full page menus background wrong 2011-10-21 01:05:18 +03:00
Todd Parker
efe1896b93 Merge pull request #2780 from MauriceG/patch-13
docs: some corrections at Pages & Dialogs / Anatomy of a Page
2011-10-20 14:26:39 -07:00
Maurice Gottlieb
6eb8e7dfaa docs: some corrections at Pages & Dialogs / Anatomy of a Page 2011-10-21 00:14:21 +03:00
Todd Parker
2d512e1210 Merge pull request #2779 from bjohn465/unenhanced-list-icons
Styling ui-li-icon on enhanced lists only. Thanks bjohn465!
2011-10-20 13:55:28 -07:00
Todd Parker
4b869a0d9d Merge pull request #2777 from MauriceG/patch-12
docs: tiny typo at Pages & Dialogs / Page titles
2011-10-20 13:37:08 -07:00
Maurice Gottlieb
6f400e87cf docs: tiny typo at Pages & Dialogs / Page titles 2011-10-20 23:35:37 +03:00
Brandon Johnson
943d2d65a8 Styling ui-li-icon on enhanced lists only
Fixes #2771
2011-10-20 14:22:48 -06:00
Todd Parker
6cf19d6c10 Merge pull request #2774 from MauriceG/patch-11
Docs: Tiny typo at API / Theming overview / Theme classes
2011-10-20 13:15:51 -07:00
Maurice Gottlieb
9cdf0236c2 Tiny typo 2011-10-20 23:13:22 +03:00
Todd Parker
0d27f377ac Merge pull request #2773 from eddiemonge/makefile
Makefile fixes #2772 to add structure css files.
2011-10-20 13:10:16 -07:00
Mat Marquis
182a8b4675 Merge branch 'master' of github.com:jquery/jquery-mobile 2011-10-20 16:07:47 -04:00
Mat Marquis
5afe2abecb Re-applies bottom margin to dialog elements, accidentally removed in 6354bd4260. 2011-10-20 16:07:22 -04:00
Eddie Monge
6ae0073328 Fix makefile to includes structure file 2011-10-20 13:00:34 -07:00
John Bender
4bb744025e whitespace in button markup 2011-10-20 12:48:10 -07:00
Todd Parker
5ae094ac2c Merge pull request #2765 from jakeboone02/ui-br-move
Fix for #2322:  Move .ui-br out of swatches section of default theme. Thanks  jakeboone02
2011-10-20 12:47:00 -07:00
Maurice Gottlieb
e5b123ce75 fix for #2528 listviews: first list-item has "glowing" corners on top 2011-10-20 20:11:39 +03:00
Riaz
f5c03cebd6 Corrected delegate syntax for 'pagecreate' code example 2011-10-20 12:09:11 -05:00
Todd Parker
7fe9cc4f7b Merge pull request #2757 from jakeboone02/ios-web-app-demo
Browse the docs as a fullscreen web app in iOS. Thanks jakeboone02!
2011-10-20 09:45:09 -07:00
Eddie Monge
9cb4110403 Merge branch 'master' of git://github.com/jquery/jquery-mobile
* 'master' of git://github.com/jquery/jquery-mobile:
  Small grammar correction in docs
  Releasing 1.0rc2.
  Remove build.xml as it is not as feature rich as the makefile and having two build scripts is redundant
  Update README.md
  Update README.md
  Update to include instructions on how to build using a custom theme.
2011-10-20 09:19:18 -07:00
unknown
6171ba2040 Moved .ui-br class from swatches section to structure section of default theme. Added .ui-br to Valencia theme. 2011-10-20 11:30:40 -04:00
Todd Parker
1d55b38d18 Merge pull request #2758 from jakeboone02/spelling
Small grammar correction in docs
2011-10-20 04:02:40 -07:00
Jake Boone
6d64ab9ce3 Small grammar correction in docs 2011-10-20 01:46:33 -04:00
Jake Boone
d44cce50cb Browse the docs as a fullscreen web app in iOS. 2011-10-20 01:26:47 -04:00
John Resig
f615489c80 Releasing 1.0rc2. 2011-10-19 13:48:38 -07:00
John Bender
abceeb08d5 Merge pull request #2747 from eddiemonge/patch-7
Update to include instructions on how to build using a custom theme.
2011-10-19 12:22:56 -07:00
John Bender
91a49c99ed Merge pull request #2752 from eddiemonge/remove_buildxml
Remove buildxml
2011-10-19 12:22:29 -07:00
Eddie Monge
36d962ae19 Merge branch 'master' of git://github.com/jquery/jquery-mobile
* 'master' of git://github.com/jquery/jquery-mobile:
  Added a blurb about toolbar events for re-positioning
  Updated files for RC2
2011-10-19 11:25:54 -07:00
Eddie Monge
beeb2f122b Remove build.xml as it is not as feature rich as the makefile and having two build scripts is redundant 2011-10-19 11:25:34 -07:00
toddparker
2a9fa45552 Added a blurb about toolbar events for re-positioning
Also re-ordered events page to group touch and mouse together
2011-10-19 14:15:32 -04:00
toddparker
57ee9838c4 Updated files for RC2
Added RC2 banner, updated anatomy of a page and page templates to point
to RC2. Updated platform page for RC2 too.
2011-10-19 13:53:46 -04:00
Eddie Monge
f6d13a6f7a Merge branch 'master' of git://github.com/jquery/jquery-mobile
* 'master' of git://github.com/jquery/jquery-mobile:
2011-10-19 10:47:09 -07:00
John Bender
4bab093159 Merge pull request #2751 from eddiemonge/master
Update ant build to include a structure css files
2011-10-19 10:43:05 -07:00
Eddie Monge
8fa8bfe69c Merge branch 'master' of git://github.com/jquery/jquery-mobile
* 'master' of git://github.com/jquery/jquery-mobile:
  move .structure before version in css build put filenames 
  Added documentation for $.mobile.fixedToolbars.show/hide functions.
  cleaned up test to limit event binding bleed
2011-10-19 10:41:46 -07:00
John Bender
54fccebd5e move .structure before version in css build put filenames 2011-10-19 10:41:23 -07:00
jblas@adobe.com
e080207145 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-10-19 10:38:32 -07:00
jblas@adobe.com
d723539577 Added documentation for $.mobile.fixedToolbars.show/hide functions. 2011-10-19 10:38:06 -07:00
Eddie Monge
fa2d0e2ec3 Add a structure output to the ant build 2011-10-19 10:36:15 -07:00
John Bender
76d8d3825a cleaned up test to limit event binding bleed 2011-10-19 10:35:14 -07:00
Mat Marquis
6354bd4260 Merge pull request #2750 from Wilto/dialog-top-margin
Adds a little breathing room above dialogs at wider screen sizes.
2011-10-19 10:12:47 -07:00
jblas@adobe.com
8bd3881667 Added entry for the new updatelayout event. 2011-10-19 09:40:52 -07:00
jblas@adobe.com
3130b52b3f Renamed the custom event I added to fix #2348 from "contentmodified" to "updatelayout" so that it reflects more of what it should be used for. Note that this also affects #2042 and the mention of collapsible in #2596. 2011-10-19 08:50:01 -07:00
Mat Marquis
95cf4873fd Adds a little breathing room above dialogs at wider screen sizes. 2011-10-19 11:30:46 -04:00
Eddie Monge Jr.
dbfc000cb3 Update README.md 2011-10-18 20:23:55 -07:00
Eddie Monge Jr.
16ea3fae21 Update README.md 2011-10-18 20:22:21 -07:00
Eddie Monge Jr.
6bc5c659ab Update to include instructions on how to build using a custom theme. 2011-10-18 20:21:27 -07:00
John Bender
be59c77125 switch to stop propagation on checkbox/radio vmouse 2011-10-18 13:56:31 -07:00
John Bender
18767e5ac1 whitespace in checkbox radio 2011-10-18 13:56:31 -07:00
Mat Marquis
112b3f6f51 Merge pull request #2740 from Wilto/dialog-max-width
Fixes #2729 — Sets a max-width of ~600px on dialogs.
2011-10-18 12:06:47 -07:00
Mat Marquis
bb7039c622 Updated docs in reference to issue #2729. 2011-10-18 14:45:31 -04:00
Mat Marquis
9fbadb0247 Fixes #2729 — Sets a max-width of ~600px on dialogs (inc. full-screen selects), changes disalog width to percentage-based value. 2011-10-18 14:18:11 -04:00
John Bender
2580f889b7 Merge pull request #2733 from eddiemonge/coding_styling
Some coding style cleanups
2011-10-18 09:59:30 -07:00
John Bender
0c5d2797a4 Merge branch 'MauriceG-patch-8' 2011-10-18 09:39:48 -07:00
John Bender
911ff69972 test for custom select dialog title update from dom 2011-10-18 09:39:25 -07:00
Mat Marquis
cc20cf9c39 Merge pull request #2737 from Wilto/inline-selects-controlgroup
Hopefully, this finally fixes #518 — Custom selects now behave as expected within vertical/horizontal controlgroups.
2011-10-18 09:17:39 -07:00
Mat Marquis
32fad8378d Hopefully, this finally fixes #518 — Custom selects now behave as expected within vertical/horizontal controlgroups. Docs have been updated accordingly. 2011-10-18 12:12:19 -04:00
John Bender
5fce1154f7 Merge branch 'patch-8' of https://github.com/MauriceG/jquery-mobile into MauriceG-patch-8 2011-10-18 09:06:55 -07:00
Todd Parker
39449430c6 Merge pull request #2732 from eddiemonge/update_readme
Update readme. Thanks eddiemonge!
2011-10-18 07:11:15 -07:00
toddparker
c4a95dd12d Added docs about theme classes and overriding themes, fixed a typo too 2011-10-17 23:15:57 -04:00
jblas@adobe.com
83c79ff6f2 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-10-17 16:57:08 -07:00
jblas@adobe.com
af870605ac Removed all of the redundant code used to crawl the DOM upward looking for a theme to inherit from, and replaced it with a call to the new $.mobile.getInheritedTheme() function.
Also, fixed a bug in textinput.js that was placing a ui-body-null class on the input element when a data-theme was not specified directly on the input.
2011-10-17 16:54:20 -07:00
Eddie Monge
95674eb3d1 Some coding style cleanups 2011-10-17 16:39:05 -07:00
Eddie Monge
e97ae76dfa Typo fix 2011-10-17 16:31:48 -07:00
Eddie Monge
5c86ca6480 Readme changes 2011-10-17 16:25:57 -07:00
Maurice Gottlieb
5d662d4a7a @johnbender
Could you please check again?
2011-10-18 01:30:08 +03:00
Todd Parker
575f4f350a Merge pull request #2728 from eddiemonge/issue_2700
Issue 2700: CSS Restructure to create a /css/ folder and a /structure/ and /theme/ folder inside for better organization. Thanks eddiemonge!
2011-10-17 15:00:51 -07:00
Todd Parker
952dd33831 Removed the Python instructions. 2011-10-17 18:55:11 -03:00
Eddie Monge
bcbaa38854 2700: Step 7 Silly me kept putting instead of . Fixed that typo 2011-10-17 14:36:50 -07:00
toddparker
6f67f421bb Added data-ajax="false" attribute to the link leading to the multi-page template
Loading a multipage doc into the dom was causing issues (of course) so
I fixed this up.
2011-10-17 17:34:25 -04:00
Eddie Monge
7a65be6d88 2700: Step 6 Update build and makefiles 2011-10-17 14:11:02 -07:00
Eddie Monge
8bc5e42fb3 2700: Step 5 Update all doc references 2011-10-17 13:51:45 -07:00
Eddie Monge
4a164b232f 2700: Step 4 Update php files to view locally 2011-10-17 13:47:08 -07:00
Eddie Monge
10c6ca2922 2700: Step 3 Move the themes into a themes folder 2011-10-17 13:25:54 -07:00
Eddie Monge
b8833f1885 images should be part of the theme 2011-10-17 13:25:11 -07:00
Eddie Monge
9af1d4c966 2700: Step 2: Separate out core styles from the theme styles 2011-10-17 13:23:48 -07:00
Eddie Monge
2c59250fe3 2700: Step 1: Rename Themes folder 2011-10-17 12:50:53 -07:00
Todd Parker
51b37789bb Merge pull request #2720 from MauriceG/master
Docs forms / selects: double title at dialog-page of non-native-select. Thanks MauriceG!
2011-10-16 15:22:25 -07:00
Maurice Gottlieb
8339c6a889 Title of dialog-page for non-native-selectmenu "your state", red from select-label, had duplicate title cause of non-unique id of selects. 2011-10-17 00:41:20 +03:00
toddparker
dc19bbf810 Reduced the width of the slider at narrow (smartphone) sizes to avoid wrapping
On inset lists with embedded forms, the slider was wrapping under the
input.
2011-10-16 00:01:42 -04:00
toddparker
4f2f500cd8 Updated slider / flip switch label typography to match 2011-10-15 23:52:01 -04:00
toddparker
b8f32749d8 Updated grouped button example to avoid wrapping 2011-10-15 23:42:25 -04:00
toddparker
51711b357f Added examples for each button option 2011-10-15 23:39:06 -04:00
Todd Parker
d7bc5184f9 Merge pull request #2714 from matthewleon/bug_2713
Bug 2713. Buttons properly support the data-shadow, data-corners and data-iconshadow attributes. Thanks matthewleon!
2011-10-15 20:32:08 -07:00
toddparker
02b5aeeecb Text tweak 2011-10-15 23:26:21 -04:00
toddparker
9a04c1a8b3 Added notes about how link-based buttons differ from form buttons 2011-10-15 23:23:52 -04:00
toddparker
d35fec0713 Added a note about the negative margin on lists to docs. Fixes #2715
Style note: all standard, non-inset lists have a -15px margin to negate
the 15px of padding on the content area to make lists fill to the edges
of the screen. If you add other widgets above or below a list, the
negative margin may make these elements overlap so you'll need to add
additional spacing in your custom CSS.
2011-10-15 22:31:29 -04:00
Matthew Leon Grinshpun
8b713b26f3 add button tag 2011-10-15 15:13:21 -04:00
Matthew Leon Grinshpun
62459c7cca fix for button iconshadow 2011-10-15 15:09:45 -04:00
Matthew Leon Grinshpun
6ef1d6ea6c fix for shadows and corners 2011-10-15 15:00:37 -04:00
Matthew Leon Grinshpun
b1c3de990b git both tests to fail 2011-10-15 14:56:55 -04:00
Matthew Leon Grinshpun
79c7a225b3 failing button ui shadow tests 2011-10-15 14:49:10 -04:00
toddparker
84729a4fec Added styling support for input type=color
Just for good measure. All HTML5 inputs are now auto enhanced into the
styled versions. We may need to decide if any of these need to be
degraded if the controls are wonky in some browsers.
2011-10-15 09:43:16 -04:00
toddparker
4ce1bfb795 Added new HTML5 date and time input support. Fixes #2144
Types added: input type time, date, month, week, date time,
datetime-local to auto for enhancements.
2011-10-15 09:33:06 -04:00
jblas@adobe.com
739373ee79 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-10-14 16:21:02 -07:00
jblas@adobe.com
2c2be3d9c6 Fixes #2659 - buttons don't inherit page-theme
- Insert the fake button container before calling buttonMarkup(). This allows the buttonMarkup() code to accurately calculate theme inheritance.
2011-10-14 16:18:49 -07:00
John Bender
a38b1025b1 Merge pull request #2701 from eddiemonge/compilers
Update Compilers
2011-10-14 15:46:19 -07:00
John Bender
a69e906cc7 add bail if the degrade Input page data isn't present 2011-10-14 15:33:50 -07:00
John Bender
f04efbd109 Merge branch 'Issue-#2654' of https://github.com/redaemn/jquery-mobile into redaemn-Issue-#2654 2011-10-14 15:30:36 -07:00
toddparker
b2713fe5d7 Fixed a broken link to the retired forms API page 2011-10-14 18:13:35 -04:00
toddparker
8c28c8b6ef Added disabled blurb to the form basic page 2011-10-14 18:09:19 -04:00
Todd Parker
9d7b6a82ea Merge pull request #2712 from Wilto/disabled-sliders-selects
Turns off cursor events on disabled custom form inputs.
2011-10-14 14:38:52 -07:00
Mat Marquis
5425e67ad7 Turns off cursor events on disabled custom form inputs. 2011-10-14 17:28:35 -04:00
Todd Parker
d869cab1f0 Merge pull request #2711 from Wilto/disabled-sliders-selects
Fixes #2541 — Properly applies “disabled” styling and logic to custom form inputs. Thanks Wilto!
2011-10-14 14:21:16 -07:00
Mat Marquis
d0fc381d6b Fixes #2541 — Properly applies “disabled” styling and logic to flip switches, sliders, and custom selects based on disabled attribute in underlying input markup. 2011-10-14 17:15:41 -04:00
Todd Parker
87a9d74a08 Merge pull request #2710 from Wilto/a11y-hidden-labels
Add .ui-hidden-accessible for hiding elements in an accessible way. Thanks Wilto!
2011-10-14 14:08:41 -07:00
Mat Marquis
a6892a67fc Add .ui-hidden-accessible for hiding elements in an accessible way; add .ui-hide-label to similarly hide labels/adjust layout within field containers. 2011-10-14 16:52:50 -04:00
toddparker
daeeab8b83 Re-vamped form docs to add in full width examples and clean up demos 2011-10-14 15:59:55 -04:00
toddparker
90d29840f6 Tweaked styles for footer grid example. 2011-10-14 13:00:59 -04:00
toddparker
cd09f54ef3 Updated grid docs, added footer example at the bottom. Fixes #2707
Thanks for the suggestion @agcolom!
2011-10-14 12:49:30 -04:00
jblas@adobe.com
ab8deade90 Fixed #2699 - Dialog reverse transition
- Moved the settings.transition calculation code before the code that pushes a new history item on the stack. This ensures that the proper transition is stored with the history item.
2011-10-14 09:30:26 -07:00
Todd Parker
832d2376d3 Merge pull request #2708 from Wilto/form-elements-fullwidth
Form elements now 100% of parent width, outside of field containers. Thanks Wilto!
2011-10-14 09:26:09 -07:00
Mat Marquis
0f81773a42 Form elements now span entire container width and behave as display: block, outside of field containers. 2011-10-14 12:22:14 -04:00
toddparker
5d45359943 Added design suggestions for header footers
Added a section at the bottom of headers explain gin how to roll your
own headers and bars with some CSS classes and custom rules. Linked to
grids from footer page.
2011-10-14 11:52:22 -04:00
toddparker
540c88008e Added some notes to the toolbar theming page
Linked to grid layouts in footer content, highlighted code examples.
2011-10-14 11:29:38 -04:00
toddparker
6ae3008df6 Updated fixed toolbar docs
Re-wrote the whole page, added note about
$.fixedToolbars.setTouchToggleEnabled(false) option, known limitations,
touchOverflowEnabled features.
2011-10-14 11:23:44 -04:00
toddparker
127903fd2f Refined styles so titles in footer aren't truncated as aggressively
Titles in headers and footers had the same padding value in the CSS,
but we don't support the same markup conventions for left/right button
slot in the footer so this was truncating too early. Fixes #2706
2011-10-14 10:20:15 -04:00
jblas@adobe.com
1da0eb3c1c Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-10-13 22:51:45 -07:00
jblas@adobe.com
773497b501 Fixed #2348 - lists-search-with-dividers breaks fixed footer
- Fixed header/footer code now listens for a custom event "contentmodified" on the document to figure out if it should be repositioned or not. Modified collapsible and listview to fire off contentmodified whenever they modify content. Developers can also fire off this event to trigger position updates for fixed headers/footers, so this could be used to address issue #2042 and the mention of collapsible in #2596.
2011-10-13 22:45:52 -07:00
John Bender
a949ddb836 alter build xml to follow make files split of structure css from theme css 2011-10-13 21:07:24 -07:00
Eddie Monge
12e0e37e70 Update compiler/compressors 2011-10-13 16:39:41 -07:00
Eddie Monge
85522c2470 Update compiler/compressors 2011-10-13 16:35:06 -07:00
Eddie Monge
ca33b8244b Update compiler/compressors 2011-10-13 16:34:39 -07:00
Gabriele Rabbiosi
862f58e90c refactored degradeInputs tests 2011-10-14 01:02:37 +02:00
Gabriele Rabbiosi
9903376f35 degradeInputs now uses the recently introduced keepNativeSelector() 2011-10-14 00:50:29 +02:00
John Bender
99abbbb474 add the version to the structure only css 2011-10-13 15:44:47 -07:00
John Bender
c134acce16 create separate structure and structure.min css
This addition is in response to the creation of the theme roller. It doesn't make much sense to include a theme from the framework if the user is adding his/her own from the theme roller or otherwise.
2011-10-13 15:28:06 -07:00
Gabriele Rabbiosi
7c34c5dc4b Merge branch 'master' of git://github.com/jquery/jquery-mobile into Issue-#2654 2011-10-14 00:25:49 +02:00
John Bender
2de28ee69f allow users to define keepnative on page elements 2011-10-13 14:53:36 -07:00
Todd Parker
e9040c7123 Merge pull request #2694 from Wilto/version-flag-touchOverflowEnabled
Fixes position of ‘current version’ flag on documentation index when touchOverflowEnabled is true. Thanks Wilto!
2011-10-13 13:32:37 -07:00
Mat Marquis
9719454056 Fixes position of ‘current version’ flag on documentation index when touchOverflowEnabled is true. 2011-10-13 16:22:08 -04:00
Gabriele Rabbiosi
1559478aae Issue #2654 - 'degradeInputs' plugin doesn't trigger on 'create' events; modified plugin and added tests 2011-10-13 22:21:47 +02:00
toddparker
fbec0e3520 Added config test page for jQuery core 1.8B1 2011-10-13 15:46:55 -04:00
toddparker
9fd7c160ef Created a set of static global config test pages
This will make it easy to quickly test key settings by going to:
jquerymobile.com/test/config

This is a bit fragile because refreshing or hitting a link with
rel=external or ajax=false will lose the setting.
2011-10-13 13:59:10 -04:00
toddparker
4d35966e69 Tweaked odd input values in demo page for buttons 2011-10-12 18:08:51 -04:00
Kin Blas
2c7d1785ac Merge pull request #2687 from eddiemonge/patch-5
style cleanups
2011-10-12 14:12:54 -07:00
Eddie Monge Jr.
7c449fc791 style cleanups 2011-10-12 13:10:08 -07:00
John Bender
49325216ed second half of the test fix from yesterday that was required by the root page url default 2011-10-12 11:54:07 -07:00
John Bender
713c6a0342 fixed broken path tests
normally I wouldn't accept re-ordering of tests as a solution to any problem, but the issue here was multiple changepage events overlapping during our tests. generally we have browser state issues in our test suite and we need a general solution for them which will come post 1.0
2011-10-12 11:54:07 -07:00
Todd Parker
adf55d052c Merge pull request #2684 from myakura/bug_2677
Fixes #2677 - Incorrect -moz-background-clip property in Valancia theme. Thanks myakura!
2011-10-12 09:55:34 -07:00
Masataka Yakura
592fc77cd2 fix -moz-background-clip value so that old Firefox can understand. Fix for #2677 2011-10-13 01:17:51 +09:00
toddparker
1c9a18ed79 Fixed CSS border-radius:none invalid in section "Using 3rd party icon sets". Fixes #2129 2011-10-12 11:55:06 -04:00
toddparker
15e984eca6 Re-vamped the navbar docs to fix incorrect info about icon positioning and theming. Fixes #1858, Fixes #1797, Fixes #2667, Fixes #1180, Fixes #2373
The docs incorrectly stated that the icon position could be set per
link, but this is intended as a global setting for the navbar parent.
This is working as designed and helps with visual consistency. If icon
positioning needs to be be adjusted per link, you will need to manually
apply the right classes through JS and may need to tweak CSS because
top/bottom and left/right positions have different heights.
2011-10-12 11:49:26 -04:00
toddparker
e4834a8db7 Fixed typo in code, unnecessary data-role="fieldcontain" attribute. Fixes #2682. Thanks jarrettaylor 2011-10-12 10:49:31 -04:00
John Bender
f0db137ed9 render prefetched pages according to their data-rel attr fixes #2335 2011-10-11 16:19:18 -07:00
John Bender
475069becd added test for prefetched dialog pages 2011-10-11 16:19:18 -07:00
Todd Parker
61f68189d5 Merge pull request #2674 from Wilto/button-text-icon-zindexes
Hopefully fixes #1392 — Accounts for z-index issues on elements in buttons. Thanks @Wilto
2011-10-11 15:05:12 -07:00
Mat Marquis
68dba30b4f Hopefully fixes #1392 — Accounts for z-index issues with input type=submit/button elements, icons, and text within .ui-btn, both inside and outside listviews (including split views). Also accounts for current phase of the moon, just in case. 2011-10-11 17:46:29 -04:00
John Bender
2b5d9a9a3a correction to nav test to account for root element using the pathname + search 2011-10-11 13:11:11 -07:00
Todd Parker
c9e6c45d55 Merge pull request #2671 from Wilto/text-overflow-in-lists
Fixes #2647 — Ensures overflow: hidden is applied to .ui-btn-text inside listviews. Thanks Wilto!
2011-10-11 13:02:14 -07:00
Mat Marquis
aefbe396c4 Fixes #2647 — Ensures overflow: hidden is applied to .ui-btn-text inside selects inside of listviews. 2011-10-11 15:53:43 -04:00
John Bender
e4cf491c2c missing semi 2011-10-11 11:37:37 -07:00
John Bender
845f657ddf test that autogrow is triggered on keyup 2011-10-11 11:32:38 -07:00
John Bender
5150114c13 test page init textarea autogrow 2011-10-11 11:32:38 -07:00
Todd Parker
8b1c28439c Merge pull request #2669 from Wilto/hidden-text-alignment
Fixes issue where hidden button text was visibile on wide displays. Thanks Wilto and Sumeruter!
2011-10-11 11:31:29 -07:00
Mat Marquis
231b10fd66 Addresses comment on #2560 ( https://github.com/jquery/jquery-mobile/pull/2560#issuecomment-2365243 ) 2011-10-11 14:19:59 -04:00
John Bender
4713bf26d5 remove log statements 2011-10-11 10:47:46 -07:00
John Bender
8dd3def54b refactor for #509, move to document ready instead of using ssetTimeout 2011-10-11 10:46:19 -07:00
John Bender
3306a3242c Merge branch 'master' of https://github.com/mplatov/jquery-mobile into mplatov-master 2011-10-11 10:44:38 -07:00
John Bender
0aec8639d0 fixes to test unit runner for upgrade to qunit 2011-10-11 08:42:26 -07:00
John Bender
2efeafde40 corrected failing checkboxradio test 2011-10-11 08:39:10 -07:00
John Bender
9b73a750d4 use jQuery.trim 2011-10-11 08:31:37 -07:00
toddparker
1d81e4f28e Added a note about disabling pushState in the "linking pages" section, cleaned up language. 2011-10-11 10:51:22 -04:00
Ghislain Seguin
3082a60586 Merge pull request #2662 from MauriceG/patch-7
Fix for #2653 - Firefox 7.0.1 - Collapsible heading gets truncated beginn
2011-10-10 15:23:25 -07:00
Maurice Gottlieb
be7f74262b Fix for #2653 - Firefox 7.0.1 - Collapsible heading gets truncated beginning of string 2011-10-11 00:51:45 +03:00
John Bender
623433f75b tests for enhance and exclusion through keepNative 2011-10-10 14:21:37 -07:00
John Bender
b958e84e2c correction of slider test markup 2011-10-10 14:21:37 -07:00
John Bender
a4836ec5fd move button to enhanceWithin 2011-10-10 14:21:37 -07:00
John Bender
f368f01a82 correct selector in test 2011-10-10 14:21:37 -07:00
John Bender
ec2c015136 slider enhanceWith tests 2011-10-10 14:21:37 -07:00
John Bender
404010839d move slider to enhanceWith 2011-10-10 14:21:37 -07:00
John Bender
63ab61cb89 test for enhanceWithin use 2011-10-10 14:21:37 -07:00
John Bender
aa16aec358 move checkbox radio to enhanceWithin 2011-10-10 14:21:37 -07:00
John Bender
18737f4940 test to verify that textinputs are kept native where necessary 2011-10-10 14:21:37 -07:00
John Bender
4ccd9b1bb3 move textinput to widget prototype enhanceWithin 2011-10-10 14:21:37 -07:00
John Bender
9e63d40298 todo for moving the keepnative to the widget itself, whitespace 2011-10-10 14:21:37 -07:00
John Bender
c1bd079b90 test for keepnative on the select menu 2011-10-10 14:21:37 -07:00
John Bender
0e5583eae9 move to a centralized form element selector to leverage keepnative 2011-10-10 14:21:36 -07:00
John Bender
b358985ca2 tests for keepNativeSelector method 2011-10-10 14:21:36 -07:00
John Bender
1b6ac290d2 add keepNativeSelector method to page widget for use in child form creat bindings 2011-10-10 14:21:36 -07:00
Kin Blas
88720d5d01 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-10-10 11:05:43 -07:00
Kin Blas
c297f9675b Fix for issue #2644 - Navigating to root "/" does not generate clean URL if root page has id="*"
- Fixed a bug in the hashchange handler for the pushstate/replacestate plugin that was incorrectly resolving hashchanges for ids against the current location.href, which could be a different document. We now resolve id hashes against the document URL.

- Modified changePage() so that it sets the settings.dataUrl option to the documentUrl, when navigating to the first-page of the application document. This prevents any id on the first-page from being added to the location hash. This means that URLs that used to be produced like this:

	http://site.com/apps/#first-page-id

will now display as:

		http://site.com/apps/

Developers that wish to get the old behavior back can register a pagebeforechange handler and do something like this:

	$( document ).bind( "pagebeforechange", function( e, data ) {
		var toPage = data.toPage;
		if ( typeof toPage === "object" && !data.options.dataUrl && toPage[ 0 ] === $.mobile.firstPage[ 0 ] && toPage[ 0 ].id ) {
			data.options.dataUrl = "#" + toPage[ 0 ].id;
		}
	});

The handler above will make sure that any page changes to the first-page will always display as:

	http://site.com/apps/#first-page-id
2011-10-10 11:04:04 -07:00
toddparker
38e77e5c80 Updated docs to clarify the replaceState known issues and to add docs on the pushStateEnabled option 2011-10-10 13:14:59 -04:00
John Bender
a589da3936 added 'known issues' bullet for (push|replace)State 2011-10-07 17:11:30 -07:00
John Bender
cddd16a02b added warning to documentation for (push|replace)State plugin pertaining to external link issues 2011-10-07 16:03:28 -07:00
John Bender
479585e1ff whitespace in navmodel docs 2011-10-07 16:03:28 -07:00
scottjehl
09c92b516d Merge remote branch 'origin/master' 2011-10-07 18:50:30 -04:00
scottjehl
513940b88c removed focus outline disabling on buttons and active state, which addresses issue #2639, and helps with keyboard navigation. 2011-10-07 18:50:11 -04:00
scottjehl
f0403f9d9f set native touch overflow enabling back to false 2011-10-07 18:48:38 -04:00
John Bender
92baba02d4 orientation change check requires stubbing onorientationchange 2011-10-07 13:32:34 -07:00
John Bender
c2c7af8876 fix for failing tests adding root page to the dom twice because of the search string 2011-10-07 13:30:31 -07:00
Kin Blas
9983e96382 Added the tools directory to the Makefile so it gets copied when making nightlies and demos. 2011-10-07 09:36:12 -07:00
Kin Blas
e3f45bf0f3 First pass implementation of a page event logger bookmarklet to help us quickly diagnose navigation problems for external jQuery Mobile sites. Users can either follow the instructions for using/setting up the bookmarklet in log-page-events.html, or simply include the log-page-events.js directly in their source. 2011-10-07 09:31:28 -07:00
scottjehl
dc90ef39f6 clarified some of the points on scripting pages 2011-10-07 10:58:34 -04:00
Todd Parker
da2352a7ad Merge pull request #2622 from Wilto/search-iconpos
Fixes #2571, Fixes #2590, Fixes #2576 — Improperly scoped “position: relative;” on .ui-btn-text. Thanks Wilto!
2011-10-05 14:26:50 -07:00
Mat Marquis
772a4790a1 Fixes #2571, Fixes #2590, Fixes #2576 — All three issues were caused by improperly-scoped “position: relative;” on .ui-btn-text, within listviews. 2011-10-05 16:50:36 -04:00
John Bender
71b0eb0552 move $.fn.text invocation to $.fn.getEncodedTest where the content is being re-added to the dom for xss safety Fixes #2550 2011-10-04 18:25:54 -07:00
Todd Parker
90d8387caf Merge pull request #2610 from Wilto/listview-rounded-icons
Fixes #2593 — Prevents rounded corners on icons in lists. Thanks Wilto!
2011-10-04 15:10:00 -07:00
Mat Marquis
54465515d7 Fixes #2593 — Prevents application of ‘ui-corner-bl’ and ‘ui-corner-tl’ classes to ‘ui-li-thumb’ elements that have a class of ‘ui-li-icon.’ 2011-10-04 18:02:52 -04:00
Jörn Zaefferer
23a24f6106 Update to latest QUnit. Fix event tests that were calling both asyncTest 2011-10-04 17:34:33 -04:00
Todd Parker
a783c740e8 Merge pull request #2609 from Wilto/voiceover-double-buttons
Fixes #2594 — Button text is no longer read aloud twice. Thanks @Wilto!
2011-10-04 14:10:29 -07:00
Mat Marquis
3c3a777158 Fixes #2594 — Button text is no longer read aloud twice (and treated as two separate navigable items) in iOS VoiceOver. 2011-10-04 16:45:14 -04:00
John Bender
55e11dd8ea update documentation to highlight timing issues with orientationchange 2011-10-04 13:31:29 -07:00
Todd Parker
32ed8cfbbd Merge pull request #2607 from Wilto/collapsible-status-text
Fixes #2595 — Hidden “click to expand contents” text now updates. Thanks @rogerjohansson and @Wilto
2011-10-04 12:44:03 -07:00
Jörn Zaefferer
0ed1460279 Add swarminject.js to prepare for TestSwarm integration 2011-10-04 15:02:17 -04:00
John Bender
57079e1d6b add the ability to disable native orientation change support Fixes #793
the frequency of the triggered event in certain android releases ( 2.1, 2.2) appears to be dependent on a host of things other than an actual orientation change, eg alerts, zoom, and scrolling. This provides a way for the user to disable it in favor for using throttled resize while still making use of the window.orientation where its available for reliability
2011-10-04 11:54:26 -07:00
toddparker
ff9720281b Added another check for orientation change event for Android 2.1 2011-10-04 11:54:25 -07:00
John Bender
a0ddaab8e3 fix for incorrect portrait of lanscape value
The value attached to the event passed into handlers was based soley on screensize which is problematic given that some implementations (eg Android 2.3) don't change the screensize until after the event is fired. The orientation property appears to report a better value where it is provided so the solution is to prefer what it reports and then fallback to the screensize caculation where necessary.
2011-10-04 11:54:25 -07:00
John Bender
a20bb72a29 whitespace in events 2011-10-04 11:54:25 -07:00
Mat Marquis
4ed1e6ac11 Fixes #2595 — Hidden “click to expand contents” text now changes depending on current expanded/hidden state. 2011-10-04 14:01:08 -04:00
Kin Blas
ec08371aec Merge pull request #2599 from gabrielschulhof/scrollview-position-relative
scrollview: Add "position: relative;" to class ui-scrollview-clip in orde
2011-10-04 01:46:47 -07:00
Gabriel Schulhof
51a4298f96 scrollview: Add "position: relative;" to class ui-scrollview-clip in order to confine scrollbars to scrollview container 2011-10-04 11:35:04 +03:00
toddparker
a252794f36 Merge remote branch 'origin/master' 2011-10-03 17:23:25 -04:00
toddparker
b483eebc78 Added links to bar and content block examples. 2011-10-03 17:22:39 -04:00
toddparker
1791e671c9 Removed global link styles, added in swatch-specific link styles for bar and body. 2011-10-03 17:21:25 -04:00
scottjehl
ead0baf2ab brought these orientation-based rules back for certain scenarios where they're helpful, such as when js is setting heights in iOS5. No bug fix, just a tweak. 2011-10-03 17:01:05 -04:00
toddparker
1c5fd4c12f Updated version to 1.0rc2pre 2011-10-03 14:25:13 -04:00
gseguin
7106078f87 Fix for #2592 2011-10-03 09:19:44 -07:00
Kin Blas
8a25599b82 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-30 12:43:30 -07:00
Kin Blas
5811440641 Added a test for diretly loading Urls with a hash that contains just the dialogHashKey. This tests to make sure these issues don't happen again:
Issue #2570 - Refreshing a page with #&ui-state=dialog causes syntax error
Issue #2582 - Refreshing a page with #&ui-state=dialog causes page duplication
2011-09-30 12:40:57 -07:00
Kin Blas
98eda9a0f4 Fixes #2582 - Refreshing a page with #&ui-state=dialog causes page duplication
- Modified loadPage() to call isFirstPage() with fileUrl instead of absUrl. Since fileUrl is the same as absUrl, but with the dialogHashKey stripped off, it will allow us to match against the url for the first-page.
2011-09-30 12:38:16 -07:00
Kin Blas
5a76ae7ed2 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-30 09:19:15 -07:00
Kin Blas
bafc18723b Fixes #2574 - namespace pollution on 'search' variable (1.0rc1)
- There was a typo in the var declaration in makeUrlAbsolute(). Changed the ';' in the middle of the declaration to ','.
2011-09-30 09:17:05 -07:00
gseguin
d5d3f47294 Added a link to jsbin and jsfiddle in the submitting bugs section 2011-09-29 15:56:30 -07:00
scottjehl
b4a7db2f1d brought back these orientation rules as they're important in iOS5 layouts. 2011-09-29 18:38:15 -04:00
Kin Blas
52c9f35d47 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-29 15:19:46 -07:00
Kin Blas
47812171f1 Fixes #2570 - Refreshing a page with #&ui-state=dialog causes syntax error
- This was a regression from my fix to loadPage() for detecting un-enhanced pages by @id as a fallback. In this particular case dataUrl was being used to create an id selector, and of course if the dataUrl is an empty string we end up using "#" as the selector. The fix is to simply check for a non-empty dataUrl.
2011-09-29 15:16:21 -07:00
John Resig
349daaffa7 Tagging 1.0rc1. 2011-09-29 17:05:19 -04:00
toddparker
5b1294f7c4 Fixed typo. 2011-09-29 16:40:55 -04:00
scottjehl
ce1e464275 adjusted the presentation of the left nav and footer for the docs 2011-09-29 16:35:31 -04:00
toddparker
836eae81cc Merge remote branch 'origin/master' 2011-09-29 16:23:12 -04:00
toddparker
539713b9f9 Edited the features page to bring it up-to-date 2011-09-29 16:22:46 -04:00
scottjehl
1dbb08a7a7 Merge remote branch 'origin/master' 2011-09-29 15:28:30 -04:00
scottjehl
94c57aaa82 adjusted docs left column 2011-09-29 15:28:20 -04:00
toddparker
3aa1c6fac0 Added RC1 banner image 2011-09-29 15:14:17 -04:00
scottjehl
8c2b1d9f55 removed media classes from make file, following up to previous commits 2011-09-29 14:55:41 -04:00
scottjehl
de40dac5dc added reference to Respond.js polyfill for those using CSS3 Media Queries. 2011-09-29 14:52:59 -04:00
scottjehl
e29346daf5 Merge remote branch 'origin/master' 2011-09-29 14:47:24 -04:00
scottjehl
a93c4878aa removed media classes JS - deprecated since Beta 1. Use CSS3 Media Queries with a polyfill instead :) Docs are updated to link to old code in case anyone still needs a backwards-port 2011-09-29 14:47:05 -04:00
scottjehl
ea3a34e055 changed comment in JS 2011-09-29 14:46:06 -04:00
toddparker
5c7a802d23 Updated dependencies in templates to point to 1.0rc1 and 1.6.4 2011-09-29 14:28:12 -04:00
scottjehl
8a76335682 These orientation heights that were mainly tied to iOS are no longer needed, as viewport height is managed via JS 2011-09-29 14:27:49 -04:00
toddparker
85a70a75c5 Updated supported platforms for RC1 2011-09-29 14:25:38 -04:00
maggiewachs
ac07bb6309 clarified intro text 2011-09-29 13:43:47 -04:00
maggiewachs
9b49cfe1a1 edit to form button description 2011-09-29 13:40:39 -04:00
maggiewachs
e3644c8fd9 clarified blurb about how events are preserved for form buttons 2011-09-29 13:39:54 -04:00
maggiewachs
0b5bd9ed06 fixed broken links 2011-09-29 13:06:04 -04:00
maggiewachs
8c86f407d0 Merge branch 'master' of github.com:jquery/jquery-mobile 2011-09-29 13:04:05 -04:00
maggiewachs
1fbc401496 simplified language 2011-09-29 13:04:00 -04:00
maggiewachs
5dbc616e37 added note style 2011-09-29 13:03:50 -04:00
maggiewachs
108ef2337e added nav bar and updated content (now includes a nav bar for options, methods, and events pages) 2011-09-29 13:03:35 -04:00
maggiewachs
3eccc5ba16 added to repo 2011-09-29 13:03:00 -04:00
Kin Blas
b2dad0ea05 Updated the $.mobile.loadPage() sample in the pre-fetch section so that it passes in the showLoadMsg:false option to prevent the ajax loading message from popping up. 2011-09-29 09:23:39 -07:00
maggiewachs
0f73dd2a24 removed plugin events and methods page from nav (keeping it in the directory to redirect) 2011-09-29 11:33:32 -04:00
maggiewachs
9d9175b305 corrected the nav "on" state 2011-09-29 10:58:28 -04:00
maggiewachs
312b726238 updated forms nav links 2011-09-29 10:52:58 -04:00
Kin Blas
bb8326876b Fixes #2212 - Collapsible heading vclick issue
- Switch to using "click" instead of "vclick" on collapsible headers since that is the only reliable way to prevent uncaught/mismatched clicks from firing on a different element.
2011-09-29 00:43:01 -07:00
Kin Blas
f6b2a9c700 Added additional verbage to the virtual mouse events section. 2011-09-29 00:31:02 -07:00
Kin Blas
405db8efa2 Added documentation for page change and remove event notifications. 2011-09-28 23:40:37 -07:00
Kin Blas
972500bbbc Re-merge pull request #1550 from MaxThrax/master.
- Not sure what happened when I originally merged this back on 05/02/2011, but here it is again!
2011-09-28 22:08:30 -07:00
Ghislain Seguin
0c829f5bfe Merge pull request #2564 from eddiemonge/patch-3
Typo when specifying a test-shadow.
2011-09-28 19:28:12 -07:00
Eddie Monge Jr.
ec6b1b4671 Typo when specifying a test-shadow. 2011-09-28 19:19:42 -07:00
Kin Blas
91de92f627 First pass attempt at documenting the pagebeforeload, pageload, and pageloadfailed events. 2011-09-28 14:50:01 -07:00
Kin Blas
ca5834dc9d Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-28 13:25:05 -07:00
Kin Blas
016b415027 Updated and alphabetically re-ordered the options for changePage() and loadPage(). 2011-09-28 13:23:51 -07:00
maggiewachs
cb7fc442b7 Merge branch 'master' of github.com:jquery/jquery-mobile 2011-09-28 16:03:03 -04:00
maggiewachs
de675361f7 updated form section nav 2011-09-28 16:02:56 -04:00
maggiewachs
e604a61f1f removed old file 2011-09-28 16:02:34 -04:00
maggiewachs
3d46126d29 added to repo 2011-09-28 16:02:28 -04:00
Scott Jehl
79708df1c0 Merge pull request #2560 from Wilto/notext_icons_ie7-wp7
Fix for disappearing notext icons in IE7/WP7.
2011-09-28 12:58:24 -07:00
Mat Marquis
99d5ea690a Fixes #1230 — Looks like there was an extranious “text-indent: -9999px” set on the buttons themselves, which was causing IE to hide the icons (as they’re inline). Since it doesn’t look like text can possibly exist outside of .ui-btn-text, it should be safe to remove it. 2011-09-28 15:40:40 -04:00
maggiewachs
7e567f0375 removed refresh description from main page (now on methods tab) 2011-09-28 15:33:06 -04:00
maggiewachs
e1552c29b6 edited refresh description 2011-09-28 15:32:44 -04:00
maggiewachs
725210673b updated nav options and standardized options descriptions 2011-09-28 15:19:54 -04:00
maggiewachs
afe1ea5a9a added to repo 2011-09-28 15:19:32 -04:00
maggiewachs
9c5442038b removed old file 2011-09-28 15:19:21 -04:00
maggiewachs
d4b10bbcda Merge branch 'master' of github.com:jquery/jquery-mobile 2011-09-28 14:52:58 -04:00
maggiewachs
dabd071087 updated options 2011-09-28 14:52:48 -04:00
maggiewachs
6976df6c50 added 'calling plugin' section 2011-09-28 14:52:27 -04:00
maggiewachs
3a52bc1740 updated options 2011-09-28 14:52:06 -04:00
maggiewachs
fad253ffbb removed old file 2011-09-28 14:51:56 -04:00
Kin Blas
d64eaf0500 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-28 11:40:33 -07:00
Kin Blas
880df5fcf5 Added unit test for issue #2537 - Add new pageremove event.
The test makes use of a pageremove callback that conditionally calls preventDefault() on the event so that the test can make sure a developer can prevent a specific page from being removed from the DOM.
2011-09-28 11:38:18 -07:00
Kin Blas
34fb7b2dc1 Fixes #2537 - Add new pageremove event
- Modified the pagehide callback in $.mobile._bindPageRemove() so that it fires off a "pageremove" event. Callbacks can prevent the removal of the page by simply calling preventDefault() on the pagremove event object that is passed to their callback.
2011-09-28 11:37:46 -07:00
Mat Marquis
a1c5173e3b Merge remote-tracking branch 'upstream/master' 2011-09-28 14:22:18 -04:00
scottjehl
4618b1253f Merge remote branch 'origin/master' 2011-09-28 14:10:09 -04:00
scottjehl
4c404e50b6 Removed the separate search icon image and used the one from the sprite instead. Because of this, we'll save a request, but the icon is slightly different as a result (it has a disc, making it consistent with other icons in the framework). 2011-09-28 14:09:55 -04:00
gseguin
b0969d1bcf Merge branch 'issue-2527' 2011-09-28 11:03:18 -07:00
gseguin
bc2243342d Changed collapsible tests following fix for #2527 2011-09-28 11:01:58 -07:00
gseguin
b84a68edaa Missing semi-colon 2011-09-28 10:57:46 -07:00
gseguin
5a97fd7b05 Fix for #2527
Use ui-body-* instead of ui-btn-up-* for collapsible content
2011-09-28 10:57:24 -07:00
Todd Parker
ee35ca635f Merge pull request #2556 from Wilto/master
Assorted CSS adjustments. Fixes #1392, Fixes #2513. Thanks Wilto!
2011-09-28 10:54:17 -07:00
Kin Blas
ca9df1197a Fixes #2529 - Transition to the same page
- So it seems just allowing changePage() to process same toPage and fromPage is not enough. I modified the CSS3 keyframe

animation plugin so that it only removes the ui-page-active class from the fromPage if it is *NOT* the same as the toPage.

- I also re-ordered the in/out transition rules for forward/reverse transitions so that the user always views some sort of animation/motion.
2011-09-28 09:14:52 -07:00
maggiewachs
2b2935b701 clarified initSelector description 2011-09-28 11:14:09 -04:00
maggiewachs
deec3340f2 updated navigation links for the text inputs and slider 2011-09-28 11:01:20 -04:00
maggiewachs
d423d9ec79 changed the folder name from 'sliders' to slider 2011-09-28 11:00:56 -04:00
maggiewachs
c1b1d5c1a6 removed old file 2011-09-28 11:00:44 -04:00
maggiewachs
658433b89c changed the folder name from 'sliders' to slider 2011-09-28 11:00:37 -04:00
John Bender
9acbcb3b15 add test to guarantee that getEncodedText does not return html 2011-09-27 15:55:44 -07:00
John Bender
d816fe1ec1 tests for getEncodedText helper and issue #2547 2011-09-27 15:48:52 -07:00
John Bender
ac0288a5ba create getEncodedText helper and update custom select for use Fixes #2547 2011-09-27 15:19:35 -07:00
Mat Marquis
02c41bedd6 Slight tweak to styling of buttons with data-iconpos=[top/bottom]. 2011-09-27 17:27:53 -04:00
Mat Marquis
085a104005 Fixes #2538 — Button wasn’t getting the appropriate “has-count” class. 2011-09-27 16:47:11 -04:00
scottjehl
3a337e98c7 Merge remote branch 'origin/master' 2011-09-27 16:27:23 -04:00
maggiewachs
4893f5d2eb removed old file 2011-09-27 16:01:46 -04:00
maggiewachs
c342f7b8d3 removed - changed folder name 2011-09-27 16:00:56 -04:00
maggiewachs
5093d28d59 updated the nav link to textinputs 2011-09-27 16:00:03 -04:00
maggiewachs
d77849a9ac changed the folder name to something more descriptive (textinputs rather than texts), and corrected the documentation language (several factual errors) 2011-09-27 15:59:39 -04:00
Mat Marquis
f0a7d0b963 Fixes #2513 — Also addresses issue where 1px top border highlight on controlgroup buttons was aligned with top of icon, rather than the top of the button. 2011-09-27 15:55:19 -04:00
Mat Marquis
252c269bf5 Merge remote-tracking branch 'upstream/master' 2011-09-27 15:21:54 -04:00
scottjehl
083f69d018 Undeleted some "features" that seemed to keep bugs at bay. Fixes #2545. Fixes #2476 2011-09-27 15:17:25 -04:00
Mat Marquis
d1002ba968 Fixes #2532 — Regression introduced while addressing #1392. 2011-09-27 14:24:44 -04:00
Mat Marquis
b0df463af9 Fixes issue where clicking the edges of a custom select wouldn’t trigger the native select list, as well as an issue where the native select list was showing then immediately hiding in IE7. 2011-09-27 14:21:34 -04:00
toddparker
08736c3dda Merge remote branch 'origin/master' 2011-09-27 13:38:11 -04:00
toddparker
8669913fa7 Removed outdated device photo from intro page 2011-09-27 13:37:50 -04:00
scottjehl
fdc48805e9 Merge remote branch 'origin/master' 2011-09-27 12:37:17 -04:00
scottjehl
9b86fddf89 disabled touch overflow scrolling by default. overridable through $.mobile.touchOverflowEnabled. 2011-09-27 12:37:10 -04:00
scottjehl
47480d69f9 when touch overflow scrolling is supported and enabled, user scaling can create serious usability issues where it's difficult to get zoomed back out. This disables user scaling when that overflow scrolling is enabled (currently only projected for ios5 support) 2011-09-27 12:36:24 -04:00
scottjehl
1ad3eeaf98 accelerate elements within the page in touch-enabled scenarios to prevent hidden elements (not just blinking, but flat-out disappearing) 2011-09-27 12:34:17 -04:00
toddparker
8e2f6fa341 Fixed a code typo in the theme example 2011-09-26 16:22:55 -04:00
toddparker
72535d11b3 Added improved collpsible theming docs 2011-09-26 16:21:32 -04:00
Kin Blas
a975878fb4 Disabled the workaround for issue 785 (jQM text input forces use of iOS auto-correction) on iOS 5 devices since it appears to be fixed. This is still a problem on iOS 4.x and earlier.
- We don't have a specific test for iOS 5 so we use $.support.touchOverflow as an iOS 5 and later indicator. Yes, I feel dirty.
2011-09-26 11:39:30 -07:00
Kin Blas
6cd1e1b141 Fix for issue 2529 - Transition to the same page
- Added a new allowSamePageTransition option to the changePage() method default settings.

By default, we prevent changePage() requests when the fromPage and toPage are the same element, but folks that generate content manually/dynamically and reuse pages want to be able to transition to the same page. To allow
this, they will need to change the default value of allowSamePageTransition to true, *OR*, pass it in as an option when they manually call changePage().

It should be noted that our default transition animations assume that the formPage and toPage are different elements, so they may behave unexpectedly. It is up to the developer that turns on the allowSamePageTransitiona option
to either turn off transition animations, or make sure that an appropriate animation transition is used.

	// To toggle the default behavior for all changePage() calls,
	// set the default value of allowSamePageTransition to whatever
	// you want it to be. The default is false.

	$.mobile.changePage.defaults.allowSamePageTransition = true;

	// To specify the behavior when manually calling changePage(),
	// pass it as an option. If not specified, the default value
	// specified by $.mobile.changepage.defaults.allowSamePageTransition
	// is used.

	$.mobile.changePage( "#reused-page", { allowSamePageTransition: true } );
2011-09-26 10:23:47 -07:00
Todd Parker
86ab89497a Merge pull request #2522 from bobbravo2/patch-1
fixed typos and added @deprecated note to the $.mobile.addResolutionBreak. Thanks bobbravo2!
2011-09-26 07:10:20 -07:00
Ghislain Seguin
1477950a3f Merge pull request #2526 from MauriceG/patch-5
correcting typos and use consistent titling "Theming buttons"
2011-09-25 16:12:47 -07:00
Maurice Gottlieb
362cab5343 correct typos and use consistent titling "Theming buttons" 2011-09-26 01:29:41 +03:00
Todd Parker
4ca42592c1 Merge pull request #2525 from MauriceG/patch-4
correct some typos and correction for #2524. Thanks MauriceG!
2011-09-25 11:43:09 -07:00
Maurice Gottlieb
8539423a56 correct some typos and correction for #2524 2011-09-25 20:36:32 +03:00
gseguin
6db3ca1390 Fix for #2524
Fix collapsible docs to match actual behavior
2011-09-25 08:22:53 -07:00
Hans-Peter Buniat
68e2839209 removed settimeout 2011-09-25 14:12:55 +02:00
gseguin
5bd72c7b96 Merge branch 'collapsible-redesign' 2011-09-24 22:12:22 -07:00
gseguin
16c34ce3ac Behavior changed, fixed test 2011-09-24 22:02:18 -07:00
gseguin
276f27fbfa Fixed missing top corner on collapsible set with only one collapsible 2011-09-24 21:58:04 -07:00
gseguin
3ecbf8e383 Simplified code. Don't add data-* attr if not set by user 2011-09-24 21:41:20 -07:00
gseguin
553de2d265 Unit tests for collapsible and collapsible-set following commit bdaa477f68 2011-09-24 17:24:07 -07:00
gseguin
bdaa477f68 Fix for #1899
Added data-content-theme to style the content of the collapsible
data-theme and data-content-theme inherit collapsible-set's
2011-09-24 17:22:55 -07:00
Robert Gregor
a41c2ce8d1 fixed typos and added @deprecated note to the $.mobile.addResolutionBreakpoints method 2011-09-24 17:31:35 -03:00
scottjehl
e81e3b19c0 fixed positioning of selects in touch overflow scroll mode. Fixes #2415 2011-09-24 01:00:42 -04:00
scottjehl
23e79fb1db better fix for the ios5 height issue with the bottom of the page. 2011-09-24 00:55:50 -04:00
scottjehl
52e1022697 adjusted the fallback heights. addresses the ios5 fixed footer alignment described in issue #2415 2011-09-24 00:33:44 -04:00
scottjehl
e794ad0f11 Merge remote branch 'origin/master' 2011-09-24 00:04:42 -04:00
scottjehl
569d55acf9 addresses issue #2415 - applying a transform gets rid of the element peekaboos for headers, and other content in the page. We'll need to monitor this one this week and see what the memory impact is before keeping it. 2011-09-24 00:04:34 -04:00
John Bender
e8f87f864f test to cover text inputs without types 2011-09-23 20:45:55 -07:00
John Bender
aa679a9b0f add inputs without a type to the text input list Fixes #2205 2011-09-23 20:44:48 -07:00
John Bender
3d88760019 whitespace in mobile forms textinput 2011-09-23 20:43:56 -07:00
John Bender
20810a00e5 test to verify removal of child menupages 2011-09-23 16:32:56 -07:00
John Bender
f029230e3a handle all dialog closing cases 2011-09-23 16:32:56 -07:00
John Bender
4852491f9e test for new core helpers 2011-09-23 16:32:56 -07:00
John Bender
eca88ea818 quick rename to addDependents 2011-09-23 16:32:56 -07:00
John Bender
890c96146e test core helpers 2011-09-23 16:32:56 -07:00
John Bender
76eb594cd1 fix nav test to use close button in dialog and not data rel back 2011-09-23 16:32:56 -07:00
John Bender
e741bc2da6 force close logic of custom select to run when close is clicked, centralize the binding for pagehide.remove 2011-09-23 16:32:56 -07:00
John Bender
b837a49b32 add dependent tracking functions for jquery mobile objects 2011-09-23 16:32:56 -07:00
John Bender
eb7c4d08d8 closed tags in test redirect pages 2011-09-23 16:32:56 -07:00
scottjehl
b2d023732a Fixes #2490 where IE (and WP7) were not properly degrading form inputs via the degradeinputs plugin (and search inputs were not being styled as such) 2011-09-23 19:17:22 -04:00
Scott Jehl
adc1ecc2e6 Merge pull request #2519 from Wilto/master
Various and Sundry Fixes
2011-09-23 15:20:19 -07:00
Mat Marquis
ecc1361f7f For the sake of jQuery’s serialize, submit inputs’ values are added to the form as a hidden input—this ensures it will only happen once, and that this logic only applies to submit inputs with a name attribute. 2011-09-23 18:10:03 -04:00
Mat Marquis
dec502d2c8 Prevents “undefined is null or not an object” error in IE, where .scrollTop() was being called before the body was ready. 2011-09-23 18:05:12 -04:00
Mat Marquis
078d317e63 Potentially addresses #1927 — Using “filter” for opacity was causing strange issues in IE, making all but the text on submit inputs click-proof. Bears further testing, if someone wouldn’t mind taking a look. 2011-09-23 18:00:13 -04:00
Kin Blas
40570e294d Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-23 14:23:55 -07:00
Kin Blas
4f066b7e07 Fix for issue 2503 - User can't specify own error handling logic
- Added the following notifications to $.mobile.loadPage():

	- pagebeforeload
		- Triggered just before loadPage() attempts to dynamically load an external page.
		- Developers can prevent the default loading behavior by calling preventDefault() on the event. If preventDefault() is called, it is up to the developer to call resolve()/reject() on the deferred object passed within the data object (2nd arg to the event callback).

	- pageload
		- Triggered after an external page has been loaded and inserted into the document.

	- pageloadfailed
		- Triggered when the load of an external page fails.
		- Developers can prevent the default behavior (error dialog display) by calling preventDefault() on the event. If preventDefault() is called, it is up to the developer to call resolve()/reject() on the deferred object (2nd arg to the event callback).
2011-09-23 14:12:40 -07:00
Ghislain Seguin
659bc45f74 Merge pull request #2517 from Wilto/master
Fixes #2516 — Tightens scope of a previous fix for clicks not registering on listview buttons’ icons.
2011-09-23 14:10:38 -07:00
Mat Marquis
848d1a72a3 Fixes #2516 — Tightens scope of a previous fix for clicks not registering on listview buttons’ icons. 2011-09-23 16:57:57 -04:00
toddparker
eaf5822c65 Restored button inline styling by defining inline as an option in the button markup plugin. Fixes #2496
The recent jqmData changes exposed this issue. Default for this option
is false.
2011-09-23 15:28:24 -04:00
toddparker
ee6754d9f2 Merge remote branch 'origin/master' 2011-09-23 14:48:19 -04:00
toddparker
af5b666a15 Updated tokenized theme CSS to remove the widget styles that were appended at the end. 2011-09-23 14:48:07 -04:00
Todd Parker
74e9ac6f05 Merge pull request #2515 from bjohn465/master
Style count bubble only when list is enhanced for better C grade experience. Thanks bjohn465!
2011-09-23 11:32:26 -07:00
Brandon Johnson
eaa182648e Styling count only when the list is enhanced 2011-09-23 12:10:33 -06:00
scottjehl
fe35e36a16 linked up the self-submit demo page and added a brief explanation of what happens when post requests submit to a page already represented in the DOM 2011-09-23 09:32:08 -04:00
scottjehl
be5136198e when a form is submitting via post to a url that already has a page represented in the DOM, replace the current page with the response page of the same url (post params are not passed via q string, so the URLs are identical). 2011-09-23 09:28:43 -04:00
Hans-Peter Buniat
d79c8a63cf added test for #2416 2011-09-23 08:13:19 +02:00
scottjehl
1badd4aa8e enable touch overflow scrolling by default where supported 2011-09-22 21:31:03 -04:00
Kin Blas
a5c873e388 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-22 16:25:38 -07:00
Kin Blas
36a47bbb0e Added slider unit test for issue 2315 - Flip toggle switch with change event bound, triggers multiple times 2011-09-22 16:24:56 -07:00
Kin Blas
4fa6ccdc0d Fix for issue 2315 - Flip toggle switch with change event bound, triggers multiple times
- Modified refresh() so that it checks to see if the value actually changed before firing off the "change" event.
2011-09-22 16:23:43 -07:00
gseguin
114cee84fe Merge remote branch 'upstream/master' 2011-10-05 15:14:39 -07:00
gseguin
141b199224 Updated tests for $.jqmData() and $.fn.jqmData() to match the new behavior 2011-10-05 15:13:44 -07:00
gseguin
27b51c47e9 Fixed $.jqmData() behavior to match $.fn.jqmData() 2011-10-05 15:12:11 -07:00
John Bender
94bc82f64c fix for failing checkbox radio test 2011-09-22 15:38:49 -07:00
John Bender
5b42fe6ea0 whitespace in checkboxradio core 2011-09-22 15:38:49 -07:00
John Bender
48928248d9 remove gzip from combine 2011-09-22 14:40:59 -07:00
John Bender
e5e269394e remove empty else in nav 2011-09-22 14:40:59 -07:00
Todd Parker
539a39e4dd Merge pull request #2509 from Wilto/master
Ensure clicking on buttons’ icons result in a click (can only recreate in desktop browsers). Fixes #1392. Thanks Wilto!
2011-09-22 14:03:30 -07:00
Mat Marquis
088454dc1a Fixes #1392 — Positions .ui-icon on lower z-index than .ui-btn-text, ensuring the click will register on the latter. 2011-09-22 16:56:37 -04:00
Todd Parker
d0364c5139 Merge pull request #2507 from Wilto/42f7dccd7ea99fdb803ce52994c0c703bd12dd0f
Fixes #1666 — .ui-checkbox/.ui-radio floated rather than inline, to fix height and properly hide checkboxes/radios. Visible checkboxes/radios below labels in FF4+ (Windows). Thanks Wilto!
2011-09-22 13:30:19 -07:00
Mat Marquis
42f7dccd7e Fixes #1666 — .ui-checkbox/.ui-radio floated rather than inline, to fix height and properly hide checkboxes/radios. 2011-09-22 16:20:47 -04:00
Ghislain Seguin
2f8d1902a2 Merge pull request #2500 from eddiemonge/issue_2499
Issue 2499: Some php improvements
2011-09-22 10:43:03 -07:00
gseguin
fb06381176 Set content-theme to collapsible in a set only if it's not already set 2011-09-22 10:28:56 -07:00
gseguin
1692c0f378 Added doc/sample for data-content-theme 2011-09-22 09:49:36 -07:00
gseguin
46e6c6b320 fixed data-content-theme in collapsible-set for collapsible expanded by default 2011-09-22 09:49:02 -07:00
John Bender
2086529728 remove extra local var storage 2011-09-22 08:53:53 -07:00
John Bender
f1d63f4f75 simplify calls to bind by wrapping this as a jquery object 2011-09-22 08:52:45 -07:00
John Bender
9d2b39dca6 whitespace in mobile init 2011-09-22 08:52:45 -07:00
John Bender
9182306ccf refactor for clarity and simplicity 2011-09-22 08:52:45 -07:00
John Bender
dd75904c11 fix the scrolling test in nav core to account for timing expectations in the page 2011-09-22 08:52:45 -07:00
John Bender
27b228803a change scroll recording to handle different scroll elements between page changes 2011-09-22 08:52:45 -07:00
John Bender
2f12ff249a refactor setLastScroll to speed it up a tad 2011-09-22 08:52:09 -07:00
John Bender
3e143c8f66 rename getLastScroll and its variables 2011-09-22 08:52:09 -07:00
John Bender
c363864382 use scrolltop to store scroll position
scrolltop as a solution isn't that great but some browsers scroll to the top
of the page to where the element bearing the id matching the hash is located
*before* the hashchange event is fired meaning we don't have an opportunity
in the changepage event lifecycle to record the scrolling properly
2011-09-22 08:52:09 -07:00
Eddie Monge
5bfc08bba2 Issue 2499: Some php improvements 2011-09-21 23:19:37 -07:00
gseguin
4d33ec386b Merge remote branch 'upstream/master' into collapsible-redesign 2011-09-21 22:26:36 -07:00
gseguin
66e63651a7 Added docs for data-content-theme 2011-09-21 22:25:12 -07:00
gseguin
e666552274 Added data-content-theme to collapsible and collapsible-set 2011-09-21 21:56:23 -07:00
Kin Blas
6b2c1762ff Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-21 15:47:52 -07:00
Kin Blas
7ec8999bd0 Added a navigation test for issue 1243 - Can't link to dynamically created data-role="page" 2011-09-21 15:47:14 -07:00
Kin Blas
80b0e99798 Fix for issue 1243 - Can't link to dynamically created data-role="page"
- Modified loadPage() so that if the data-url lookup for a given page fails, that it look for the page via id (if it is an embedded page URL). This allows us to find dynamically injected pages that are un-enhanced and missing their data-url attributes.
2011-09-21 15:46:15 -07:00
Ghislain Seguin
d1c83cd085 Merge pull request #2495 from eddiemonge/issue_2494
Issue 2494: Removed accidental css cruft and git info reorder
2011-09-21 13:56:10 -07:00
Eddie Monge
269c592a37 Issue 2494: Removed accidental css cruft and git info reorder 2011-09-21 13:50:35 -07:00
toddparker
61eed992c6 Fixed Nokia test device notation - should be N950. 2011-09-21 15:47:34 -04:00
toddparker
4938d10acf Fixed BB7 device model, added Meego 1.2 to grade A 2011-09-21 15:21:25 -04:00
toddparker
a9eaf1bb44 Tweaked into for data-url info, thanks @kinblas 2011-09-21 15:20:11 -04:00
toddparker
877b323c7f Added info on the data-url param rules. 2011-09-21 15:04:07 -04:00
scottjehl
3e2683fe18 Merge remote branch 'origin/master' 2011-09-21 14:59:27 -04:00
scottjehl
38d7ad8848 binding these at mobileinit didn't help anything, and only hurt the ability to use them when jQM is dynamically appended. Idea credit to @martynsmith 2011-09-21 14:59:19 -04:00
Kin Blas
9b0bf5252d Removed deprecated "beforechangepage", "changepage", and "changepagefailed" event references in preparation for jQM 1.0 release.
Updated the unit tests to use "pagechange" event instead of "changepage".
2011-09-20 16:59:30 -07:00
Kin Blas
e7a33dbb45 Removed deprecated navigation related properties:
$.mobile.updateHash
	$.mobile.urlstack

in preparation for jQM 1.0.
2011-09-20 16:15:44 -07:00
Kin Blas
14bafc510d Removed support for the alpha signature of $.mobile.changePage() in preparation for jQM 1.0. Folks now how to use the signature that requires the toPage (url or element) as the first arg, and options object as the 2nd. 2011-09-20 15:40:52 -07:00
Kin Blas
dd458d1d4e Removing the deprecated $.fixedToolbars property in preparation for jQM 1.0. 2011-09-20 15:28:07 -07:00
Kin Blas
58573f90d9 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-20 14:47:09 -07:00
Kin Blas
c75a7ad654 Fix for issue 1666 - Deprecate $.mobile.pageLoading()
- Removed $.mobile.pageLoading().
- Updated tests/unit/init/ to call the new showPageLoadingMsg/hidePageLoadingMsg functions.
2011-09-20 14:45:26 -07:00
scottjehl
5fe78d5148 updated jQuery to 1.6.4 2011-09-20 17:42:44 -04:00
scottjehl
41d4640344 moved the support test for event capture, allowing vmouse to run standalone on jQuery Core. 2011-09-20 17:26:36 -04:00
scottjehl
3fdf9d1443 updated version to 1.0rc1pre - long overdue! 2011-09-20 17:24:28 -04:00
Kin Blas
432b876e84 Fix for issue 2474 - [IPAD] change page flicking in landscape[IPAD] change page flicking in landscape
- On iOS, giving focus to the ui-page element causes flashing during page animations/transitions. This is due to the CSS outline property which is applied when the page is given focus. Turning outlines off for all pages prevents the flashing.
2011-09-20 14:16:37 -07:00
Hans-Peter Buniat
2051c49cc8 fixed typo (+ -> -) to fix #2416 2011-09-20 06:50:16 +02:00
Todd Parker
44f3218ab9 Merge pull request #2468 from MauriceG/patch-1
Fix for issue #2192 labels for form inputs have different vertical alignment. Thanks MauriceG!
2011-09-19 19:27:28 -07:00
Todd Parker
b173815f11 Merge pull request #2469 from MauriceG/patch-2
Fix for issue #2192 labels for form inputs have different vertical alignment. Thanks MauriceG!
2011-09-19 18:13:36 -07:00
Todd Parker
8a6c107718 Remove the top "glow" border because it's breaking out in split button lists. 2011-09-19 22:05:33 -03:00
Kin Blas
0fbea8f8e6 Fix for issue 2451:
Dialog not working if $.mobile.ajaxEnabled = false
https://github.com/jquery/jquery-mobile/issues/2451

related/dup bug 2202:

Dialog loads in new page with ajaxEnabled = false
https://github.com/jquery/jquery-mobile/issues/2202

- Modified the default click handler to check if the href is for an embedded page before bailing when ajaxEnabled = false. This allows us to navigate to internal/embedded pages/dialogs on the click versus waiting for the accidental hashchange that was the result of the browser's default handling of hash fragments.
2011-09-19 11:32:13 -07:00
Hans-Peter Buniat
df68b0188c second attempt to fix #2416 2011-09-19 07:12:36 +02:00
Todd Parker
2d3cbbe804 Replaced theme.css with the new tokenized version that will support a future ThemeRoller tool. Each editable color or values in the theme has a comment "token" that will be replaced with the user-generated values. 2011-09-18 22:28:01 -04:00
John Bender
5155e37546 Merge pull request #2472 from dannyc/master
Two typos in docs.  Missing closing brackets for radio and checkbox in options
2011-09-18 14:38:06 -07:00
Danny
8f0dc05f25 Typo: Fixed missing closing bracket for checkbox selector in options section of docs 2011-09-18 19:36:14 +03:00
Danny
76ef937e7b Typo: Fixed missing closing bracket for radio selector in options section of docs 2011-09-18 19:33:27 +03:00
gseguin
e0b948e216 Fix for issue #2463
ui-collapsible-contain was renamed to ui-collapsible
2011-09-18 09:12:28 -07:00
gseguin
f8d30ef04e Revert "Fix for issue #2463"
This reverts commit a5bfcacbae.
2011-09-18 09:11:29 -07:00
Hans-Peter Buniat
afe6630425 try/catch the regexp, fixes 2416 2011-09-18 17:53:03 +02:00
gseguin
a5bfcacbae Fix for issue #2463
Override margin for collapsible children of .content-primary and .content-secondary
Set min-height for content-secondary
2011-09-18 08:46:49 -07:00
MauriceG
fd4640081f Fix for issue #2192 labels for form inputs have different vertical alignments 2011-09-18 16:31:55 +03:00
MauriceG
10bdd3d845 Fix for issue #2192 labels for form inputs have different vertical alignments 2011-09-18 16:24:08 +03:00
John Bender
265ffb68e4 update docs to reflect pagecreate -> pageinit migration with examples of when to use either 2011-09-16 10:24:14 -07:00
John Bender
c61354447c alter pageinit test to validate that child widgets are in fact enhanced when the event is fired. covers the previous tests case 2011-09-16 10:24:14 -07:00
gseguin
095d731398 Updated tests following removal of .jqmHasData() ( commit 15667eee1b ) 2011-09-16 09:19:12 -07:00
gseguin
dbab6c06f7 Fix for issue #2455
Updated doc
2011-09-16 09:18:00 -07:00
gseguin
15667eee1b Fix for issue #2455
Removed .jqmHasData()
2011-09-16 09:17:01 -07:00
gseguin
101657d7b7 Tests following .jqmData() behavior change ( commit a0ca22ae3d ) 2011-09-16 09:14:46 -07:00
gseguin
6dbdbfe4bc Revert "Changed behavior of .jqmData() only when called with no argument. It now returns undefined as per discussion on #jquerymobile-dev"
This reverts commit 43c5037bd8.
2011-09-16 09:12:43 -07:00
gseguin
a0ca22ae3d Changed behavior of .jqmData() only when called with no argument. It now returns undefined as per discussion on #jquerymobile-dev 2011-09-16 09:12:25 -07:00
gseguin
43c5037bd8 Changed behavior of .jqmData() only when called with no argument. It now returns undefined as per discussion on #jquerymobile-dev 2011-09-16 09:10:08 -07:00
Kin Blas
320c12126f Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-15 17:00:27 -07:00
Kin Blas
78234976e7 Fix for issue 2050 - URL handling and PlayBook Webworks app
- Modified the url parser regexp so that we can  find the double slash that precedes the authority. This is necessary so we can reconstruct resource urls used on some devices like Rim's Playbook that use urls like:

location:/dir1/dir2/file.html

- Modified makeAbsoluteUrl() so that it uses the new doubleSlash property in the object returned from parseUrl() instead of assuming that it is ok to use a double slash.
2011-09-15 16:56:54 -07:00
gseguin
ec8e92453e Removed buttonMarkup around +/- icon 2011-09-15 16:27:54 -07:00
gseguin
e4ff8fb539 Merge remote branch 'upstream/master' 2011-09-15 16:11:04 -07:00
gseguin
a908c5a6ef Fix for issue #1361
Mixin individual properties to options instead of calling .jqmData()
2011-09-15 16:10:10 -07:00
John Bender
f932c9b13d init test for jqm using page widget 2011-09-15 15:35:48 -07:00
John Bender
ae2e7f0dc4 add 'widgetinit' event for users to enhance widgets and markup post 'widgetcreate' 2011-09-15 15:15:14 -07:00
John Bender
150697c8d2 whitespace fix for nav core tests 2011-09-15 15:12:52 -07:00
John Bender
56c0b9de36 unmock which value for other tests 2011-09-15 11:10:15 -07:00
John Bender
15cb663e52 suggestion from @jblas to save a bit of execution 2011-09-15 10:45:27 -07:00
John Bender
5346a91595 added event test to make sure the which was being defined on triggered events 2011-09-15 10:36:12 -07:00
John Bender
9cc8daa91a test that middle click doesn't trigger a page change 2011-09-15 10:25:04 -07:00
John Bender
416b666ca8 prevent clicks on anything but the left mouse button, also adds the which value to the events when its undefined in the vmouse plugin 2011-09-15 10:16:40 -07:00
gseguin
7dc20cd000 Merge remote branch 'upstream/master' 2011-09-14 21:13:08 -07:00
gseguin
139ab1378b Added comments 2011-09-14 21:12:43 -07:00
gseguin
99e52eafdc Set font-weight to normal in collapsible content 2011-09-14 21:11:54 -07:00
Kin Blas
c541ceba69 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-14 18:20:34 -07:00
Kin Blas
cac203291e Switched the sample-reuse-page-external.html sample over to calling a PHP script that supplies JSON data when called via XHR, or HTML when called directly. 2011-09-14 18:19:46 -07:00
gseguin
a34ba919b7 Changed collapsible doc to match code behavior 2011-09-14 17:52:10 -07:00
gseguin
518894fc69 Merge branch 'issue-1899' 2011-09-14 16:22:16 -07:00
gseguin
688b2b45c0 Fixed collapsible unit test to match last commit e6eaf7cacd 2011-09-14 16:06:31 -07:00
gseguin
e6eaf7cacd Fix for #1899:
Re-styled collapsible and collapsible set so the content of the collapsible now is applied the ui-btn-up-%%theme%% class. This way the border will match the border of the header button. In the meantime in the ui-collapsible-content class we remove the background image and tweak the margin/padding to make everything look good.
Combined the expand/collapse handlers into a single one and made extensive use of .toggleClass()
2011-09-14 16:02:47 -07:00
John Bender
3ed30673ad test for issue 2444 2011-09-14 15:54:00 -07:00
John Bender
1a385db664 prevent known hash change handling from firing from popstate hashchange Fixes #2444 2011-09-14 15:37:31 -07:00
gseguin
8c8d66781f Added some unit tests for Collapsible 2011-09-14 11:06:24 -07:00
gseguin
87ca47f162 Fix for issue #1899
Refactored some css classes
Fixed bottom corners in set with only one collapsible
2011-09-14 11:05:53 -07:00
Kin Blas
56a22727ab Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-13 00:23:33 -07:00
Kin Blas
1a92be0240 Fix for issue 2406 - Navigation from one page back to multi-page template
- Make sure that our hashchange resolves non-path hashes against the documentBase. This prevents the resulting changePath() call from incorrectly resolving against the URL for the current active (external) page.

- Fixed a problem in the push-state code. A hashchange event is *NOT* fired when navigating back (window.history.back()) from an external page to an internal page. This makes sense when you think about it since hashchange is only ever fired when the hash of the current document url changes, not when the document url itself changes. The fix was to make sure that the pushstate hashchange callback always sets a state object, even on embedded page URLs. This allows the hashchange callback to be triggered from within onPopState().
2011-09-13 00:23:03 -07:00
John Bender
942b0c29ae test for open and close no-op 2011-09-12 16:59:08 -07:00
John Bender
f1fef48239 add open and close as noop for people who might be looping over their selects and to self document the methods for extension 2011-09-12 16:53:56 -07:00
John Bender
219b450c5a test that embedded listview pages with nested lists aren't removed by the page removal code 2011-09-12 14:47:55 -07:00
John Bender
c426aefd76 add data attribute tag for pages loaded via ajax Fixes #2432 2011-09-12 14:06:47 -07:00
John Bender
fbd113bad4 whitespace in listview and core nav 2011-09-12 13:58:24 -07:00
John Bender
824bd12e12 add tests for theme inheritance in select menus 2011-09-12 09:08:48 -07:00
John Bender
ee6027a196 prefer defined theme from prototype or data options Fixes #2423 2011-09-12 09:08:48 -07:00
jblas@adobe.com
6a4bd76a9c Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-09 18:26:21 -07:00
jblas@adobe.com
c348266166 Fixed the page last scroll test which has been failing for a few days now. 2011-09-09 18:25:43 -07:00
John Bender
97654c2d90 tests for newly refreshed items and button update with custom selects 2011-09-09 17:27:26 -07:00
John Bender
59fc26d25f fix refresh bug for new options of the same number as before 2011-09-09 17:27:26 -07:00
Ghislain Seguin
2c55c93464 Merge pull request #2419 from zachleat/master
fieldcontain comment was copy pasted on links, nojs plugins.
2011-09-09 14:16:01 -07:00
zachleat
92151822b8 Incorrect comment text on the headers of two plugins. 2011-09-09 16:07:31 -05:00
scottjehl
2dadb4dbc4 Merge remote branch 'origin/master' 2011-09-09 12:28:17 -04:00
scottjehl
2369e2fa32 improved qualifications so that iOS5 gets the old-style fixed headers and footers when touchOverflow is disabled (which is the default). 2011-09-09 12:27:59 -04:00
John Bender
fab4f366a4 test for issue 2410, to verify that the button value is updated on refresh with new options 2011-09-09 09:14:39 -07:00
John Bender
729757b465 create selectOptions method so the values stay current across dom changes Fixes #2410 2011-09-09 09:00:46 -07:00
John Resig
0b83cf8d60 Tweak some more stylesheet formatting. 2011-09-08 21:35:28 -04:00
John Resig
dc8f8e7103 Fix whitespace in headers for the build script. 2011-09-08 21:14:03 -04:00
Michael Platov
b9557705b3 Fix for issue 509 textarea autogrow 2011-08-24 14:28:12 +08:00
Kin Blas
7860a90e87 Merge branch 'master' of https://github.com/jquery/jquery-mobile into jqm-mainline 2010-12-15 10:25:53 -08:00
Kin Blas
036e3ebd90 Sync up the scrollview code with the jquery-mobile mainline. 2010-12-03 09:46:49 -08:00
Kin Blas
aadb325b72 Implemented scroll viewport paging.
Fixed paging enabled bug in scrollview.js.
Enabled x-paging in the scrollview-direction.html sample.
2010-12-01 17:40:07 -08:00
Kin Blas
fbaa3c1288 Make sure newX and newY are initialized to the current scroll offsets. This fixes a scroll propagation bug that was resetting the non-scrolled dimension to zero.
Replaced all occurences of "horizontal" and "vertical" with "x" and "y".

Modified samples to use data-scroll="x|y|true".

Implemented public scrollTo(0 function that gives an optional duration parameter for animated scrolling.
2010-11-30 15:20:10 -08:00
Kin Blas
81f67e1aaf Made setElementTransform() a generic function so it can be shared with the scrolllistview code.
Fixed a bug/typo with an instance of the _didDrag property.
2010-11-29 15:40:52 -08:00
Kin Blas
655e98647c Removed style properties for ui-scrollview-clip and ui-scrollview-view from the stylesheet. We now set them progrmatically since they are required.
Added a multi-direction, horizontal and vertical example to the sample page.
2010-11-29 10:55:54 -08:00
Kin Blas
84f5325ad2 Fixed a bug that was causing a vertical scrollview to jump to (0,0) when the directionLock calculated was horizontal. 2010-11-24 11:54:17 -08:00
Kin Blas
1c198d1193 Renamed _direction to _directionLock. 2010-11-24 10:04:50 -08:00
Kin Blas
e4a17298bf Some fine tuning for when we actually propagate scrolling. We now limit propagation to vertical or horizontal directions. 2010-11-24 09:32:16 -08:00
Kin Blas
910d0ded17 - Refactored some code.
- Got scroll propagation working for the case where we hit the extremes of a horizontal or vertical scrollview when dragging.
2010-11-23 13:02:12 -08:00
Kin Blas
cc34525663 Fixed direction locking and propagation. 2010-11-23 09:26:43 -08:00
Kin Blas
9bee72ca1c Get nested scrolling to work. Still need to get scroll direction locking functioning. 2010-11-22 17:22:51 -08:00
Kin Blas
cdf5311cd2 Rough support for scroll propagation. Still some bugs to fix. 2010-11-22 17:00:58 -08:00
432 changed files with 50754 additions and 10688 deletions

4
.gitignore vendored
View file

@ -7,7 +7,7 @@ cache/
combined/
combine/
compiled/
gitstatus.log
refreshCDN
tmp/
*.swp
.gitignore
tests/speed/stats/stats.db

278
GPL-LICENSE.txt Normal file
View file

@ -0,0 +1,278 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

9
LICENSE-INFO.txt Normal file
View file

@ -0,0 +1,9 @@
/*
* jQuery Mobile Framework v@VERSION
* http://jquerymobile.com
*
* Copyright 2011 (c) jQuery Project
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
*/

20
MIT-LICENSE.txt Normal file
View file

@ -0,0 +1,20 @@
Copyright (c) 2011 John Resig, http://jquery.com/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

334
Makefile
View file

@ -1,207 +1,189 @@
# The system generated date in YYYYMMDD format
DATE = $(shell date "+%Y%m%d")
# The version according to the source file. If this is the nightly build, use a different version
VER = $(shell cat version.txt)
# Helper Variables
# The command to replace the @VERSION in the files with the actual version
SED_VER = sed "s/@VERSION/$(shell git log -1 --format=format:" Git Build\n * Git Info SHA1: %H Date: %cd")/"
deploy: SED_VER = sed "s/@VERSION/${VER}/"
# The version of jQuery core used
JQUERY = $(shell grep Library js/jquery.js | sed s'/ \* jQuery JavaScript Library v//')
# The directory to create the zipped files in and also serves as the filenames
DIR = jquery.mobile-${VER}
nightly: DIR = jquery.mobile
VER = sed "s/v@VERSION/$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd")/"
VER_MIN = "/*! jQuery Mobile v$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd") jquerymobile.com | jquery.org/license */"
VER_OFFICIAL = $(shell cat version.txt)
SED_VER_API = sed 's/__version__/"${VER_OFFICIAL}"/g'
deploy: VER = sed "s/v@VERSION/${VER_OFFICIAL}/"
deploy: VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} jquerymobile.com | jquery.org/license */"
# The output folder for the finished files
OUTPUT = compiled
# Command to remove the latest directory from the CDN before uploading, only if using latest target
RMLATEST = echo ""
# The name of the files
NAME = jquery.mobile
STRUCTURE = jquery.mobile.structure
deploy: NAME = jquery.mobile-${VER_OFFICIAL}
deploy: STRUCTURE = jquery.mobile.structure-${VER_OFFICIAL}
# The output folder for the nightly files.
NIGHTLY_OUTPUT = nightlies/${DATE}
ifeq (${NIGHTLY_OUTPUT}, latest)
RMLATEST = ssh jqadmin@code.origin.jquery.com 'rm -rf /var/www/html/code.jquery.com/mobile/latest'
endif
NIGHTLY_WEBPATH = http://code.jquery.com/mobile/${NIGHTLY_OUTPUT}
# The CSS theme being used
THEME = default
# The filenames
JS = ${DIR}.js
MIN = ${DIR}.min.js
CSS = ${DIR}.css
CSSMIN = ${DIR}.min.css
RUN_JS = @@java -XX:ReservedCodeCacheSize=64m -classpath build/js.jar:build/google-compiler-20111003.jar org.mozilla.javascript.tools.shell.Main
# The files to include when compiling the JS files
JSFILES = js/jquery.ui.widget.js \
js/jquery.mobile.widget.js \
js/jquery.mobile.media.js \
js/jquery.mobile.support.js \
js/jquery.mobile.vmouse.js \
js/jquery.mobile.event.js \
js/jquery.mobile.hashchange.js \
js/jquery.mobile.page.js \
js/jquery.mobile.core.js \
js/jquery.mobile.navigation.js \
js/jquery.mobile.navigation.pushstate.js \
js/jquery.mobile.transition.js \
js/jquery.mobile.degradeInputs.js \
js/jquery.mobile.dialog.js \
js/jquery.mobile.page.sections.js \
js/jquery.mobile.collapsible.js \
js/jquery.mobile.fieldContain.js \
js/jquery.mobile.grid.js \
js/jquery.mobile.navbar.js \
js/jquery.mobile.listview.js \
js/jquery.mobile.listview.filter.js \
js/jquery.mobile.nojs.js \
js/jquery.mobile.forms.checkboxradio.js \
js/jquery.mobile.forms.button.js \
js/jquery.mobile.forms.slider.js \
js/jquery.mobile.forms.textinput.js \
js/jquery.mobile.forms.select.custom.js \
js/jquery.mobile.forms.select.js \
js/jquery.mobile.buttonMarkup.js \
js/jquery.mobile.controlGroup.js \
js/jquery.mobile.links.js \
js/jquery.mobile.fixHeaderFooter.js \
js/jquery.mobile.fixHeaderFooter.native.js \
js/jquery.mobile.media.classes.js \
js/jquery.mobile.init.js
# The files to include when compiling the CSS files
CSSFILES = themes/default/jquery.mobile.theme.css \
themes/default/jquery.mobile.core.css \
themes/default/jquery.mobile.transitions.css \
themes/default/jquery.mobile.grids.css \
themes/default/jquery.mobile.headerfooter.css \
themes/default/jquery.mobile.navbar.css \
themes/default/jquery.mobile.button.css \
themes/default/jquery.mobile.collapsible.css \
themes/default/jquery.mobile.controlgroup.css \
themes/default/jquery.mobile.dialog.css \
themes/default/jquery.mobile.forms.checkboxradio.css \
themes/default/jquery.mobile.forms.fieldcontain.css \
themes/default/jquery.mobile.forms.select.css \
themes/default/jquery.mobile.forms.textinput.css \
themes/default/jquery.mobile.listview.css \
themes/default/jquery.mobile.forms.slider.css
# By default, this is what get runs when make is called without any arguments.
# Min and un-min CSS and JS files are the only things built
all: init js min css cssmin notify
# Build Targets
# Build the normal CSS file.
# When no build target is specified, all gets ran
all: init css js zip notify
# Build and minify the CSS files
css: init
# Build the CSS file
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${CSS}
@@cat ${CSSFILES} >> ${OUTPUT}/${CSS}
# Build the CSS file with the theme included
${RUN_JS} \
external/r.js/dist/r.js \
-o cssIn=css/themes/default/jquery.mobile.css \
out=${OUTPUT}/${NAME}.compiled.css
@@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.css
@@cat ${OUTPUT}/${NAME}.compiled.css >> ${OUTPUT}/${NAME}.css
@@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.css
@@java -XX:ReservedCodeCacheSize=64m \
-jar build/yuicompressor-2.4.6.jar \
--type css ${OUTPUT}/${NAME}.compiled.css >> ${OUTPUT}/${NAME}.min.css
@@rm ${OUTPUT}/${NAME}.compiled.css
# Build the CSS Structure-only file
${RUN_JS} \
external/r.js/dist/r.js \
-o cssIn=css/structure/jquery.mobile.structure.css \
out=${OUTPUT}/${STRUCTURE}.compiled.css
@@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${STRUCTURE}.css
@@cat ${OUTPUT}/${STRUCTURE}.compiled.css >> ${OUTPUT}/${STRUCTURE}.css
# ..... and then minify it
@@echo ${VER_MIN} > ${OUTPUT}/${STRUCTURE}.min.css
@@java -XX:ReservedCodeCacheSize=64m \
-jar build/yuicompressor-2.4.6.jar \
--type css ${OUTPUT}/${STRUCTURE}.compiled.css >> ${OUTPUT}/${STRUCTURE}.min.css
@@rm ${OUTPUT}/${STRUCTURE}.compiled.css
# ..... and then copy in the images
@@cp -R css/themes/${THEME}/images ${OUTPUT}/
# Css portion is complete.
# -------------------------------------------------
# Build the minified CSS file
cssmin: init css
# Build the minified CSS file
@@java -jar build/yuicompressor-2.4.4.jar --type css ${OUTPUT}/${CSS} >> ${OUTPUT}/${CSSMIN}
# Build the normal JS file
js: init
# Build the JavaScript file
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${JS}
@@cat ${JSFILES} >> ${OUTPUT}/${JS}
docs: init
# Create the Demos/Docs/Tests/Tools
# ... Build the docs bundle
${RUN_JS} \
external/r.js/dist/r.js \
-o build/docs.build.js \
dir=../tmp/${NAME}
# ... Prepend versioned license
@@cat LICENSE-INFO.txt | ${VER} > tmp/${NAME}/LICENSE-INFO.txt
@@cat tmp/${NAME}/LICENSE-INFO.txt | cat - tmp/${NAME}/js/jquery.mobile.docs.js > tmp/${NAME}/js/jquery.mobile.docs.js.tmp
@@cat tmp/${NAME}/js/jquery.mobile.docs.js.tmp | ${SED_VER_API} > tmp/${NAME}/js/jquery.mobile.docs.js
@@cat tmp/${NAME}/LICENSE-INFO.txt | cat - tmp/${NAME}/css/themes/default/${NAME}.css > tmp/${NAME}/css/themes/default/${NAME}.css.tmp
@@mv tmp/${NAME}/css/themes/default/${NAME}.css.tmp tmp/${NAME}/css/themes/default/${NAME}.css
# ... Move and zip up the the whole folder
@@cd tmp; zip -rq ../${OUTPUT}/${NAME}.docs.zip ${NAME}
@@mv tmp/${NAME} ${OUTPUT}/demos
# Finish by removing the temporary files
@@rm -rf tmp
# -------------------------------------------------
# Create the output directory. This is in a separate step so its not dependant on other targets
init:
# -------------------------------------------------
# Building jQuery Mobile in the "${OUTPUT}" folder
@@rm -rf ${OUTPUT}
@@mkdir ${OUTPUT}
# Build the minified JS file
min: init js
# Build the minified JavaScript file
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${MIN}
@@java -jar build/google-compiler-20110405.jar --js ${OUTPUT}/${JS} --warning_level QUIET --js_output_file ${MIN}.tmp
@@cat ${MIN}.tmp >> ${OUTPUT}/${MIN}
@@rm -f ${MIN}.tmp
# Let the user know the files were built and where they are
notify:
@@echo "The files have been built and are in " $$(pwd)/${OUTPUT}
# Pull the latest commits. This is used for the nightly build but can be used to save some keystrokes
pull:
@@git pull --quiet
# Zip the 4 files and the theme images into one convenient package
zip: init js min css cssmin
@@mkdir -p ${DIR}
@@cp ${OUTPUT}/${DIR}*.js ${DIR}/
@@cp ${OUTPUT}/${DIR}*.css ${DIR}/
@@cp -R themes/default/images ${DIR}/
@@zip -rq ${OUTPUT}/${DIR}.zip ${DIR}
@@rm -fr ${DIR}
@@rm -rf tmp
@@mkdir -p ${OUTPUT}
# -------------------------------------------------
# Used by the jQuery team to make the nightly builds
nightly: pull zip
# Create the folder to hold the files for the demos
@@mkdir -p ${VER}
# Build and minify the JS files
js: init
# Build the JavaScript file
${RUN_JS} \
external/r.js/dist/r.js \
-o baseUrl="js" \
include=jquery.mobile \
exclude=jquery,../external/requirejs/order,../external/requirejs/text,../external/requirejs/text!../version.txt \
out=${OUTPUT}/${NAME}.compiled.js \
pragmasOnSave.jqmBuildExclude=true \
wrap.startFile=build/wrap.start \
wrap.endFile=build/wrap.end \
findNestedDependencies=true \
skipModuleInsertion=true \
optimize=none
@@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.js
@@cat ${OUTPUT}/${NAME}.compiled.js | ${SED_VER_API} >> ${OUTPUT}/${NAME}.js
@@rm ${OUTPUT}/${NAME}.compiled.js
# ..... and then minify it
@@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.js
@@java -XX:ReservedCodeCacheSize=64m \
-jar build/google-compiler-20111003.jar \
--js ${OUTPUT}/${NAME}.js \
--js_output_file ${OUTPUT}/${NAME}.compiled.js
@@cat ${OUTPUT}/${NAME}.compiled.js >> ${OUTPUT}/${NAME}.min.js
@@rm ${OUTPUT}/${NAME}.compiled.js
# -------------------------------------------------
# Copy in the base stuff for the demos
@@cp -r index.html themes experiments docs ${VER}/
# First change all the paths from super deep to the same level for JS files
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="../../../js|src="js|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="../../js|src="js|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="../js|src="js|g' {} \;
# Output a message saying the process is complete
notify: init
@@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
# -------------------------------------------------
# Then change all the paths from super deep to the same level for CSS files
@@find ${VER} -type f -name '*.html' -exec sed -i 's|media="only all"||g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i 's|rel="stylesheet" href="../../../|rel="stylesheet" href="|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i 's|rel="stylesheet" href="../../|rel="stylesheet" href="|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i 's|rel="stylesheet" href="../|rel="stylesheet" href="|g' {} \;
# Change the empty paths to the location of this nightly file
@@find ${VER} -type f -name '*.html' -exec sed -i 's|href="themes/default/"|href="${NIGHTLY_WEBPATH}/${DIR}.min.css"|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="js/jquery.js"|src="http://code.jquery.com/jquery-${JQUERY}.min.js"|' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i 's|src="js/"|src="${NIGHTLY_WEBPATH}/${DIR}.min.js"|g' {} \;
# Zip up the jQm files without docs
zip: init css js
# Packaging up the files into a zip archive
@@mkdir tmp
@@cp -R ${OUTPUT} tmp/${NAME}
# ... And remove the Zipped docs so they aren't included twice (for deploy scripts)
@@rm -rf tmp/${NAME}/${NAME}.docs.zip
@@cd tmp; zip -rq ../${OUTPUT}/${NAME}.zip ${NAME}
@@rm -rf tmp
# -------------------------------------------------
# Move the demos into the output folder
@@mv ${VER} ${OUTPUT}/demos
# -------------------------------------------------
# -------------------------------------------------
# -------------------------------------------------
#
# For jQuery Team Use Only
#
# -------------------------------------------------
# Copy the images as well
@@cp -R themes/default/images ${OUTPUT}
# Push the latest git version to the CDN. This is done on a post commit hook
latest: init css docs js zip
# Time to put these on the CDN
@@scp -qr ${OUTPUT}/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/latest/
# -------------------------------------------------
@@${RMLATEST}
@@scp -r ${OUTPUT} jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/${NIGHTLY_OUTPUT}
# Build the nightly backups. This is done on a server cronjob
nightlies: init css js docs zip
# Time to put these on the CDN
@@mkdir -p tmp/nightlies
@@mv ${OUTPUT} tmp/nightlies/$$(date "+%Y%m%d")
@@scp -qr tmp/nightlies/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/
# Do some cleanup to wrap it up
@@rm -rf tmp
# -------------------------------------------------
# Deploy a finished release. This is manually done.
deploy: init css js docs zip
# Deploying all the files to the CDN
@@mkdir tmp
@@cp -R ${OUTPUT} tmp/${VER_OFFICIAL}
@@scp -qr tmp/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
@@rm -rf tmp/${VER_OFFICIAL}
@@mv ${OUTPUT}/demos tmp/${VER_OFFICIAL}
# Create the Demos/Docs/Tests/Tools for jQueryMobile.com
# ... By first replacing the paths
# TODO update jQuery Version replacement on deploy
@@find tmp/${VER_OFFICIAL} -type f \
\( -name '*.html' -o -name '*.php' \) \
-exec perl -pi -e \
's|src="(.*)${NAME}.min.js"|src="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.js"|g;s|href="(.*)${NAME}.min.css"|href="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.css"|g;s|src="(.*)jquery.js"|src="//code.jquery.com/jquery-1.7.1.min.js"|g' {} \;
# ... So they can be copied to jquerymobile.com
@@scp -qr tmp/* jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
# Do some cleanup to wrap it up
@@rm -rf tmp
@@rm -rf ${OUTPUT}
# -------------------------------------------------
# Used by the jQuery team to deploy a build to the CDN
deploy: zip
# Deploy to CDN
@@mv ${OUTPUT} ${VER}
@@scp -r ${VER} jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
@@mv ${VER} ${OUTPUT}
# Deploy Demos to the jQueryMobile.com site
@@mkdir -p ${VER}
@@cp -r index.html themes experiments docs ${VER}/
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="../../../js|src="js|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="../../js|src="js|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="../js|src="js|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|media="only all"||g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../../../|rel="stylesheet" href="|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../../|rel="stylesheet" href="|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../|rel="stylesheet" href="|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|href="themes/default/"|href="http://code.jquery.com/mobile/${VER}/${DIR}.min.css"|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="js/jquery.js"|src="http://code.jquery.com/jquery-${JQUERY}.min.js"|' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="js/"|src="http://code.jquery.com/mobile/${VER}/${DIR}.min.js"|g' {} \;
@@scp -r ${VER} jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
# Clean up the local files
@@rm -rf ${VER}
@@echo "All Done"

107
README.md
View file

@ -1,52 +1,107 @@
jQuery Mobile Framework
=====
http://jquerymobile.com
Demos and documentation
===================================
http://jquerymobile.com/test/
=======================
[Official Site: http://jquerymobile.com](http://jquerymobile.com)
[Demos and Documentation](http://jquerymobile.com/test/)
How to build your own jQuery Mobile CSS and JS files
===================================
====================================================
Clone this repo and build the js and css files (you'll need Git and Make installed):
git clone git://github.com/jquery/jquery-mobile.git
cd jquery-mobile
make
A full, complete version and a minified, complete version of the jQuery Mobile JavaScript and CSS files will be created in a folder named "compiled".
A full version and a minified version of the jQuery Mobile JavaScript and CSS files will be created
in a folder named "compiled". There is also now a Structure only css file so you can add your own theme on top of it.
How to build a self-contained version of the Docs/Demos
=======================================================
Once you have your own cloned repo on your computer:
make docs
The docs will be built and available in the compiled/demos folder. You can move this folder to your web server or
other location. It has no dependencies on anything other than a basic HTML web server.
Submitting bugs
===================================
===============
If you think you've found a bug, please report it by following these instructions:
If you think you've found a bug, please visit the Issue tracker (https://github.com/jquery/jquery-mobile/issues) and create an issue explaining the problem and expected result. Be sure to include any relevant information for reproducing the issue, such as the browser/device (with version #), and the version of the jQuery Mobile code you're running. It also helps a lot to make sure that the bug still exists on jquerymobile.com/test/, as it's possible we may have fixed it already! It is also best to include code to reproduce the bug.
1. Visit the [Issue tracker: https://github.com/jquery/jquery-mobile/issues](https://github.com/jquery/jquery-mobile/issues)
2. Create an issue explaining the problem and expected result
- Be sure to include any relevant information for reproducing the issue
- Include information such as:
* Browser/device (with version #)
* The version of the jQuery Mobile code you're running
* If you are running from a git version, include the date and/or hash number
- Make sure that the bug still exists at http://jquerymobile.com/test/ as it may be fixed already
- You can use the CDN hosted JS and CSS files to test in your own code by using:
* [JS](http://code.jquery.com/mobile/latest/jquery.mobile.min.js)
* [CSS](http://code.jquery.com/mobile/latest/jquery.mobile.min.css)
- Include a link to some code of the bug in action. You can use either of these services to host your code
* [jsbin](http://jsbin.com)
* [jsfiddle](http://jsfiddle.net)
3. Submit the issue.
Recommended: [JS Bin issue template with instructions](http://jsbin.com/obowiw/edit)
Submitting patches
===================================
To contribute code and bug fixes to jQuery Mobile: fork this project on Github, make changes to the code in your fork, and then send a
"pull request" to notify the team of updates that are ready to be reviewed for inclusion.
Detailed instructions can be found at https://gist.github.com/726275
==================
To contribute code and bug fixes to jQuery Mobile: fork this project on Github, make changes to the code in your fork,
and then send a "pull request" to notify the team of updates that are ready to be reviewed for inclusion.
Detailed instructions can be found at [jQuery Mobile Patching](https://gist.github.com/1294035)
Running the jQuery Mobile demos & docs locally
===================================
==============================================
To preview locally, you'll need to clone a local copy of this repository and point your Apache & PHP webserver at its
root directory (a webserver is required, as PHP and .htaccess are used for combining development files).
To preview locally, you'll need to clone a local copy of this repository and point your Apache & PHP webserver at its root directory (a webserver is required, as PHP and .htaccess are used for combining development files).
If you don't currently have a webserver running locally, there are a few options.
If you don't currently have a webserver running locally, there are a few options.
If you're on a Mac, you can try dropping jQuery Mobile into your sites folder and turning on Web Sharing via System
Prefs. From there, you'll find a URL where you can browse folders in your sites directory from a browser.
If you have python installed (most Linux distributions) and Mac OSX, you use the built-in simple web server. Open a terminal/shell and change to the jQuery Mobile folder then type 'python -m SimpleHTTPServer', and voila you can then browse via http://localhost:8000.
Another quick way to get up and running is to download and install MAMP for Mac OSX. Once installed, just open MAMP,
click preferences, go to the Apache tab, and select your local jQuery Mobile folder as the root. Then you can open a
browser to http://localhost:8888 to preview the code.
If you're on a Mac, you can try dropping jQuery Mobile into your sites folder and turning on Web Sharing via System Prefs. From there, you'll find a URL where you can browse folders in your sites directory from a browser.
Another alternative is XAMPP (Mac, Windows). You need to actually modify Apache's httpd.conf to point to your checkout:
[Instructions](http://www.apachefriends.org/en/xampp.html)
Another quick way to get up and running is to download and install MAMP for Mac OSX. Once installed, just open MAMP, click preferences, go to the Apache tab, and select your local jQuery Mobile folder as the root. Then you can open a browser to http://localhost:8888 to preview the code.
You need the following Apache modules loaded:
Another alternative is XAMPP, which is also available for Windows, though you need to actually modify Apache's httpd.conf to point to your checkout: http://www.apachefriends.org/en/xampp.html
You need the Rewrite (mod_rewrite.so), Expire (mod_expires.so) and Header (mod_headers.so) modules loaded.
* Rewrite (mod\_rewrite.so)
* Expire (mod\_expires.so)
* Header (mod\_headers.so)
Alternatively, with the addition of async loading, you can use the python simple http server from the project root:
$ python -m SimpleHTTPServer 8000
And in your browser visit [localhost:8000](http://localhost:8000).
AMD Support in Development
==========================
Please bear in mind that async loading is not supported for production and is primarily used for the project's build process. As a result developers should expect an initial flash of unstyled content, which will not occur when the library is compiled.
If you find dependency bugs when using the async loading support for development please log them in the github issue tracker.
Building With A Custom Theme
============================
To use a custom theme in your own build, you'll need Make installed. You can find the themes in the CSS/Themes folder.
To create a new theme:
1. Copy the `Default` folder from CSS/Themes to a new folder in the same location. The name of the folder will be the
theme's name. For testing locally, make sure the index.php file is copied as well.
2. Edit the `jquery.mobile.theme.css` file so it contains your custom fonts and colors.
3. Once you are done editing your files and saving them, open a terminal.
4. Navigate to the jQuery-Mobile folder's root.
5. Run the following command to build jQuery-Mobile (THEME is the name of the folder for your theme from step 1.):
make THEME=YourThemeName
6. The compiled files will be located in the "compiled" folder in the root of jQuery-Mobile.

View file

@ -1,74 +0,0 @@
<?xml version="1.0"?>
<project name="jquery-mobile" basedir="." default="merge">
<property name="cssdir" location="themes/default"/>
<property name="jsdir" location="js"/>
<property name="css-sources" value="jquery.mobile.theme.css,
jquery.mobile.core.css,
jquery.mobile.transitions.css,
jquery.mobile.grids.css,
jquery.mobile.headerfooter.css,
jquery.mobile.navbar.css,
jquery.mobile.button.css,
jquery.mobile.collapsible.css,
jquery.mobile.controlgroup.css,
jquery.mobile.dialog.css,
jquery.mobile.forms.checkboxradio.css,
jquery.mobile.forms.fieldcontain.css,
jquery.mobile.forms.select.css,
jquery.mobile.forms.textinput.css,
jquery.mobile.listview.css,
jquery.mobile.forms.slider.css"/>
<property name="js-sources" value="jquery.ui.widget.js,
jquery.mobile.widget.js,
jquery.mobile.media.js,
jquery.mobile.support.js,
jquery.mobile.vmouse.js,
jquery.mobile.event.js,
jquery.mobile.hashchange.js,
jquery.mobile.page.js,
jquery.mobile.core.js,
jquery.mobile.navigation.js,
jquery.mobile.navigation.pushstate.js,
jquery.mobile.transition.js,
jquery.mobile.degradeInputs.js,
jquery.mobile.dialog.js,
jquery.mobile.page.sections.js,
jquery.mobile.collapsible.js,
jquery.mobile.fieldContain.js,
jquery.mobile.grid.js,
jquery.mobile.navbar.js,
jquery.mobile.listview.js,
jquery.mobile.listview.filter.js,
jquery.mobile.nojs.js,
jquery.mobile.forms.checkboxradio.js,
jquery.mobile.forms.button.js,
jquery.mobile.forms.slider.js,
jquery.mobile.forms.textinput.js,
jquery.mobile.forms.select.custom.js,
jquery.mobile.forms.select.js,
jquery.mobile.buttonMarkup.js,
jquery.mobile.controlGroup.js,
jquery.mobile.links.js,
jquery.mobile.fixHeaderFooter.js,
jquery.mobile.fixHeaderFooter.native.js,
jquery.mobile.media.classes.js,
jquery.mobile.init.js"/>
<target name="merge">
<antcall target="merge_css" />
<antcall target="merge_js" />
</target>
<target name="merge_css">
<concat destfile="combine/jquery.mobile.css">
<filelist dir="${cssdir}" files="${css-sources}"/>
</concat>
</target>
<target name="merge_js">
<concat destfile="combine/jquery.mobile.js">
<filelist dir="${jsdir}" files="${js-sources}"/>
</concat>
</target>
</project>

39
build/docs.build.js Normal file
View file

@ -0,0 +1,39 @@
({
appDir: "..",
baseUrl: "js",
dir: "../compiled/demos",
optimize: "none",
//Finds require() dependencies inside a require() or define call.
findNestedDependencies: true,
//If skipModuleInsertion is false, then files that do not use define()
//to define modules will get a define() placeholder inserted for them.
//Also, require.pause/resume calls will be inserted.
//Set it to true to avoid this. This is useful if you are building code that
//does not use require() in the built project or in the JS files, but you
//still want to use the optimization tool from RequireJS to concatenate modules
//together.
skipModuleInsertion: true,
modules: [
{
name: "jquery.mobile.docs",
exclude: [ "jquery", "../external/requirejs/order" , "../external/requirejs/text", "../external/requirejs/text!../version.txt" ]
}
],
pragmasOnSave: {
jqmBuildExclude: true
},
//File paths are relative to the build file, or if running a commmand
//line build, the current directory.
wrap: {
startFile: "wrap.start",
endFile: "wrap.end"
},
dirExclusionRegExp: /^\.|^build|^compiled/
})

Binary file not shown.

Binary file not shown.

BIN
build/js.jar Normal file

Binary file not shown.

2
build/wrap.end Normal file
View file

@ -0,0 +1,2 @@
}));

12
build/wrap.start Normal file
View file

@ -0,0 +1,12 @@
(function ( root, doc, factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "jquery" ], function ( $ ) {
factory( $, root, doc );
return $.mobile;
});
} else {
// Browser globals
factory( root.jQuery, root, doc );
}
}( this, document, function ( $, window, document, undefined ) {

View file

@ -1,17 +1,22 @@
<?php
if ( ! isset($type) || ! isset($elements) )
// Get the filetype and array of files
if ( ! isset($type) || ! isset($files) )
{
echo '$type and $elements must be specified!';
echo '$type and $files must be specified!';
exit;
}
$contents = '';
foreach ( $elements as $file ) {
// Loop through the files adding them to a string
foreach ( $files as $file ) {
$contents .= file_get_contents($file). "\n\n";
}
// Set the content type, filesize and an expiration so its not cached
header('Content-Type: ' . $type);
header('Content-Length: ' . strlen($contents));
echo $contents;
header('Expires: Fri, 01 Jan 2010 05:00:00 GMT');
// Deliver the file
echo $contents;

View file

@ -1,17 +1,13 @@
/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
*/
.ui-btn { display: block; text-align: center; cursor:pointer; position: relative; margin: .5em 5px; padding: 0; }
.ui-btn:focus, .ui-btn:active { outline: none; }
.ui-header .ui-btn, .ui-footer .ui-btn, .ui-bar .ui-btn { display: inline-block; font-size: 13px; margin: 0; }
.ui-header .ui-btn, .ui-footer .ui-btn, .ui-bar .ui-btn { display: inline-block; font-size: 13px; margin: 0; max-width: 30%; }
.ui-btn-inline { display: inline-block; }
.ui-btn-inner { padding: .6em 25px; display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; position: relative; zoom: 1; }
.ui-btn input, .ui-btn button { z-index: 2; }
.ui-header .ui-btn-inner, .ui-footer .ui-btn-inner, .ui-bar .ui-btn-inner { padding: .4em 8px .5em; }
.ui-btn-icon-notext { display: inline-block; width: 20px; height: 20px; padding: 2px 1px 2px 3px; text-indent: -9999px; }
.ui-btn-icon-notext .ui-btn-inner { padding: 0; }
.ui-btn-icon-notext .ui-btn-text { position: absolute; left: -999px; }
.ui-btn-icon-notext { width: 24px; height: 24px; }
.ui-btn-icon-notext .ui-btn-inner { padding: 2px 1px 2px 3px; }
.ui-btn-text { position: relative; z-index: 1; }
.ui-btn-icon-notext .ui-btn-text { position: absolute; left: -9999px; }
.ui-btn-icon-left .ui-btn-inner { padding-left: 33px; }
.ui-header .ui-btn-icon-left .ui-btn-inner,
.ui-footer .ui-btn-icon-left .ui-btn-inner,
@ -30,11 +26,13 @@
.ui-bar .ui-btn-icon-bottom .ui-btn-inner { padding-bottom: 27px; }
/*btn icon positioning*/
.ui-btn-icon-notext .ui-icon { display: block; }
.ui-btn-icon-notext .ui-icon { display: block; z-index: 0;}
.ui-btn-icon-left .ui-icon, .ui-btn-icon-right .ui-icon { position: absolute; top: 50%; margin-top: -9px; }
.ui-btn-icon-top .ui-icon, .ui-btn-icon-bottom .ui-icon { position: absolute; left: 50%; margin-left: -9px; }
.ui-btn-icon-left .ui-icon { left: 10px; }
.ui-btn-icon-right .ui-icon {right: 10px; }
.ui-btn-icon-right .ui-icon { right: 10px; }
.ui-btn-icon-top .ui-icon { top: 10px; }
.ui-btn-icon-bottom .ui-icon { bottom: 10px; }
.ui-header .ui-btn-icon-left .ui-icon,
.ui-footer .ui-btn-icon-left .ui-icon,
.ui-bar .ui-btn-icon-left .ui-icon { left: 4px; }
@ -47,7 +45,6 @@
.ui-header .ui-btn-icon-bottom .ui-icon,
.ui-footer .ui-btn-icon-bottom .ui-icon,
.ui-bar .ui-btn-icon-bottom .ui-icon { bottom: 4px; }
.ui-btn-icon-top .ui-icon { top: 5px; }
.ui-btn-icon-bottom .ui-icon { bottom: 5px; }
/*hiding native button,inputs */
.ui-btn-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-appearance: button; opacity: 0; cursor: pointer; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); background: transparent; }
.ui-btn-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-appearance: button; opacity: .1; cursor: pointer; background: #fff; background: rgba(255,255,255,0); filter: Alpha(Opacity=.0001); font-size: 1px; border: none; text-indent: -9999px; }

View file

@ -1,18 +1,20 @@
/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
*/
.ui-collapsible-contain { margin: .5em 0; }
.ui-collapsible { margin: .5em 0; }
.ui-collapsible-heading { font-size: 16px; display: block; margin: 0 -8px; padding: 0; border-width: 0 0 1px 0; position: relative; }
.ui-collapsible-heading a { text-align: left; margin: 0; }
.ui-collapsible-heading a .ui-btn-inner { padding-left: 40px; }
.ui-collapsible-heading a span.ui-btn { position: absolute; left: 6px; top: 50%; margin: -12px 0 0 0; width: 20px; height: 20px; padding: 1px 0px 1px 2px; text-indent: -9999px; }
.ui-collapsible-heading a span.ui-btn .ui-btn-inner { padding: 10px 0; }
.ui-collapsible-heading a span.ui-btn .ui-icon { left: 0; margin-top: -10px; }
.ui-collapsible-heading-status { position:absolute; left:-9999px; }
.ui-collapsible-content { display: block; padding: 10px 0 10px 8px; }
.ui-collapsible-heading-status { position: absolute; top: -9999px; left:0px; }
.ui-collapsible-content {
display: block;
margin: 0 -8px;
padding: 10px 16px;
border-top: none; /* Overrides ui-btn-up-* */
background-image: none; /* Overrides ui-btn-up-* */
font-weight: normal; /* Overrides ui-btn-up-* */
}
.ui-collapsible-content-collapsed { display: none; }
.ui-collapsible-set { margin: .5em 0; }
.ui-collapsible-set .ui-collapsible-contain { margin: -1px 0 0; }
.ui-collapsible-set .ui-collapsible { margin: -1px 0 0; }

View file

@ -1,20 +1,16 @@
/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
*/
.ui-controlgroup, fieldset.ui-controlgroup { padding: 0; margin: .5em 0 1em; }
.ui-controlgroup, fieldset.ui-controlgroup { padding: 0; margin: 0em 0 .5em; }
.ui-bar .ui-controlgroup { margin: 0 .3em; }
.ui-controlgroup-label { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; }
.ui-controlgroup-controls { display: block; width: 95%;}
.ui-controlgroup-label { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .4em; }
.ui-controlgroup-controls { display: block; width: 100%;}
.ui-controlgroup li { list-style: none; }
.ui-controlgroup-vertical .ui-btn,
.ui-controlgroup-vertical .ui-checkbox, .ui-controlgroup-vertical .ui-radio { margin: 0; border-bottom-width: 0; }
.ui-controlgroup-controls label.ui-select { position: absolute; left: -9999px; }
.ui-controlgroup-vertical .ui-controlgroup-last { border-bottom-width: 1px; }
.ui-controlgroup-horizontal { padding: 0; }
.ui-controlgroup-horizontal .ui-btn,
.ui-controlgroup-horizontal .ui-checkbox, .ui-controlgroup-horizontal .ui-radio { display: inline-block; margin: 0 -5px 0 0; }
.ui-controlgroup-horizontal .ui-checkbox, .ui-controlgroup-horizontal .ui-radio { display: inline; }
.ui-controlgroup-horizontal .ui-btn, .ui-controlgroup-horizontal .ui-select { display: inline-block; margin: 0 -5px 0 0; }
.ui-controlgroup-horizontal .ui-checkbox, .ui-controlgroup-horizontal .ui-radio { float: left; margin: 0 -1px 0 0; }
.ui-controlgroup-horizontal .ui-checkbox .ui-btn, .ui-controlgroup-horizontal .ui-radio .ui-btn,
.ui-controlgroup-horizontal .ui-checkbox:last-child, .ui-controlgroup-horizontal .ui-radio:last-child { margin-right: 0; }
.ui-controlgroup-horizontal .ui-controlgroup-last { margin-right: 0; }
@ -25,6 +21,8 @@
*/
@media all and (min-width: 450px){
.ui-controlgroup-label { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
.ui-controlgroup-controls { width: 60%; display: inline-block; }
.ui-field-contain .ui-controlgroup-label { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
.ui-field-contain .ui-controlgroup-controls { width: 60%; display: inline-block; }
.ui-field-contain .ui-controlgroup .ui-select { width: 100%; }
.ui-field-contain .ui-controlgroup-horizontal .ui-select { width: auto; }
}

View file

@ -0,0 +1,69 @@
/* some unsets - more probably needed */
.ui-mobile, .ui-mobile body { height: 99.9%; }
.ui-mobile fieldset, .ui-page { padding: 0; margin: 0; }
.ui-mobile a img, .ui-mobile fieldset { border-width: 0; }
/* responsive page widths */
.ui-mobile-viewport { margin: 0; overflow-x: visible; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
/* Issue #2066 */
body.ui-mobile-viewport,
div.ui-mobile-viewport { overflow-x: hidden; }
/* "page" containers - full-screen views, one should always be in view post-pageload */
.ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page { top: 0; left: 0; width: 100%; min-height: 100%; position: absolute; display: none; border: 0; }
.ui-mobile .ui-page-active { display: block; overflow: visible; }
/* on ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
.ui-page { outline: none; }
/*orientations from js are available */
@media screen and (orientation: portrait){
.ui-mobile, .ui-mobile .ui-page { min-height: 420px; }
}
@media screen and (orientation: landscape){
.ui-mobile, .ui-mobile .ui-page { min-height: 300px; }
}
/* loading screen */
.ui-loading .ui-loader { display: block; }
.ui-loader { display: none; z-index: 9999999; position: fixed; top: 50%; box-shadow: 0 1px 1px -1px #fff; left: 50%; border:0; }
.ui-loader-default { background: none; opacity: .18; width: 46px; height: 46px; margin-left: -18px; margin-top: -18px; padding: 1px; -webkit-border-radius: 36px; -moz-border-radius: 36px; border-radius: 36px; }
.ui-loader-verbose { width: 200px; opacity: .88; height: auto; margin-left: -110px; padding: 10px; }
.ui-loader-default h1 { font-size: 0; width: 0; height: 0; overflow: hidden; }
.ui-loader-verbose h1 { font-size: 16px; margin: 0; text-align: center; }
.ui-loader .ui-icon { display: block; margin: 0; width: 46px; height: 46px; background-color: transparent; }
.ui-loader-verbose .ui-icon { margin: 0 auto 10px; }
.ui-loader-textonly { padding: 15px; margin-left: -115px; }
.ui-loader-textonly .ui-icon { display: none; }
.ui-loader-fakefix { position: absolute; }
/*fouc*/
.ui-mobile-rendering > * { visibility: hidden; }
/*headers, content panels*/
.ui-bar, .ui-body { position: relative; padding: .4em 15px; overflow: hidden; display: block; clear:both; }
.ui-bar { font-size: 16px; margin: 0; }
.ui-bar h1, .ui-bar h2, .ui-bar h3, .ui-bar h4, .ui-bar h5, .ui-bar h6 { margin: 0; padding: 0; font-size: 16px; display: inline-block; }
.ui-header, .ui-footer { position: relative; overflow: hidden; width: 100%; border-left-width: 0; border-right-width: 0; }
.ui-header .ui-btn-left { position: absolute; left: 10px; top: .4em; }
.ui-header .ui-btn-right { position: absolute; right: 10px; top: .4em; }
.ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 30% .8em; padding: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
.ui-footer .ui-title { margin: .6em 15px .8em; }
/*content area*/
.ui-content { border-width: 0; overflow: visible; overflow-x: hidden; padding: 15px; }
/* icons sizing */
.ui-icon { width: 18px; height: 18px; }
/* fluid images */
.ui-mobile img {
max-width: 100%;
}
/* non-js content hiding */
.ui-nojs { position: absolute; left: -9999px; }
/* accessible content hiding */
.ui-hide-label label,
.ui-hidden-accessible { position: absolute !important; left: -9999px; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }

View file

@ -0,0 +1,28 @@
.ui-dialog { width: 92.5%; max-width: 500px; margin: 10% auto 15px auto; padding: 0; }
.ui-dialog-page {
background: none !important; /* this is to ensure that dialog theming does not apply (by default at least) on the page div */
}
.ui-dialog .ui-header {
margin-top: 15%;
}
.ui-dialog .ui-header,
.ui-dialog .ui-content,
.ui-dialog .ui-footer {
display: block;
position: relative;
width: auto;
}
.ui-dialog .ui-header,
.ui-dialog .ui-footer {
z-index: 10;
padding: 0;
}
.ui-dialog .ui-footer {
padding: 0 15px;
}
.ui-dialog .ui-content {
padding: 15px;
}
.ui-dialog {
margin-top: -15px;
}

View file

@ -0,0 +1,43 @@
/* fixed page header & footer configuration */
.ui-header-fixed,
.ui-footer-fixed {
left: 0;
right: 0;
position: fixed;
z-index: 1000;
-webkit-transform: translateZ(0); /* Force header/footer rendering to go through the same rendering pipeline as native page scrolling. */
}
.ui-header-fixed {
top: 0;
}
.ui-footer-fixed {
bottom: 0;
}
.ui-header-fullscreen,
.ui-footer-fullscreen {
opacity: .9;
}
.ui-page-header-fixed {
padding-top: 2.5em;
}
.ui-page-footer-fixed {
padding-bottom: 3em;
}
.ui-page-header-fullscreen .ui-content,
.ui-page-footer-fullscreen .ui-content {
padding: 0;
}
.ui-fixed-hidden {
position: absolute;
}
.ui-page-header-fullscreen .ui-fixed-hidden,
.ui-page-footer-fullscreen .ui-fixed-hidden {
left: -99999em;
}
.ui-footer-duplicate {
display: none;
}
.ui-header-fixed .ui-btn,
.ui-footer-fixed .ui-btn {
z-index: 10;
}

View file

@ -1,8 +1,3 @@
/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
*/
.ui-checkbox, .ui-radio { position:relative; margin: .2em 0 .5em; z-index: 1; }
.ui-checkbox .ui-btn, .ui-radio .ui-btn { margin: 0; text-align: left; z-index: 2; }
.ui-checkbox .ui-btn-inner, .ui-radio .ui-btn-inner { white-space: normal; }

View file

@ -0,0 +1,5 @@
.ui-field-contain, fieldset.ui-field-contain { padding: .8em 0; margin: 0; border-width: 0 0 1px 0; overflow: visible; }
.ui-field-contain:first-child { border-top-width: 0; }
@media all and (min-width: 450px){
.ui-field-contain, .ui-mobile fieldset.ui-field-contain { border-width: 0; padding: 0; margin: 1em 0; }
}

View file

@ -1,12 +1,15 @@
/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
*/
.ui-select { display: block; position: relative; }
.ui-select select { position: absolute; left: -9999px; top: -9999px; }
.ui-select .ui-btn { overflow: hidden; }
.ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%; height: 100%; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); }
.ui-select .ui-btn { opacity: 1; }
/* Fixes #2588 — When Windows Phone 7.5 (Mango) tries to calculate a numeric opacity for a select—including “inherit”—without explicitly specifying an opacity on the parent to give it context, a bug appears where clicking elsewhere on the page after opening the select will open the select again. */
.ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%; min-height: 1.5em; min-height: 100%; height: 3em; max-height: 100%; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); z-index: 2; }
.ui-select .ui-disabled { opacity: .3; }
@-moz-document url-prefix() {.ui-select .ui-btn select { opacity: 0.0001; }}
.ui-select .ui-btn select.ui-select-nativeonly { opacity: 1; text-indent: 0; }
@ -17,10 +20,10 @@
label.ui-select { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; display: block; }
/*listbox*/
.ui-select .ui-btn-text, .ui-selectmenu .ui-btn-text { display: block; min-height: 1em; }
.ui-select .ui-btn-text { text-overflow: ellipsis; overflow: hidden;}
.ui-select .ui-btn-text, .ui-selectmenu .ui-btn-text { display: block; min-height: 1em; overflow: hidden; }
.ui-select .ui-btn-text { text-overflow: ellipsis; }
.ui-selectmenu { position: absolute; padding: 0; z-index: 100 !important; width: 80%; max-width: 350px; padding: 6px; }
.ui-selectmenu { position: absolute; padding: 0; z-index: 1100 !important; width: 80%; max-width: 350px; padding: 6px; }
.ui-selectmenu .ui-listview { margin: 0; }
.ui-selectmenu .ui-btn.ui-li-divider { cursor: default; }
.ui-selectmenu-hidden { top: -9999px; left: -9999px; }
@ -30,9 +33,9 @@ label.ui-select { font-size: 16px; line-height: 1.4; font-weight: normal; margi
.ui-li.ui-selectmenu-placeholder { display: none; }
.ui-selectmenu .ui-header .ui-title { margin: 0.6em 46px 0.8em; }
@media all and (min-width: 450px){
label.ui-select { display: inline-block; width: 20%; margin: 0 2% 0 0; }
.ui-select { width: 60%; display: inline-block; }
@media all and (min-width: 450px){
.ui-field-contain label.ui-select { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
.ui-field-contain .ui-select { width: 60%; display: inline-block; }
}
/* when no placeholder is defined in a multiple select, the header height doesn't even extend past the close button. this shim's content in there */

View file

@ -0,0 +1,27 @@
label.ui-slider { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; display: block; }
input.ui-slider-input,
.ui-field-contain input.ui-slider-input { display: inline-block; width: 50px; }
select.ui-slider-switch { display: none; }
div.ui-slider { position: relative; display: inline-block; overflow: visible; height: 15px; padding: 0; margin: 0 2% 0 20px; top: 4px; width: 65%; }
div.ui-slider-switch { width: 99.8%; }
.ui-field-contain div.ui-slider-switch { width: 50%; }
a.ui-slider-handle { position: absolute; z-index: 1; top: 50%; width: 28px; height: 28px; margin-top: -15px; margin-left: -15px; outline: 0; }
a.ui-slider-handle .ui-btn-inner { padding-left: 0; padding-right: 0; }
@media all and (min-width: 480px){
.ui-field-contain label.ui-slider { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
.ui-field-contain div.ui-slider { width: 43%; }
.ui-field-contain div.ui-slider-switch { width: 35%; }
}
div.ui-slider-switch { height: 32px; overflow: hidden; margin-left: 0; }
div.ui-slider-inneroffset { margin-left: 50%; position: absolute; top: 1px; height: 100%; width: 50%; }
a.ui-slider-handle-snapping { -webkit-transition: left 70ms linear; -moz-transition: left 70ms linear; }
div.ui-slider-labelbg { position: absolute; top:0; margin: 0; border-width: 0; }
div.ui-slider-switch div.ui-slider-labelbg-a { width: 60%; height: 100%; left: 0; }
div.ui-slider-switch div.ui-slider-labelbg-b { width: 60%; height: 100%; right: 0; }
.ui-slider-switch-a div.ui-slider-labelbg-a, .ui-slider-switch-b div.ui-slider-labelbg-b { z-index: -1; }
.ui-slider-switch-a div.ui-slider-labelbg-b, .ui-slider-switch-b div.ui-slider-labelbg-a { z-index: 0; }
div.ui-slider-switch a.ui-slider-handle { z-index: 1; width: 100%; height: 30px; margin-top: -17px; margin-left: -100%; }
span.ui-slider-label { width: 100%; position: absolute; height: 32px; font-size: 16px; text-align: center; line-height: 1.8; background: none; border-color: transparent; }
span.ui-slider-label-a { left: -100%; margin-right: -1px }
span.ui-slider-label-b { right: -100%; margin-left: -1px }

View file

@ -1,23 +1,22 @@
/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
*/
label.ui-input-text { font-size: 16px; line-height: 1.4; display: block; font-weight: normal; margin: 0 0 .3em; }
input.ui-input-text, textarea.ui-input-text { background-image: none; padding: .4em; line-height: 1.4; font-size: 16px; display: block; width: 95%; }
input.ui-input-text, textarea.ui-input-text { background-image: none; padding: .4em; line-height: 1.4; font-size: 16px; display: block; width: 97%; outline: 0; }
input.ui-input-text { -webkit-appearance: none; }
textarea.ui-input-text { height: 50px; -webkit-transition: height 200ms linear; -moz-transition: height 200ms linear; -o-transition: height 200ms linear; transition: height 200ms linear; }
.ui-input-search { padding: 0 30px; width: 77%; background-position: 8px 50%; background-repeat: no-repeat; position: relative; }
.ui-input-search { padding: 0 30px; background-image: none; position: relative; }
.ui-icon-searchfield:after { position: absolute; left: 7px; top: 50%; margin-top: -9px; content: ""; width: 18px; height: 18px; opacity: .5; }
.ui-input-search input.ui-input-text { border: none; width: 98%; padding: .4em 0; margin: 0; display: block; background: transparent none; outline: 0 !important; }
.ui-input-search .ui-input-clear { position: absolute; right: 0; top: 50%; margin-top: -14px; }
.ui-input-search .ui-input-clear { position: absolute; right: 0; top: 50%; margin-top: -13px; }
.ui-input-search .ui-input-clear-hidden { display: none; }
/* orientation adjustments - incomplete!*/
@media all and (min-width: 450px){
label.ui-input-text { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0 }
input.ui-input-text,
textarea.ui-input-text,
.ui-input-search { width: 60%; display: inline-block; }
.ui-input-search { width: 50%; }
.ui-field-contain label.ui-input-text { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0 }
.ui-field-contain input.ui-input-text,
.ui-field-contain textarea.ui-input-text,
.ui-field-contain .ui-input-search { width: 60%; display: inline-block; }
.ui-field-contain .ui-input-search { width: 50%; }
.ui-hide-label input.ui-input-text,
.ui-hide-label textarea.ui-input-text,
.ui-hide-label .ui-input-search { padding: .4em; width: 97%; }
.ui-input-search input.ui-input-text { width: 98%; /*echos rule from above*/ }
}

View file

@ -1,9 +1,3 @@
/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
*/
/* content configurations. */
.ui-grid-a, .ui-grid-b, .ui-grid-c, .ui-grid-d { overflow: hidden; }
.ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d, .ui-block-e { margin: 0; padding: 0; border: 0; float: left; min-height:1px;}

View file

@ -1,8 +1,3 @@
/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
*/
.ui-listview { margin: 0; counter-reset: listnumbering; }
.ui-content .ui-listview { margin: -15px; }
.ui-content .ui-listview-inset { margin: 1em 0; }
@ -22,11 +17,12 @@ ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid
.ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-count { padding-right: 45px; }
.ui-li-has-arrow .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow { padding-right: 30px; }
.ui-li-has-arrow.ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow.ui-li-has-count { padding-right: 75px; }
.ui-li-has-count .ui-btn-text { padding-right: 15px; }
.ui-li-heading { font-size: 16px; font-weight: bold; display: block; margin: .6em 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.ui-li-desc { font-size: 12px; font-weight: normal; display: block; margin: -.5em 0 .6em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.ui-li-thumb, .ui-li-icon { position: absolute; left: 1px; top: 0; max-height: 80px; max-width: 80px; }
.ui-li-icon { max-height: 40px; max-width: 40px; left: 10px; top: .9em; }
.ui-li-thumb, .ui-li-icon, .ui-li-content { float: left; margin-right: 10px; }
.ui-li-thumb, .ui-listview .ui-li-icon { position: absolute; left: 1px; top: 0; max-height: 80px; max-width: 80px; }
.ui-listview .ui-li-icon { max-height: 40px; max-width: 40px; left: 10px; top: .9em; }
.ui-li-thumb, .ui-listview .ui-li-icon, .ui-li-content { float: left; margin-right: 10px; }
.ui-li-aside { float: right; width: 50%; text-align: right; margin: .3em 0; }
@media all and (min-width: 480px){
@ -34,14 +30,16 @@ ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid
}
.ui-li-divider { cursor: default; }
.ui-li-has-alt .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-alt { padding-right: 95px; }
.ui-li-count { position: absolute; font-size: 11px; font-weight: bold; padding: .2em .5em; top: 50%; margin-top: -.9em; right: 38px; }
.ui-li-has-count .ui-li-count { position: absolute; font-size: 11px; font-weight: bold; padding: .2em .5em; top: 50%; margin-top: -.9em; right: 38px; }
.ui-li-divider .ui-li-count, .ui-li-static .ui-li-count { right: 10px; }
.ui-li-has-alt .ui-li-count { right: 55px; }
.ui-li-link-alt { position: absolute; width: 40px; height: 100%; border-width: 0; border-left-width: 1px; top: 0; right: 0; margin: 0; padding: 0; }
.ui-li-link-alt .ui-btn { overflow: hidden; position: absolute; right: 8px; top: 50%; margin: -11px 0 0 0; border-bottom-width: 1px; }
.ui-li-link-alt .ui-btn-inner { padding: 0; position: static; }
.ui-li-link-alt { position: absolute; width: 40px; height: 100%; border-width: 0; border-left-width: 1px; top: 0; right: 0; margin: 0; padding: 0; z-index: 2; }
.ui-li-link-alt .ui-btn { overflow: hidden; position: absolute; right: 8px; top: 50%; margin: -11px 0 0 0; border-bottom-width: 1px; z-index: -1;}
.ui-li-link-alt .ui-btn-inner { padding: 0; height: 100%; position: absolute; width: 100%; top: 0; left: 0;}
.ui-li-link-alt .ui-btn .ui-icon { right: 50%; margin-right: -9px; }
.ui-listview * .ui-btn-inner > .ui-btn > .ui-btn-inner { border-top: 0px; }
.ui-listview-filter { border-width: 0; overflow: hidden; margin: -15px -15px 15px -15px }
.ui-listview-filter .ui-input-search { margin: 5px; width: auto; display: block; }

View file

@ -1,14 +1,9 @@
/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
*/
.ui-navbar { overflow: hidden; }
.ui-navbar ul, .ui-navbar-expanded ul { list-style:none; padding: 0; margin: 0; position: relative; display: block; border: 0;}
.ui-navbar-collapsed ul { float: left; width: 75%; margin-right: -2px; }
.ui-navbar-collapsed .ui-navbar-toggle { float: left; width: 25%; }
.ui-navbar li.ui-navbar-truncate { position: absolute; left: -9999px; top: -9999px; }
.ui-navbar li .ui-btn, .ui-navbar .ui-navbar-toggle .ui-btn { display: block; font-size: 12px; text-align: center; margin: 0; border-right-width: 0; }
.ui-navbar li .ui-btn, .ui-navbar .ui-navbar-toggle .ui-btn { display: block; font-size: 12px; text-align: center; margin: 0; border-right-width: 0; max-width: 100%; }
.ui-navbar li .ui-btn { margin-right: -1px; }
.ui-navbar li .ui-btn:last-child { margin-right: 0; }
.ui-header .ui-navbar li .ui-btn, .ui-header .ui-navbar .ui-navbar-toggle .ui-btn,

View file

@ -0,0 +1,23 @@
@import url( "jquery.mobile.core.css" );
@import url( "jquery.mobile.transitions.css" );
@import url( "jquery.mobile.transitions.fade.css" );
@import url( "jquery.mobile.transitions.pop.css" );
@import url( "jquery.mobile.transitions.slide.css" );
@import url( "jquery.mobile.transitions.slidedown.css" );
@import url( "jquery.mobile.transitions.slideup.css" );
@import url( "jquery.mobile.transitions.flip.css" );
@import url( "jquery.mobile.transitions.turn.css" );
@import url( "jquery.mobile.transitions.flow.css" );
@import url( "jquery.mobile.grids.css" );
@import url( "jquery.mobile.fixedToolbar.css" );
@import url( "jquery.mobile.navbar.css" );
@import url( "jquery.mobile.button.css" );
@import url( "jquery.mobile.collapsible.css" );
@import url( "jquery.mobile.controlgroup.css" );
@import url( "jquery.mobile.dialog.css" );
@import url( "jquery.mobile.forms.checkboxradio.css" );
@import url( "jquery.mobile.forms.fieldcontain.css" );
@import url( "jquery.mobile.forms.select.css" );
@import url( "jquery.mobile.forms.textinput.css" );
@import url( "jquery.mobile.listview.css" );
@import url( "jquery.mobile.forms.slider.css" );

View file

@ -0,0 +1,21 @@
/* Transitions originally inspired by those from jQtouch, nice work, folks */
.ui-mobile-viewport-transitioning,
.ui-mobile-viewport-transitioning .ui-page {
width: 100%;
height: 100%;
overflow: hidden;
}
.in {
-webkit-animation-timing-function: ease-out;
-webkit-animation-duration: 350ms;
-moz-animation-timing-function: ease-out;
-moz-animation-duration: 350ms;
}
.out {
-webkit-animation-timing-function: ease-in;
-webkit-animation-duration: 225ms;
-moz-animation-timing-function: ease-in;
-moz-animation-duration: 225;
}

View file

@ -0,0 +1,35 @@
@-webkit-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-moz-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-webkit-keyframes fadeout {
from { opacity: 1; }
to { opacity: 0; }
}
@-moz-keyframes fadeout {
from { opacity: 1; }
to { opacity: 0; }
}
.fade.out {
opacity: 0;
-webkit-animation-duration: 125ms;
-webkit-animation-name: fadeout;
-moz-animation-duration: 125ms;
-moz-animation-name: fadeout;
}
.fade.in {
opacity: 1;
-webkit-animation-duration: 225ms;
-webkit-animation-name: fadein;
-moz-animation-duration: 225ms;
-moz-animation-name: fadein;
}

View file

@ -0,0 +1,79 @@
/* The properties in this rule are only necessary for the 'flip' transition.
* We need specify the perspective to create a projection matrix. This will add
* some depth as the element flips. The depth number represents the distance of
* the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
* value.
*/
.viewport-flip {
-webkit-perspective: 1000;
-moz-perspective: 1000;
position: absolute;
}
.flip {
-webkit-backface-visibility:hidden;
-webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-moz-backface-visibility:hidden;
-moz-transform:translateX(0);
}
.flip.out {
-webkit-transform: rotateY(-90deg) scale(.9);
-webkit-animation-name: flipouttoleft;
-webkit-animation-duration: 175ms;
-moz-transform: rotateY(-90deg) scale(.9);
-moz-animation-name: flipouttoleft;
-moz-animation-duration: 175ms;
}
.flip.in {
-webkit-animation-name: flipintoright;
-webkit-animation-duration: 225ms;
-moz-animation-name: flipintoright;
-moz-animation-duration: 225ms;
}
.flip.out.reverse {
-webkit-transform: rotateY(90deg) scale(.9);
-webkit-animation-name: flipouttoright;
-moz-transform: rotateY(90deg) scale(.9);
-moz-animation-name: flipouttoright;
}
.flip.in.reverse {
-webkit-animation-name: flipintoleft;
-moz-animation-name: flipintoleft;
}
@-webkit-keyframes flipouttoleft {
from { -webkit-transform: rotateY(0); }
to { -webkit-transform: rotateY(-90deg) scale(.9); }
}
@-moz-keyframes flipouttoleft {
from { -moz-transform: rotateY(0); }
to { -moz-transform: rotateY(-90deg) scale(.9); }
}
@-webkit-keyframes flipouttoright {
from { -webkit-transform: rotateY(0) ; }
to { -webkit-transform: rotateY(90deg) scale(.9); }
}
@-moz-keyframes flipouttoright {
from { -moz-transform: rotateY(0); }
to { -moz-transform: rotateY(90deg) scale(.9); }
}
@-webkit-keyframes flipintoleft {
from { -webkit-transform: rotateY(-90deg) scale(.9); }
to { -webkit-transform: rotateY(0); }
}
@-moz-keyframes flipintoleft {
from { -moz-transform: rotateY(-90deg) scale(.9); }
to { -moz-transform: rotateY(0); }
}
@-webkit-keyframes flipintoright {
from { -webkit-transform: rotateY(90deg) scale(.9); }
to { -webkit-transform: rotateY(0); }
}
@-moz-keyframes flipintoright {
from { -moz-transform: rotateY(90deg) scale(.9); }
to { -moz-transform: rotateY(0); }
}

View file

@ -0,0 +1,89 @@
/* flow transition */
.flow {
-webkit-transform-origin: 50% 30%;
-moz-transform-origin: 50% 30%;
-webkit-box-shadow: 0 0 20px rgba(0,0,0,.4);
-moz-box-shadow: 0 0 20px rgba(0,0,0,.4);
}
.ui-dialog-page.flow {
-webkit-transform-origin: none;
-moz-transform-origin: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
.flow.out {
-webkit-transform: translateX(-100%) scale(.7);
-webkit-animation-name: flowouttoleft;
-webkit-animation-timing-function: ease;
-webkit-animation-duration: 350ms;
-moz-transform: translateX(-100%) scale(.7);
-moz-animation-name: flowouttoleft;
-moz-animation-timing-function: ease;
-moz-animation-duration: 350ms;
}
.flow.in {
-webkit-transform: translateX(0) scale(1);
-webkit-animation-name: flowinfromright;
-webkit-animation-timing-function: ease;
-webkit-animation-duration: 350ms;
-moz-transform: translateX(0) scale(1);
-moz-animation-name: flowinfromright;
-moz-animation-timing-function: ease;
-moz-animation-duration: 350ms;
}
.flow.out.reverse {
-webkit-transform: translateX(100%);
-webkit-animation-name: flowouttoright;
-moz-transform: translateX(100%);
-moz-animation-name: flowouttoright;
}
.flow.in.reverse {
-webkit-animation-name: flowinfromleft;
-moz-animation-name: flowinfromleft;
}
@-webkit-keyframes flowouttoleft {
0% { -webkit-transform: translateX(0) scale(1); }
60%, 70% { -webkit-transform: translateX(0) scale(.7); }
100% { -webkit-transform: translateX(-100%) scale(.7); }
}
@-moz-keyframes flowouttoleft {
0% { -moz-transform: translateX(0) scale(1); }
60%, 70% { -moz-transform: translateX(0) scale(.7); }
100% { -moz-transform: translateX(-100%) scale(.7); }
}
@-webkit-keyframes flowouttoright {
0% { -webkit-transform: translateX(0) scale(1); }
60%, 70% { -webkit-transform: translateX(0) scale(.7); }
100% { -webkit-transform: translateX(100%) scale(.7); }
}
@-moz-keyframes flowouttoright {
0% { -moz-transform: translateX(0) scale(1); }
60%, 70% { -moz-transform: translateX(0) scale(.7); }
100% { -moz-transform: translateX(100%) scale(.7); }
}
@-webkit-keyframes flowinfromleft {
0% { -webkit-transform: translateX(-100%) scale(.7); }
30%, 40% { -webkit-transform: translateX(0) scale(.7); }
100% { -webkit-transform: translateX(0) scale(1); }
}
@-moz-keyframes flowinfromleft {
0% { -moz-transform: translateX(-100%) scale(.7); }
30%, 40% { -moz-transform: translateX(0) scale(.7); }
100% { -moz-transform: translateX(0) scale(1); }
}
@-webkit-keyframes flowinfromright {
0% { -webkit-transform: translateX(100%) scale(.7); }
30%, 40% { -webkit-transform: translateX(0) scale(.7); }
100% { -webkit-transform: translateX(0) scale(1); }
}
@-moz-keyframes flowinfromright {
0% { -moz-transform: translateX(100%) scale(.7); }
30%, 40% { -moz-transform: translateX(0) scale(.7); }
100% { -moz-transform: translateX(0) scale(1); }
}

View file

@ -0,0 +1,78 @@
.pop {
-webkit-transform-origin: 50% 50%;
-moz-transform-origin: 50% 50%;
}
.pop.in {
-webkit-transform: scale(1);
-moz-transform: scale(1);
opacity: 1;
-webkit-animation-name: popin;
-moz-animation-name: popin;
-webkit-animation-duration: 350ms;
-moz-animation-duration: 350ms;
}
.pop.out {
-webkit-animation-name: fadeout;
-moz-animation-name: fadeout;
opacity: 0;
-webkit-animation-duration: 100ms;
-moz-animation-duration: 100ms;
}
.pop.in.reverse {
-webkit-animation-name: fadein;
-moz-animation-name: fadein;
}
.pop.out.reverse {
-webkit-transform: scale(.8);
-moz-transform: scale(.8);
-webkit-animation-name: popout;
-moz-animation-name: popout;
}
@-webkit-keyframes popin {
from {
-webkit-transform: scale(.8);
opacity: 0;
}
to {
-webkit-transform: scale(1);
opacity: 1;
}
}
@-moz-keyframes popin {
from {
-moz-transform: scale(.8);
opacity: 0;
}
to {
-moz-transform: scale(1);
opacity: 1;
}
}
@-webkit-keyframes popout {
from {
-webkit-transform: scale(1);
opacity: 1;
}
to {
-webkit-transform: scale(.8);
opacity: 0;
}
}
@-moz-keyframes popout {
from {
-moz-transform: scale(1);
opacity: 1;
}
to {
-moz-transform: scale(.8);
opacity: 0;
}
}

View file

@ -0,0 +1,54 @@
/* slide transition */
.slide.out {
-webkit-transform: translateX(-100%);
-webkit-animation-name: slideouttoleft;
-moz-transform: translateX(-100%);
-moz-animation-name: slideouttoleft;
-webkit-animation-duration: 225ms;
-moz-animation-duration: 225ms;
}
.slide.in {
-webkit-transform: translateX(0);
-webkit-animation-name: fadein;
-moz-transform: translateX(0);
-moz-animation-name: fadein;
-webkit-animation-duration: 200ms;
-moz-animation-duration: 200ms;
}
.slide.out.reverse {
-webkit-transform: translateX(100%);
-webkit-animation-name: slideouttoright;
-moz-transform: translateX(100%);
-moz-animation-name: slideouttoright;
-webkit-animation-duration: 200ms;
-moz-animation-duration: 200ms;
}
.slide.in.reverse {
-webkit-transform: translateX(0);
-webkit-animation-name: fadein;
-moz-transform: translateX(0);
-moz-animation-name: fadein;
-webkit-animation-duration: 200ms;
-moz-animation-duration: 200ms;
}
@-webkit-keyframes slideouttoleft {
from { -webkit-transform: translateX(0); }
to { -webkit-transform: translateX(-100%); }
}
@-moz-keyframes slideouttoleft {
from { -moz-transform: translateX(0); }
to { -moz-transform: translateX(-100%); }
}
@-webkit-keyframes slideouttoright {
from { -webkit-transform: translateX(0); }
to { -webkit-transform: translateX(100%); }
}
@-moz-keyframes slideouttoright {
from { -moz-transform: translateX(0); }
to { -moz-transform: translateX(100%); }
}

View file

@ -0,0 +1,50 @@
/* slide down */
.slidedown.out {
-webkit-animation-name: fadeout;
-moz-animation-name: fadeout;
-webkit-animation-duration: 100ms;
-moz-animation-duration: 100ms;
}
.slidedown.in {
-webkit-transform: translateY(0);
-webkit-animation-name: slideinfromtop;
-moz-transform: translateY(0);
-moz-animation-name: slideinfromtop;
-webkit-animation-duration: 250ms;
-moz-animation-duration: 250ms;
}
.slidedown.in.reverse {
-webkit-animation-name: fadein;
-moz-animation-name: fadein;
-webkit-animation-duration: 150ms;
-moz-animation-duration: 150ms;
}
.slidedown.out.reverse {
-webkit-transform: translateY(-100%);
-moz-transform: translateY(-100%);
-webkit-animation-name: slideouttotop;
-moz-animation-name: slideouttotop;
-webkit-animation-duration: 200ms;
-moz-animation-duration: 200ms;
}
@-webkit-keyframes slideinfromtop {
from { -webkit-transform: translateY(-100%); }
to { -webkit-transform: translateY(0); }
}
@-moz-keyframes slideinfromtop {
from { -moz-transform: translateY(-100%); }
to { -moz-transform: translateY(0); }
}
@-webkit-keyframes slideouttotop {
from { -webkit-transform: translateY(0); }
to { -webkit-transform: translateY(-100%); }
}
@-moz-keyframes slideouttotop {
from { -moz-transform: translateY(0); }
to { -moz-transform: translateY(-100%); }
}

View file

@ -0,0 +1,50 @@
/* slide up */
.slideup.out {
-webkit-animation-name: fadeout;
-moz-animation-name: fadeout;
-webkit-animation-duration: 100ms;
-moz-animation-duration: 100ms;
}
.slideup.in {
-webkit-transform: translateY(0);
-webkit-animation-name: slideinfrombottom;
-moz-transform: translateY(0);
-moz-animation-name: slideinfrombottom;
-webkit-animation-duration: 250ms;
-moz-animation-duration: 250ms;
}
.slideup.in.reverse {
-webkit-animation-name: fadein;
-moz-animation-name: fadein;
-webkit-animation-duration: 150ms;
-moz-animation-duration: 150ms;
}
.slideup.out.reverse {
-webkit-transform: translateY(100%);
-moz-transform: translateY(100%);
-webkit-animation-name: slideouttobottom;
-moz-animation-name: slideouttobottom;
-webkit-animation-duration: 200ms;
-moz-animation-duration: 200ms;
}
@-webkit-keyframes slideinfrombottom {
from { -webkit-transform: translateY(100%); }
to { -webkit-transform: translateY(0); }
}
@-moz-keyframes slideinfrombottom {
from { -moz-transform: translateY(100%); }
to { -moz-transform: translateY(0); }
}
@-webkit-keyframes slideouttobottom {
from { -webkit-transform: translateY(0); }
to { -webkit-transform: translateY(100%); }
}
@-moz-keyframes slideouttobottom {
from { -moz-transform: translateY(0); }
to { -moz-transform: translateY(100%); }
}

View file

@ -0,0 +1,83 @@
/* The properties in this rule are only necessary for the 'flip' transition.
* We need specify the perspective to create a projection matrix. This will add
* some depth as the element flips. The depth number represents the distance of
* the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
* value.
*/
.viewport-turn {
-webkit-perspective: 1000;
-moz-perspective: 1000;
position: absolute;
}
.turn {
-webkit-backface-visibility:hidden;
-webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-webkit-transform-origin: 0;
-moz-backface-visibility:hidden;
-moz-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-moz-transform-origin: 0;
}
.turn.out {
-webkit-transform: rotateY(-90deg) scale(.9);
-webkit-animation-name: flipouttoleft;
-moz-transform: rotateY(-90deg) scale(.9);
-moz-animation-name: flipouttoleft;
-webkit-animation-duration: 125ms;
-moz-animation-duration: 125ms;
}
.turn.in {
-webkit-animation-name: flipintoright;
-moz-animation-name: flipintoright;
-webkit-animation-duration: 250ms;
-moz-animation-duration: 250ms;
}
.turn.out.reverse {
-webkit-transform: rotateY(90deg) scale(.9);
-webkit-animation-name: flipouttoright;
-moz-transform: rotateY(90deg) scale(.9);
-moz-animation-name: flipouttoright;
}
.turn.in.reverse {
-webkit-animation-name: flipintoleft;
-moz-animation-name: flipintoleft;
}
@-webkit-keyframes flipouttoleft {
from { -webkit-transform: rotateY(0); }
to { -webkit-transform: rotateY(-90deg) scale(.9); }
}
@-moz-keyframes flipouttoleft {
from { -moz-transform: rotateY(0); }
to { -moz-transform: rotateY(-90deg) scale(.9); }
}
@-webkit-keyframes flipouttoright {
from { -webkit-transform: rotateY(0) ; }
to { -webkit-transform: rotateY(90deg) scale(.9); }
}
@-moz-keyframes flipouttoright {
from { -moz-transform: rotateY(0); }
to { -moz-transform: rotateY(90deg) scale(.9); }
}
@-webkit-keyframes flipintoleft {
from { -webkit-transform: rotateY(-90deg) scale(.9); }
to { -webkit-transform: rotateY(0); }
}
@-moz-keyframes flipintoleft {
from { -moz-transform: rotateY(-90deg) scale(.9); }
to { -moz-transform: rotateY(0); }
}
@-webkit-keyframes flipintoright {
from { -webkit-transform: rotateY(90deg) scale(.9); }
to { -webkit-transform: rotateY(0); }
}
@-moz-keyframes flipintoright {
from { -moz-transform: rotateY(90deg) scale(.9); }
to { -moz-transform: rotateY(0); }
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -0,0 +1,7 @@
<?php
$type = 'text/css';
$files = array(
'../../../LICENSE-INFO.txt',
'jquery.mobile.css'
);
$base = dirname(__FILE__);

View file

@ -0,0 +1,2 @@
@import url( "jquery.mobile.theme.css" );
@import url( "../../structure/jquery.mobile.structure.css" );

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -0,0 +1,7 @@
<?php
$type = 'text/css';
$files = array(
'../../../LICENSE-INFO.txt',
'jquery.mobile.css'
);
$base = dirname(__FILE__);

View file

@ -0,0 +1,2 @@
@import url( "jquery.mobile.theme.css" );
@import url( "../../structure/jquery.mobile.structure.css" );

View file

@ -1,10 +1,3 @@
/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
*/
/*####################################################################################################################################
A
@ -18,22 +11,22 @@
color: #fff;
text-shadow: 0 -1px 0px #94440F;
background-image: -webkit-gradient(linear, left top, left bottom, from(#e9a015), to(#e98a15)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #e9a015, #e98a15); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #e9a015, #e98a15); /* FF3.6 */
background-image: -ms-linear-gradient(top, #e9a015, #e98a15); /* IE10 */
background-image: -o-linear-gradient(top, #e9a015, #e98a15); /* Opera 11.10+ */
background-image: linear-gradient(top, #e9a015, #e98a15);
background-image: -webkit-linear-gradient(#e9a015, #e98a15); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#e9a015, #e98a15); /* FF3.6 */
background-image: -ms-linear-gradient(#e9a015, #e98a15); /* IE10 */
background-image: -o-linear-gradient(#e9a015, #e98a15); /* Opera 11.10+ */
background-image: linear-gradient(#e9a015, #e98a15);
}
.ui-btn-up-a {
border: 1px solid #BD610D;
background: #e68510;
color: #fff;
background-image: -webkit-gradient(linear, left top, left bottom, from(#ea9e0c), to(#e68510)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #ea9e0c, #e68510); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #ea9e0c, #e68510); /* FF3.6 */
background-image: -ms-linear-gradient(top, #ea9e0c, #e68510); /* IE10 */
background-image: -o-linear-gradient(top, #ea9e0c, #e68510); /* Opera 11.10+ */
background-image: linear-gradient(top, #ea9e0c, #e68510);
background-image: -webkit-linear-gradient(#ea9e0c, #e68510); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#ea9e0c, #e68510); /* FF3.6 */
background-image: -ms-linear-gradient(#ea9e0c, #e68510); /* IE10 */
background-image: -o-linear-gradient(#ea9e0c, #e68510); /* Opera 11.10+ */
background-image: linear-gradient(#ea9e0c, #e68510);
}
.ui-btn-up-a a.ui-link-inherit {
color: #fff;
@ -43,11 +36,11 @@
background: #ed9730;
color: #fff;
background-image: -webkit-gradient(linear, left top, left bottom, from(#edab30), to(#ed9730)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #edab30, #ed9730); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #edab30, #ed9730); /* FF3.6 */
background-image: -ms-linear-gradient(top, #edab30, #ed9730); /* IE10 */
background-image: -o-linear-gradient(top, #edab30, #ed9730); /* Opera 11.10+ */
background-image: linear-gradient(top, #edab30, #ed9730);
background-image: -webkit-linear-gradient(#edab30, #ed9730); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#edab30, #ed9730); /* FF3.6 */
background-image: -ms-linear-gradient(#edab30, #ed9730); /* IE10 */
background-image: -o-linear-gradient(#edab30, #ed9730); /* Opera 11.10+ */
background-image: linear-gradient(#edab30, #ed9730);
}
.ui-btn-hover-a a.ui-link-inherit {
color: #fff;
@ -57,11 +50,11 @@
background: #BA6E11;
color: #fff;
background-image: -webkit-gradient(linear, left top, left bottom, from(#BA8011), to(#BA6E11)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #BA8011, #BA6E11); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #BA8011, #BA6E11); /* FF3.6 */
background-image: -ms-linear-gradient(top, #BA8011, #BA6E11); /* IE10 */
background-image: -o-linear-gradient(top, #BA8011, #BA6E11); /* Opera 11.10+ */
background-image: linear-gradient(top, #BA8011, #BA6E11);
background-image: -webkit-linear-gradient(#BA8011, #BA6E11); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#BA8011, #BA6E11); /* FF3.6 */
background-image: -ms-linear-gradient(#BA8011, #BA6E11); /* IE10 */
background-image: -o-linear-gradient(#BA8011, #BA6E11); /* Opera 11.10+ */
background-image: linear-gradient(#BA8011, #BA6E11);
}
.ui-btn-up-a,
.ui-btn-hover-a,
@ -86,18 +79,19 @@
color: #7cc4e7;
font-weight: bold;
}
.ui-body-a {
.ui-body-a,
.ui-dialog.ui-overlay-a {
font-weight: normal;
border: 1px solid #222;
background: #444;
color: #ddd;
text-shadow: 0 -1px 0px #000;
background-image: -webkit-gradient(linear, center top, center bottom, from(#333), color-stop(5%, #333), color-stop(15%, #444), color-stop(60%, #444), to(#222)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* FF3.6 */
background-image: -ms-linear-gradient(top, #333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* IE10 */
background-image: -o-linear-gradient(top, #333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* Opera 11.10+ */
background-image: linear-gradient(top, #333 0%, #333 5%, #444 15%, #444 60%, #222 100%);
background-image: -webkit-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* FF3.6 */
background-image: -ms-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* IE10 */
background-image: -o-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* Opera 11.10+ */
background-image: linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%);
}
.ui-body-a,
.ui-body-a input,
@ -127,22 +121,22 @@
color: #fff;
text-shadow: 0 -1px 0px #111;
background-image: -webkit-gradient(linear, left top, left bottom, from(#555), to(#333)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #555, #333); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #555, #333); /* FF3.6 */
background-image: -ms-linear-gradient(top, #555, #333); /* IE10 */
background-image: -o-linear-gradient(top, #555, #333); /* Opera 11.10+ */
background-image: linear-gradient(top, #555, #333);
background-image: -webkit-linear-gradient(#555, #333); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#555, #333); /* FF3.6 */
background-image: -ms-linear-gradient(#555, #333); /* IE10 */
background-image: -o-linear-gradient(#555, #333); /* Opera 11.10+ */
background-image: linear-gradient(#555, #333);
}
.ui-btn-up-b {
border: 1px solid #232323;
background: #393939;
color: #eee;
background-image: -webkit-gradient(linear, left top, left bottom, from(#5E5E5E), to(#393939)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #5E5E5E, #393939); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #5E5E5E, #393939); /* FF3.6 */
background-image: -ms-linear-gradient(top, #5E5E5E, #393939); /* IE10 */
background-image: -o-linear-gradient(top, #5E5E5E, #393939); /* Opera 11.10+ */
background-image: linear-gradient(top, #5E5E5E, #393939);
background-image: -webkit-linear-gradient(#5E5E5E, #393939); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#5E5E5E, #393939); /* FF3.6 */
background-image: -ms-linear-gradient(#5E5E5E, #393939); /* IE10 */
background-image: -o-linear-gradient(#5E5E5E, #393939); /* Opera 11.10+ */
background-image: linear-gradient(#5E5E5E, #393939);
}
.ui-btn-up-b a.ui-link-inherit {
color: #eee;
@ -152,11 +146,11 @@
background: #494949;
color: #fff;
background-image: -webkit-gradient(linear, left top, left bottom, from(#6E6E6E), to(#494949)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #6E6E6E, #494949); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #6E6E6E, #494949); /* FF3.6 */
background-image: -ms-linear-gradient(top, #6E6E6E, #494949); /* IE10 */
background-image: -o-linear-gradient(top, #6E6E6E, #494949); /* Opera 11.10+ */
background-image: linear-gradient(top, #6E6E6E, #494949);
background-image: -webkit-linear-gradient(#6E6E6E, #494949); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#6E6E6E, #494949); /* FF3.6 */
background-image: -ms-linear-gradient(#6E6E6E, #494949); /* IE10 */
background-image: -o-linear-gradient(#6E6E6E, #494949); /* Opera 11.10+ */
background-image: linear-gradient(#6E6E6E, #494949);
}
.ui-btn-hover-b a.ui-link-inherit {
@ -167,11 +161,11 @@
background: #292929;
color: #fff;
background-image: -webkit-gradient(linear, left top, left bottom, from(#4E4E4E), to(#292929)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #4E4E4E, #292929); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #4E4E4E, #292929); /* FF3.6 */
background-image: -ms-linear-gradient(top, #4E4E4E, #292929); /* IE10 */
background-image: -o-linear-gradient(top, #4E4E4E, #292929); /* Opera 11.10+ */
background-image: linear-gradient(top, #4E4E4E, #292929);
background-image: -webkit-linear-gradient(#4E4E4E, #292929); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#4E4E4E, #292929); /* FF3.6 */
background-image: -ms-linear-gradient(#4E4E4E, #292929); /* IE10 */
background-image: -o-linear-gradient(#4E4E4E, #292929); /* Opera 11.10+ */
background-image: linear-gradient(#4E4E4E, #292929);
}
.ui-btn-down-b a.ui-link-inherit {
color: #fff;
@ -199,7 +193,8 @@
color: #7cc4e7;
font-weight: bold;
}
.ui-body-b {
.ui-body-b,
.ui-dialog.ui-overlay-b {
font-weight: normal;
border: 1px solid #999;
background-color: #e5e5e5;
@ -234,11 +229,11 @@
color: #111;
text-shadow: 0 1px 0px #fff;
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#e5e5e5)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #eee, #e5e5e5); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #eee, #e5e5e5); /* FF3.6 */
background-image: -ms-linear-gradient(top, #eee, #e5e5e5); /* IE10 */
background-image: -o-linear-gradient(top, #eee, #e5e5e5); /* Opera 11.10+ */
background-image: linear-gradient(top, #eee, #e5e5e5);
background-image: -webkit-linear-gradient(#eee, #e5e5e5); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#eee, #e5e5e5); /* FF3.6 */
background-image: -ms-linear-gradient(#eee, #e5e5e5); /* IE10 */
background-image: -o-linear-gradient(#eee, #e5e5e5); /* Opera 11.10+ */
background-image: linear-gradient(#eee, #e5e5e5);
}
.ui-bar-c,
.ui-bar-c input,
@ -261,11 +256,11 @@
background: #e5e5e5;
color: #444;
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#e5e5e5)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #eee, #e5e5e5); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #eee, #e5e5e5); /* FF3.6 */
background-image: -ms-linear-gradient(top, #eee, #e5e5e5); /* IE10 */
background-image: -o-linear-gradient(top, #eee, #e5e5e5); /* Opera 11.10+ */
background-image: linear-gradient(top, #eee, #e5e5e5);
background-image: -webkit-linear-gradient(#eee, #e5e5e5); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#eee, #e5e5e5); /* FF3.6 */
background-image: -ms-linear-gradient(#eee, #e5e5e5); /* IE10 */
background-image: -o-linear-gradient(#eee, #e5e5e5); /* Opera 11.10+ */
background-image: linear-gradient(#eee, #e5e5e5);
}
.ui-btn-up-c a.ui-link-inherit {
color: #444;
@ -275,11 +270,11 @@
background: #f5f5f5;
color: #222;
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f5f5f5)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #fff, #f5f5f5); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #fff, #f5f5f5); /* FF3.6 */
background-image: -ms-linear-gradient(top, #fff, #f5f5f5); /* IE10 */
background-image: -o-linear-gradient(top, #fff, #f5f5f5); /* Opera 11.10+ */
background-image: linear-gradient(top, #fff, #f5f5f5);
background-image: -webkit-linear-gradient(#fff, #f5f5f5); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#fff, #f5f5f5); /* FF3.6 */
background-image: -ms-linear-gradient(#fff, #f5f5f5); /* IE10 */
background-image: -o-linear-gradient(#fff, #f5f5f5); /* Opera 11.10+ */
background-image: linear-gradient(#fff, #f5f5f5);
}
.ui-btn-hover-c a.ui-link-inherit {
color: #222;
@ -289,16 +284,17 @@
background: #d5d5d5;
color: #111;
background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#d5d5d5)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #ddd, #d5d5d5); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #ddd, #d5d5d5); /* FF3.6 */
background-image: -ms-linear-gradient(top, #ddd, #d5d5d5); /* IE10 */
background-image: -o-linear-gradient(top, #ddd, #d5d5d5); /* Opera 11.10+ */
background-image: linear-gradient(top, #ddd, #d5d5d5);
background-image: -webkit-linear-gradient(#ddd, #d5d5d5); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#ddd, #d5d5d5); /* FF3.6 */
background-image: -ms-linear-gradient(#ddd, #d5d5d5); /* IE10 */
background-image: -o-linear-gradient(#ddd, #d5d5d5); /* Opera 11.10+ */
background-image: linear-gradient(#ddd, #d5d5d5);
}
.ui-btn-down-c a.ui-link-inherit {
color: #111;
}
.ui-body-c {
.ui-body-c,
.ui-dialog.ui-overlay-c {
border: 1px solid #ddd;
color: #333333;
text-shadow: 0 1px 0px #fff;
@ -332,11 +328,11 @@
color: #666;
text-shadow: 0 1px 0px #fff;
background-image: -webkit-gradient(linear, center top, center bottom, from(#ddd), color-stop(5%, #ccc), color-stop(15%, #bbb), color-stop(95%, #ddd), to(#ccc)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* FF3.6 */
background-image: -ms-linear-gradient(top, #ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* IE10 */
background-image: -o-linear-gradient(top, #ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* Opera 11.10+ */
background-image: linear-gradient(top, #ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%);
background-image: -webkit-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* FF3.6 */
background-image: -ms-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* IE10 */
background-image: -o-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* Opera 11.10+ */
background-image: linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%);
}
.ui-bar-d,
.ui-bar-d input,
@ -358,11 +354,11 @@
background: #ddd;
color: #666;
background-image: -webkit-gradient(linear, left top, left bottom, from(#d5d5d5), to(#ddd)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #d5d5d5, #ddd); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #d5d5d5, #ddd); /* FF3.6 */
background-image: -ms-linear-gradient(top, #d5d5d5, #ddd); /* IE10 */
background-image: -o-linear-gradient(top, #d5d5d5, #ddd); /* Opera 11.10+ */
background-image: linear-gradient(top, #d5d5d5, #ddd);
background-image: -webkit-linear-gradient(#d5d5d5, #ddd); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#d5d5d5, #ddd); /* FF3.6 */
background-image: -ms-linear-gradient(#d5d5d5, #ddd); /* IE10 */
background-image: -o-linear-gradient(#d5d5d5, #ddd); /* Opera 11.10+ */
background-image: linear-gradient(#d5d5d5, #ddd);
}
.ui-btn-up-d a.ui-link-inherit {
color: #666;
@ -372,11 +368,11 @@
background: #c5c5c5;
color: #666;
background-image: -webkit-gradient(linear, left top, left bottom, from(#c5c5c5), to(#ccc)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #c5c5c5, #ccc); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #c5c5c5, #ccc); /* FF3.6 */
background-image: -ms-linear-gradient(top, #c5c5c5, #ccc); /* IE10 */
background-image: -o-linear-gradient(top, #c5c5c5, #ccc); /* Opera 11.10+ */
background-image: linear-gradient(top, #c5c5c5, #ccc);
background-image: -webkit-linear-gradient(#c5c5c5, #ccc); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#c5c5c5, #ccc); /* FF3.6 */
background-image: -ms-linear-gradient(#c5c5c5, #ccc); /* IE10 */
background-image: -o-linear-gradient(#c5c5c5, #ccc); /* Opera 11.10+ */
background-image: linear-gradient(#c5c5c5, #ccc);
}
.ui-btn-hover-d a.ui-link-inherit {
color: #666;
@ -386,11 +382,11 @@
background: #b5b5b5;
color: #444;
background-image: -webkit-gradient(linear, left top, left bottom, from(#b5b5b5), to(#bbb)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #b5b5b5, #bbb); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #b5b5b5, #bbb); /* FF3.6 */
background-image: -ms-linear-gradient(top, #b5b5b5, #bbb); /* IE10 */
background-image: -o-linear-gradient(top, #b5b5b5, #bbb); /* Opera 11.10+ */
background-image: linear-gradient(top, #b5b5b5, #bbb);
background-image: -webkit-linear-gradient(#b5b5b5, #bbb); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#b5b5b5, #bbb); /* FF3.6 */
background-image: -ms-linear-gradient(#b5b5b5, #bbb); /* IE10 */
background-image: -o-linear-gradient(#b5b5b5, #bbb); /* Opera 11.10+ */
background-image: linear-gradient(#b5b5b5, #bbb);
}
.ui-btn-up-d a.ui-link {
color: #444;
@ -414,17 +410,18 @@
.ui-body-d .ui-link-inherit {
color: #333333;
}
.ui-body-d {
.ui-body-d,
.ui-dialog.ui-overlay-d {
border: 1px solid #aaa;
color: #666;
text-shadow: 0 1px 0px #fff;
background: #eee;
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(15%, #f5f5f5), to(#eee)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #fff 0%, #f5f5f5 15%, #eee 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #fff 0%, #f5f5f5 15%, #eee 100%); /* FF3.6 */
background-image: -ms-linear-gradient(top, #fff 0%, #f5f5f5 15%, #eee 100%); /* IE10 */
background-image: -o-linear-gradient(top, #fff 0%, #f5f5f5 15%, #eee 100%); /* Opera 11.10+ */
background-image: linear-gradient(top, #fff 0%, #f5f5f5 15%, #eee 100%);
background-image: -webkit-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* FF3.6 */
background-image: -ms-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* IE10 */
background-image: -o-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* Opera 11.10+ */
background-image: linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%);
}
.ui-body-d .ui-link {
font-weight: bold;
@ -452,11 +449,11 @@
color: #000;
text-shadow: 0 1px 0px #fff;
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(50%, #ccc), color-stop(50%, #b5b5b5), to(#eee)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* FF3.6 */
background-image: -ms-linear-gradient(top, #fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* IE10 */
background-image: -o-linear-gradient(top, #fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* Opera 11.10+ */
background-image: linear-gradient(top, #fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%);
background-image: -webkit-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* FF3.6 */
background-image: -ms-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* IE10 */
background-image: -o-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* Opera 11.10+ */
background-image: linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%);
}
.ui-bar-e,
.ui-bar-e input,
@ -478,11 +475,11 @@
color: #333;
text-shadow: 0 1px 0px #fff;
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), color-stop(50%, #ccc), color-stop(50%, #b5b5b5), to(#f5f5f5)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* FF3.6 */
background-image: -ms-linear-gradient(top, #f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* IE10 */
background-image: -o-linear-gradient(top, #f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* Opera 11.10+ */
background-image: linear-gradient(top, #f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%);
background-image: -webkit-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* FF3.6 */
background-image: -ms-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* IE10 */
background-image: -o-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* Opera 11.10+ */
background-image: linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%);
}
.ui-btn-up-e a.ui-link-inherit {
color: #333;
@ -493,11 +490,11 @@
color: #333;
text-shadow: 0 1px 0px #fff;
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(50%, #ddd), color-stop(50%, #ccc), to(#fff)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* FF3.6 */
background-image: -ms-linear-gradient(top, #fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* IE10 */
background-image: -o-linear-gradient(top, #fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* Opera 11.10+ */
background-image: linear-gradient(top, #fff 0%, #ddd 50%, #ccc 50%, #fff 100%);
background-image: -webkit-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* FF3.6 */
background-image: -ms-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* IE10 */
background-image: -o-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* Opera 11.10+ */
background-image: linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%);
}
.ui-btn-hover-e a.ui-link-inherit {
color: #333;
@ -507,11 +504,11 @@
background: #ccc;
color: #333;
background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), color-stop(50%, #ccc), color-stop(50%, #bbb), to(#ddd)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* FF3.6 */
background-image: -ms-linear-gradient(top, #ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* IE10 */
background-image: -o-linear-gradient(top, #ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* Opera 11.10+ */
background-image: linear-gradient(top, #ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%);
background-image: -webkit-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* FF3.6 */
background-image: -ms-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* IE10 */
background-image: -o-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* Opera 11.10+ */
background-image: linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%);
}
.ui-btn-down-e a.ui-link-inherit {
color: #333;
@ -525,7 +522,8 @@
text-decoration: none;
text-shadow: 0 1px 0px #fff;
}
.ui-body-e {
.ui-body-e,
.ui-dialog.ui-overlay-e {
font-weight: normal;
border: 1px solid #aaa;
background: #ccc;
@ -569,11 +567,11 @@ a.ui-link-inherit {
color: #222;
text-shadow: 0 1px 0px #eee;
background-image: -webkit-gradient(linear, left top, left bottom, from(#FFDC52), to(#FFBC19)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #FFDC52, #FFBC19); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #FFDC52, #FFBC19); /* FF3.6 */
background-image: -ms-linear-gradient(top, #FFDC52, #FFBC19); /* IE10 */
background-image: -o-linear-gradient(top, #FFDC52, #FFBC19); /* Opera 11.10+ */
background-image: linear-gradient(top, #FFDC52, #FFBC19);
background-image: -webkit-linear-gradient(#FFDC52, #FFBC19); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#FFDC52, #FFBC19); /* FF3.6 */
background-image: -ms-linear-gradient(#FFDC52, #FFBC19); /* IE10 */
background-image: -o-linear-gradient(#FFDC52, #FFBC19); /* Opera 11.10+ */
background-image: linear-gradient(#FFDC52, #FFBC19);
}
.ui-btn-active a.ui-link-inherit {
color: #333;
@ -874,8 +872,17 @@ a.ui-link-inherit {
.ui-btn-corner-br, .ui-btn-corner-top, .ui-btn-corner-bottom,
.ui-btn-corner-right, .ui-btn-corner-left, .ui-btn-corner-all {
-webkit-background-clip: padding-box;
-moz-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
}
/* Form field separator */
.ui-br {
border-bottom: rgb(130,130,130);
border-bottom: rgba(130,130,130,.3);
border-bottom-width: 1px;
border-bottom-style: solid;
}
/* Overlays */
@ -917,7 +924,6 @@ a.ui-link-inherit {
/* set focus state last */
.ui-focus {
outline: none;
-moz-box-shadow: 0px 0px 12px #FFBC19;
-webkit-box-shadow: 0px 0px 12px #FFBC19;
box-shadow: 0px 0px 12px #FFBC19;
@ -966,4 +972,4 @@ a.ui-btn.ui-btn-inline.ui-btn-corner-all .ui-btn-inner{
/* inner highlight is janky! */
.ui-dialog a.ui-btn-icon-notext.ui-btn-corner-all .ui-btn-inner.ui-btn-corner-all{
border-top-color: transparent;
}
}

View file

@ -5,16 +5,16 @@ cobblers, shoes,
*/
body { background: #dddddd; }
.ui-mobile .type-home .ui-content { margin: 0; background: #e5e5e5 url(../images/jqm-sitebg.png) top center repeat-x; }
.ui-mobile #jqm-homeheader { padding: 40px 10px 0; text-align: center; margin: 0 auto; }
.ui-mobile #jqm-homeheader h1 { margin: 0 0 ; }
.ui-mobile #jqm-homeheader p { margin: .3em 0 0; line-height: 1.3; font-size: .9em; font-weight: bold; color: #666; }
.ui-mobile #jqm-version { text-indent: -99999px; background: url(../images/version.png) top right no-repeat; width: 119px; height: 122px; overflow: hidden; position: absolute; z-index: 50; top: 0; right: 0; }
.ui-mobile #jqm-version { text-indent: -99999px; background: url(../images/version.png) top right no-repeat; width: 119px; height: 122px; overflow: hidden; position: absolute; z-index: 50; top: -11px; right: 0; }
.ui-mobile .jqm-themeswitcher { margin: 10px 25px 10px 10px; }
h2 { margin:1.2em 0 .4em 0; }
p code { font-size:1.2em; font-weight:bold; }
h4 code {font-size:1.2em; font-weight:bold; }
dt { font-weight: bold; margin: 2em 0 .5em; }
dt code, dd code { font-size:1.3em; line-height:150%; }
@ -62,19 +62,18 @@ p.intro strong {
.type-interior .ui-content {
padding-bottom: 0;
}
.content-secondary .ui-collapsible-contain {
padding: 10px 15px;
.content-secondary .ui-collapsible {
padding: 0 15px 10px;
}
.content-secondary .ui-collapsible-heading {
margin: 0 0 30px;
}
.content-secondary .ui-collapsible-heading-collapsed,
.content-secondary .ui-collapsible-content {
padding:0;
padding: 0;
background: none;
border-bottom: none;
}
.content-secondary .ui-listview {
margin: 0;
}
/* new API additions */
dt {
@ -122,17 +121,18 @@ dd h4 { margin:15px 0 0 0; }
/* F bar theme - just for the docs overview headers */
.ui-bar-f {
border: 1px solid #56A00E;
border-top: 1px solid #56A00E;
border-bottom: 1px solid #56A00E;
background: #74b042;
color: #fff;
font-weight: bold;
text-shadow: 0 -1px 1px #234403;
background-image: -webkit-gradient(linear, left top, left bottom, from(#74b042), to(#56A00E)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #74b042, #56A00E); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #74b042, #56A00E); /* FF3.6 */
background-image: -ms-linear-gradient(top, #74b042, #56A00E); /* IE10 */
background-image: -o-linear-gradient(top, #74b042, #56A00E); /* Opera 11.10+ */
background-image: linear-gradient(top, #74b042, #56A00E);
background-image: -webkit-linear-gradient(#74b042, #56A00E); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#74b042, #56A00E); /* FF3.6 */
background-image: -ms-linear-gradient(#74b042, #56A00E); /* IE10 */
background-image: -o-linear-gradient(#74b042, #56A00E); /* Opera 11.10+ */
background-image: linear-gradient(#74b042, #56A00E);
}
.ui-bar-f,
.ui-bar-f .ui-link-inherit {
@ -142,6 +142,60 @@ dd h4 { margin:15px 0 0 0; }
color: #fff;
font-weight: bold;
}
.ui-btn-up-f {
border: 1px solid #3B6F07;
background: #56A00E;
font-weight: bold;
color: #fff;
text-shadow: 0 -1px 1px #234403;
background-image: -webkit-gradient(linear, left top, left bottom, from(#74b042), to(#56A00E)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(#74b042, #56A00E); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#74b042, #56A00E); /* FF3.6 */
background-image: -ms-linear-gradient(#74b042, #56A00E); /* IE10 */
background-image: -o-linear-gradient(#74b042, #56A00E); /* Opera 11.10+ */
background-image: linear-gradient(#74b042, #56A00E);
}
.ui-btn-up-f a.ui-link-inherit {
color: #fff;
}
.ui-btn-hover-f {
border: 1px solid #3B6F07;
background: #6EBC1F;
font-weight: bold;
color: #fff;
text-shadow: 0 -1px 1px #234403;
background-image: -webkit-gradient(linear, left top, left bottom, from(#8FC963), to(#6EBC1F)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(#8FC963, #6EBC1F); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#8FC963, #6EBC1F); /* FF3.6 */
background-image: -ms-linear-gradient(#8FC963, #6EBC1F); /* IE10 */
background-image: -o-linear-gradient(#8FC963, #6EBC1F); /* Opera 11.10+ */
background-image: linear-gradient(#8FC963, #6EBC1F);
}
.ui-btn-hover-f a.ui-link-inherit {
color: #fff;
}
.ui-btn-down-f {
border: 1px solid #3B6F07;
background: #3d3d3d;
font-weight: bold;
color: #fff;
text-shadow: 0 -1px 1px #234403;
background-image: -webkit-gradient(linear, left top, left bottom, from(#56A00E), to(#64A234)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(#56A00E, #64A234); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(#56A00E, #64A234); /* FF3.6 */
background-image: -ms-linear-gradient(#56A00E, #64A234); /* IE10 */
background-image: -o-linear-gradient(#56A00E, #64A234); /* Opera 11.10+ */
background-image: linear-gradient(#56A00E, #64A234);
}
.ui-btn-down-f a.ui-link-inherit {
color: #fff;
}
.ui-btn-up-f,
.ui-btn-hover-f,
.ui-btn-down-f {
font-family: Helvetica, Arial, sans-serif;
text-decoration: none;
}
@ -181,17 +235,24 @@ dd h4 { margin:15px 0 0 0; }
float: left;
width: 45%;
background: none;
border-top: 0;
}
.content-secondary,
.type-interior .content-secondary {
margin: 30px 0 20px 2%;
padding: 20px 4% 0 0;
background: none;
border-top: none;
}
.type-index .content-secondary {
padding: 0;
}
.content-secondary .ui-collapsible {
margin: 0;
padding: 0;
}
.content-secondary .ui-collapsible-content {
border: none;
}
.type-index .content-secondary .ui-listview {
margin: 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -1,55 +1,60 @@
//set up the theme switcher on the homepage
$('div').live('pagecreate',function(event){
if( !$(this).is('.ui-dialog')){
var appendEl = $(this).find('.ui-footer:last');
if( !appendEl.length ){
appendEl = $(this).find('.ui-content');
}
if( appendEl.is("[data-position]") ){
return;
}
$('<a href="#themeswitcher" data-'+ $.mobile.ns +'rel="dialog" data-'+ $.mobile.ns +'transition="pop">Switch theme</a>')
.buttonMarkup({
'icon':'gear',
'inline': true,
'shadow': false,
'theme': 'd'
})
.appendTo( appendEl )
.wrap('<div class="jqm-themeswitcher">')
.bind( "vclick", function(){
$.themeswitcher();
});
}
});
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
define( function() {
//>>excludeEnd("jqmBuildExclude");
//collapse page navs after use
$(function(){
$('body').delegate('.content-secondary .ui-collapsible-content', 'click', function(){
$(this).trigger("collapse")
$(this).trigger("collapse");
});
});
function setDefaultTransition(){
var winwidth = $( window ).width(),
trans ="slide";
if( winwidth >= 1000 ){
trans = "none";
}
else if( winwidth >= 650 ){
trans = "fade";
}
$.mobile.defaultPageTransition = trans;
// Turn off AJAX for local file browsing
if ( location.protocol.substr(0,4) === 'file' ||
location.protocol.substr(0,11) === '*-extension' ||
location.protocol.substr(0,6) === 'widget' ) {
// Start with links with only the trailing slash and that aren't external links
var fixLinks = function() {
$( "a[href$='/'], a[href='.'], a[href='..']" ).not( "[rel='external']" ).each( function() {
this.href = $( this ).attr( "href" ).replace( /\/$/, "" ) + "/index.html";
});
};
// fix the links for the initial page
$(fixLinks);
// fix the links for subsequent ajax page loads
$(document).bind( 'pagecreate', fixLinks );
// Check to see if ajax can be used. This does a quick ajax request and blocks the page until its done
$.ajax({
url: '.',
async: false,
isLocal: true
}).error(function() {
// Ajax doesn't work so turn it off
$( document ).bind( "mobileinit", function() {
$.mobile.ajaxEnabled = false;
var message = $( '<div>' , {
'class': "ui-footer ui-bar-e",
style: "overflow: auto; padding:10px 15px;",
'data-ajax-warning': true
});
message
.append( "<h3>Note: Navigation may not work if viewed locally</h3>" )
.append( "<p>The AJAX-based navigation used throughout the jQuery Mobile docs may need to be viewed on a web server to work in certain browsers. If you see an error message when you click a link, try a different browser or <a href='https://github.com/jquery/jquery-mobile/wiki/Downloadable-Docs-Help'>view help</a>.</p>" );
$( document ).bind( "pagecreate", function( event ) {
$( event.target ).append( message );
});
});
});
}
$(function(){
setDefaultTransition();
$( window ).bind( "throttledresize", setDefaultTransition );
});
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
});
//>>excludeEnd("jqmBuildExclude");

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Accessibility</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -36,13 +35,14 @@
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Overview</li>
<li><a href="../../docs/about/intro.html">Intro to jQuery Mobile</a></li>
<li><a href="../../docs/about/getting-started.html">Quick start guide</a></li>
<li><a href="../../docs/about/features.html">Features</a></li>
<li data-theme="a"><a href="../../docs/about/accessibility.html">Accessibility</a></li>
<li><a href="../../docs/about/platforms.html">Supported platforms</a></li>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Features</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -26,16 +25,18 @@
<h2>Key features:</h2>
<ul>
<li><strong>Built on jQuery core</strong> for familiar and consistent jQuery syntax and minimal learning curve</li>
<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>
<li><strong>Lightweight size</strong> (~20k compressed for all mobile functionality) and minimal image dependencies for speed.</li>
<li><strong>Built on jQuery core</strong> for familiar and consistent jQuery syntax and minimal learning curve and leverages jQuery UI code and patterns.</li>
<li><strong>Compatible with all major mobile, tablet, e-reader & desktop platforms</strong> - iOS, Android, Blackberry, Palm WebOS, Nokia/Symbian, Windows Phone 7, MeeGo, Opera Mobile/Mini, Firefox Mobile, Kindle, Nook, and all modern browsers with graded levels of support.</li>
<li><strong>Lightweight size</strong> and minimal image dependencies for speed.</li>
<li><strong>Modular architecture</strong> for creating custom builds that are optimized to only include the features needed for a particular application</li>
<li><strong>HTML5 Markup-driven configuration</strong> of pages and behavior for fast development and minimal required scripting.</li>
<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>
<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>
<li><strong>Responsive design</strong> techniques and tools allow the same underlying codebase to automatically scale from smartphone to desktop-sized screens</li>
<li><strong>Powerful Ajax-powered navigation system</strong> to enable animated page transitions while maintaining back button, bookmarking and and clean URLs though pushState. </li>
<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>
<li><strong>Touch and mouse event support</strong> streamline the process of supporting touch, mouse, and cursor focus-based user input methods with a simple API. </li>
<li><strong>UI widgets</strong> enhance native controls with touch-optimized, themable controls. </li>
<li><strong>Powerful theming framework</strong> and ThemeRoller application make highly-branded experiences easy to build.</li>
<li><strong>Unified UI widgets</strong> for common controls enhance native controls with touch-optimized, themable controls that are platform-agnostic and easy to use.</li>
<li><strong>Powerful theming framework</strong> and the <a href="http://www.jquerymobile.com/themeroller" rel="external">ThemeRoller</a> application make highly-branded experiences easy to build.</li>
</ul>
@ -43,13 +44,14 @@
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Overview</li>
<li><a href="../../docs/about/intro.html">Intro to jQuery Mobile</a></li>
<li><a href="../../docs/about/getting-started.html">Quick start guide</a></li>
<li data-theme="a"><a href="../../docs/about/features.html">Features</a></li>
<li><a href="../../docs/about/accessibility.html">Accessibility</a></li>
<li><a href="../../docs/about/platforms.html">Supported platforms</a></li>

View file

@ -0,0 +1,168 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Quick start</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
</head>
<body>
<div data-role="page" class="type-interior">
<div data-role="header" data-theme="f">
<h1>Quick start guide</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<div class="content-primary">
<h2>Getting Started with jQuery Mobile</h2>
<p>jQuery Mobile provides a set of touch-friendly UI widgets and an AJAX-powered navigation system to support animated page transitions. Building your first jQuery Mobile page is easy, here's how:</p>
<h2>Create a basic page template</h2>
<p>Pop open your favorite text editor, paste in the <a href="../pages/page-anatomy.html" id="" title="page-anatomy">page template</a> below, save and open in a browser. You are now a mobile developer!</p>
<p>Here's what's in the template. In the <code>head</code>, a meta <code>viewport</code> tag sets the screen width to the pixel width of the device and references to jQuery, jQuery Mobile and the mobile theme stylesheet from the CDN add all the styles and scripts. </p>
<p>In the <code>body</code>, a div with a <code>data-role</code> of <code>page</code> is the wrapper used to delineate a page, and the header bar (<code>data-role="header"</code>) and content region (<code>data-role="content"</code>) are added inside to create a basic page (these are both optional). These <code>data-</code> attributes are HTML5 attributes are used throughout jQuery Mobile to transform basic markup into an enhanced and styled widget.</p>
<pre><code>
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;My Page&lt;/title&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css&quot; /&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.6.4.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div <strong>data-role=&quot;page&quot;</strong>&gt;
&lt;div <strong>data-role=&quot;header&quot;</strong>&gt;
&lt;h1&gt;My Title&lt;/h1&gt;
&lt;/div&gt;&lt;!-- /header --&gt;
&lt;div <strong>data-role=&quot;content&quot;</strong>&gt;
&lt;p&gt;Hello world&lt;/p&gt;
&lt;/div&gt;&lt;!-- /content --&gt;
&lt;/div&gt;&lt;!-- /page --&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<h2>Add your content</h2>
<p>Inside your content container, you can add all any standard <a href="../content/content-html.html">HTML elements</a> - headings, lists, paragraphs, etc. You can write your own custom styles to create custom layouts by adding an additional stylesheet to the <code>head</code> after the jQuery Mobile stylesheet.</p>
<h2>Make a listview</h2>
<p>jQuery Mobile includes a diverse set of common <a href="../lists/docs-lists.html" id="" title="docs-lists">listviews</a> that are coded as lists with a <code>data-role="listview"</code> added. Here is a simple linked list that has a role of <code>listview</code>. We're going to make this look like an inset module by adding a <code>data-inset="true"</code> and add a dynamic search filter with the <code>data-filter="true"</code> attributes.</p>
<pre><code>
&lt;ul <strong>data-role=&quot;listview&quot; data-inset=&quot;true&quot; data-filter=&quot;true&quot</strong>&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Acura&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Audi&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;BMW&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Cadillac&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Ferrari&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>
<ul data-role="listview" data-inset="true" data-filter="true">
<li><a href="#">Acura</a></li>
<li><a href="#">Audi</a></li>
<li><a href="#">BMW</a></li>
<li><a href="#">Cadillac</a></li>
<li><a href="#">Ferrari</a></li>
</ul>
<h2>Add a slider</h2>
<p>The framework contains a full set of <a href="../forms/forms-all.html">form elements</a> that automatically are enhanced into touch-friendly styled widgets. Here's a slider made with the new HTML5 input type of range, no <code>data-role</code> needed. Be sure to wrap these in a <code>form</code> element and always properly associate a <code>label</code> to every form element.</p>
<pre><code>
&lt;form&gt;
&lt;label for=&quot;slider-0&quot;&gt;Input slider:&lt;/label&gt;
&lt;input <strong>type=&quot;range&quot;</strong> name=&quot;slider&quot; id=&quot;slider-0&quot; value=&quot;25&quot; min=&quot;0&quot; max=&quot;100&quot; /&gt;
&lt;/form&gt;
</code></pre>
<form>
<label for="slider-0">Input slider:</label>
<input type="range" name="slider-1" id="slider-0" value="25" min="0" max="100" />
</form>
<h2>Make a button</h2>
<p>There are a few ways to make <a href="../buttons/buttons-types.html" title="buttons-types">buttons</a>, but lets turn a link into a button so it's easy to click. Just start with a link and add a <code>data-role="button"</code> attribute to it. You can add an <a href="../buttons/buttons-icons.html">icon</a> with the <code>data-icon</code> attribute and optionally set its position with the <code>data-iconpos</code> attribute.</p>
<pre><code>
&lt;a href=&quot;#&quot; <strong>data-role=&quot;button&quot; data-icon=&quot;star&quot;</strong>&gt;Star button&lt;/a&gt;
</code></pre>
<a href="#" data-role="button" data-icon="star">Star button</a>
<h2>Play with theme swatches</h2>
<p>jQuery Mobile has a robust <a href="../api/themes.html" id="">theme framework</a> that supports up to 26 sets of toolbar, content and button colors, called a "swatch". Just add a <code>data-theme="e"</code> attribute to any of the widgets on this page: page, header, list, input for the slider, or button to turn it yellow. Try different swatch letters in default theme from a-e to mix and match swatches. </p>
<p>Cool party trick: add the theme swatch to the page and see how all the widgets inside the content will automatically inherit the theme (headers don't inherit, they default to swatch A).</p>
<code>&lt;a href=&quot;#&quot; data-role=&quot;button&quot; data-icon=&quot;star&quot; <strong>data-theme=&quot;a&quot;</strong>&gt;Button&lt;/a&gt;</code>
<a href="#" data-role="button" data-icon="star" data-theme="a">data-theme="a"</a>
<a href="#" data-role="button" data-icon="star" data-theme="b">data-theme="b"</a>
<a href="#" data-role="button" data-icon="star" data-theme="c">data-theme="c"</a>
<a href="#" data-role="button" data-icon="star" data-theme="d">data-theme="d"</a>
<a href="#" data-role="button" data-icon="star" data-theme="e">data-theme="e"</a>
<p>When you're ready to build a custom theme, use <a href="http://www.jquerymobile.com/themeroller" rel="external">ThemeRoller</a> to drag and drop, then download a custom theme.</p>
<h2>Go forth and build stuff</h2>
<p>This is just scratching the surface of all the cool things you can build with jQuery Mobile with little effort. Be sure to explore <a href="../pages/page-links.html" id="" title="page-links">linking pages</a>, <a href="../pages/page-transitions.html" id="" title="page-transitions">adding animated page transitions</a>, and <a href="../pages/page-dialogs.html" id="" title="page-dialogs">creating dialogs</a>. Use the <a href="../api/data-attributes.html" id="" title="data-attributes">data-attribute reference</a> to try out some of the other <code>data-</code> attributes you can play with. </p>
<p><strong>More of a developer?</strong> Great, forget everything we just covered (kidding). If you don't want to use the <code>data-</code> attribute configuration system, you can take full control of everything and call plugins directly because these are all just standard jQuery plugins built with the UI widget factory. Be sure to dig into <a href="../api/globalconfig.html" id="" title="globalconfig">global configuration</a>, <a href="../api/events.html" id="" title="events">events</a>, and <a href="../api/methods.html" id="" title="methods">methods</a>. Then read up on <a href="../pages/page-scripting.html" id="" title="page-scripting">scripting pages</a>, <a href="../pages/page-dynamic.html" id="" title="page-dynamic">generating dynamic pages</a>, and <a href="../pages/phonegap.html" id="" title="phonegap">building PhoneGap apps</a>.</p>
</div><!--/content-primary -->
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Overview</li>
<li><a href="../../docs/about/intro.html">Intro to jQuery Mobile</a></li>
<li data-theme="a"><a href="../../docs/about/getting-started.html">Quick start guide</a></li>
<li><a href="../../docs/about/features.html">Features</a></li>
<li><a href="../../docs/about/accessibility.html">Accessibility</a></li>
<li><a href="../../docs/about/platforms.html">Supported platforms</a></li>
</ul>
</div>
</div>
</div><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>
</div><!-- /page -->
</body>
</html>

View file

@ -1,16 +1,15 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Mobile Framework - About</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
</head>
<body>
<div data-role="page" class="type-index">
@ -25,6 +24,7 @@
<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="f">
<li data-role="list-divider">Overview</li>
<li><a href="intro.html">Intro to jQuery Mobile</a></li>
<li><a href="getting-started.html">Quick start guide</a></li>
<li><a href="features.html">Features</a></li>
<li><a href="accessibility.html">Accessibility</a></li>
<li><a href="platforms.html">Supported platforms</a></li>
@ -34,4 +34,4 @@
</div>
</body>
</html>
</html>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Intro</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -34,19 +33,19 @@
<p>To make this broad support possible, all pages in jQuery Mobile are built on a foundation of <strong>clean, semantic HTML</strong> to ensure compatibility with pretty much any web-enabled device. In devices that interpret CSS and JavaScript, jQuery Mobile applies <strong>progressive enhancement techniques</strong> to unobtrusively transform the semantic page into a rich, interactive experience that leverages the power of jQuery and CSS. <strong>Accessibility features</strong> such as WAI-ARIA are tightly integrated throughout the framework to provide support for screen readers and other assistive technologies.</p>
<img src="../_assets/images/ipad-palm.png" alt="Smartphone and tablet designs" style="max-width:100%; margin-top:20px;">
</div><!--/content-primary -->
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Overview</li>
<li data-theme="a"><a href="../../docs/about/intro.html">Intro to jQuery Mobile</a></li>
<li><a href="../../docs/about/getting-started.html">Quick start guide</a></li>
<li><a href="../../docs/about/features.html">Features</a></li>
<li><a href="../../docs/about/accessibility.html">Accessibility</a></li>
<li><a href="../../docs/about/platforms.html">Supported platforms</a></li>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Supported platforms</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -24,62 +23,60 @@
<div class="content-primary">
<h2 id="platforms">Platform support in Beta 3</h2>
<p>As of Beta 3, we've pretty much covered our target platforms for 1.0. 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>
<h2 id="platforms">jQuery Mobile Supported Platforms</h2>
<p>jQuery Mobile has broad support for the vast majority of all modern desktop, smartphone, tablet, and e-reader platforms. In addition, feature phones and older browsers are 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>
<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>
<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>
<p>We use a 3-level graded platform support system: A (full), B (full minus Ajax), C (basic). The visual fidelity of the experience is highly dependent on the 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.</p>
<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>
<ul>
<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>
<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). Functional on 1.5 &amp; 1.6 but performance may be sluggish, tested on Google G1 (1.5)</li>
<li><strong>Android Honeycomb</strong>- Tested on the Samsung Galaxy Tab 10.1</li>
<li><strong>Windows Phone 7</strong>: Tested on the HTC 7 Surround</li>
<li><strong>Blackberry 6.0</strong>: Tested on the Torch 9800 and Style 9670</li>
<li><strong>Blackberry 7</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>
<li><strong>Blackberry Playbook</strong>: Tested on PlayBook version 1.0.1 / 1.0.5</li>
<li><strong>Palm WebOS (1.4-2.0)</strong>: Tested on the Palm Pixi (1.4), Pre (1.4), Pre 2 (2.0)</li>
<li><strong>Palm WebOS 3.0 </strong>- Tested on HP TouchPad</li>
<li><strong>Firebox Mobile (Beta)</strong>: Tested on Android 2.2</li>
<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>
<li><strong>Kindle 3</strong>: Tested on the built-in WebKit browser included in the Kindle 3 device</li>
<li><strong>Chrome <strong>Desktop </strong>11-13</strong> - Tested on OS X 10.6.7 and Windows 7</li>
<li><strong>Firefox Desktop 3.6-4.0</strong> - Tested on OS X 10.6.7 and Windows 7</li>
<li><strong>Apple iOS 3.2-5.0</strong> - Tested on the original iPad (4.3 / 5.0), iPad 2 (4.3), original iPhone (3.1), iPhone 3 (3.2), 3GS (4.3), and 4 (4.3 / 5.0)</li>
<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). Functional on 1.5 &amp; 1.6 but performance may be sluggish, tested on Google G1 (1.5)</li>
<li><strong>Android Honeycomb</strong>- Tested on the Samsung Galaxy Tab 10.1 and Motorola XOOM</li>
<li><strong>Windows Phone 7-7.5</strong> - Tested on the HTC Surround (7.0) HTC Trophy (7.5), and LG-E900 (7.5)</li>
<li><strong>Blackberry 6.0</strong> - Tested on the Torch 9800 and Style 9670</li>
<li><strong>Blackberry 7</strong> - Tested on BlackBerry® Torch 9810</li>
<li><strong>Blackberry Playbook</strong> - Tested on PlayBook version 1.0.1 / 1.0.5</li>
<li><strong>Palm WebOS (1.4-2.0)</strong> - Tested on the Palm Pixi (1.4), Pre (1.4), Pre 2 (2.0)</li>
<li><strong>Palm WebOS 3.0 </strong> - Tested on HP TouchPad</li>
<li><strong>Firebox Mobile (Beta)</strong> - Tested on Android 2.2</li>
<li><strong>Opera Mobile 11.0</strong>: Tested on Android 2.2</li>
<li><strong>Meego 1.2</strong> - Tested on Nokia 950 and N9</li>
<li><strong>Kindle 3 and Fire</strong>: Tested on the built-in WebKit browser for each</li>
<li><strong>Chrome <strong>Desktop </strong>11-15</strong> - Tested on OS X 10.6.7 and Windows 7</li>
<li><strong>Firefox Desktop 4-8</strong> - Tested on OS X 10.6.7 and Windows 7</li>
<li><strong>Internet Explorer 7-9</strong> - Tested on Windows XP, Vista and 7 (minor CSS issues)</li>
<li><strong>Opera Desktop 10-11</strong> - Tested on OS X 10.6.7 and Windows 7</li>
<li><strong>Samsung Bada</strong> - Tested on the device's stock Dolphin Browser</li>
<li><strong>Android UCWeb</strong> - Tested on Android 2.3</li>
</ul>
<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>
<ul>
<li><strong>Blackberry 5.0</strong>: Tested on the Storm 2 9550, Bold 9770</li>
<li><strong>Opera Mini (5.0-6.0)</strong> - Tested on iOS 3.2/4.3</li>
<li><strong>Windows Phone 6.5</strong> - Tested on the HTC</li>
<li><strong>Nokia Symbian^3 </strong>- Tested on Nokia N8 (Symbian^3), C7 (Symbian^3), also works on N97 (Symbian^1)</li>
</ul>
<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>
<ul>
<li><strong>Blackberry4.x</strong>: Tested on the Curve 8330</li>
<li><strong>Blackberry 4.x</strong> - Tested on the Curve 8330</li>
<li><strong>Windows Mobile</strong> - Tested on the HTC Leo (WInMo 5.2)</li>
<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>
</ul>
<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>
<ul>
<li><strong>Meego</strong> - Originally a target platform, but Nokia decision to relegate this platform to "experimental", we are considering dropping support.</li>
<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>
</ul>
</div>
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Overview</li>
<li><a href="../../docs/about/intro.html">Intro to jQuery Mobile</a></li>
<li><a href="../../docs/about/getting-started.html">Quick start guide</a></li>
<li><a href="../../docs/about/features.html">Features</a></li>
<li><a href="../../docs/about/accessibility.html">Accessibility</a></li>
<li data-theme="a"><a href="../../docs/about/platforms.html">Supported platforms</a></li>

View file

@ -0,0 +1,460 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Data Attribute Reference</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
</head>
<body>
<div data-role="page" class="type-interior">
<div data-role="header" data-theme="f">
<h1>Data Attributes</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content" data-theme="c">
<div class="content-primary">
<h2>Data- attribute reference</h2>
<p>The jQuery Mobile framework uses HTML5 <code>data-</code> attributes to allow for markup-based initialization and configuration of widgets. These attributes are completely optional; calling plugins manually and passing options directly is also supported. To avoid naming conflicts with other plugins or frameworks that also use <code>data-</code> attributes, set a custom namespace by modifying the <a href="globalconfig.html"><code>ns</code> global option</a>.<p>
<style>
table { width:100%; border-bottom:1px solid #ccc; }
th { text-align:left; width: 170px; }
th, td { vertical-align:top; border-top:1px solid #ccc; padding: 6px 10px 4px 0; }
</style>
<h2><a href="../buttons/buttons-types.html">Button</a></h2>
<p>Links with <code>data-role="button"</code>. Input-based buttons and button elements are auto-enhanced, no <code>data-role</code> required</p>
<table>
<tr>
<th>data-corners</th>
<td><strong>true</strong> | false</td>
</tr>
<tr>
<th>data-icon</th>
<td>home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search</td>
</tr>
<tr>
<th>data-iconpos</th>
<td><strong>left</strong> | right | top | bottom | notext</td>
</tr>
<tr>
<th>data-iconshadow</th>
<td><strong>true</strong> | false</td>
</tr>
<tr>
<th>data-inline</th>
<td>true | <strong>false</strong></td>
</tr>
<tr>
<th>data-shadow</th>
<td><strong>true</strong> | false</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z)</td>
</tr>
</table>
<p>Multiple buttons can be wrapped in a container with a <code>data-role="controlgroup"</code> attribute for a vertically grouped set. Add the <code>data-type="horizontal"</code> attribute for the buttons to sit side-by-side.</p>
<h2><a href="../forms/checkboxes/">Checkbox</a></h2>
<p>Pairs of labels and inputs with <code>type="checkbox"</code> are auto-enhanced, no <code>data-role</code> required</p>
<table>
<tr>
<th>data-role</th>
<td>none (prevents auto-enhancement to use native control)</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z) - Added to the form element</td>
</tr>
</table>
<h2><a href="../content/content-collapsible.html">Collapsible</a></h2>
<p>A heading and content wrapped in a container with the <code>data-role="collapsible"</code></p>
<table>
<tr>
<th>data-collapsed</th>
<td><strong>true</strong> | false</td>
</tr>
<tr>
<th>data-content-theme</th>
<td>swatch letter (a-z)</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z)</td>
</tr>
</table>
<h2><a href="../content/content-collapsible-set.html">Collapsible set</a></h2>
<p>A number of collapsibles wrapped in a container with the <code>data-role="collapsible-set"</code></p>
<table>
<tr>
<th>data-content-theme</th>
<td>swatch letter (a-z) - Sets all collapsibles in set</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z) - Sets all collapsibles in set</td>
</tr>
</table>
<h2><a href="../pages/page-dialogs.html">Dialog</a></h2>
<p>Page with <code>data-role="page"</code> linked to with <code>data-rel="dialog"</code> on the anchor.</p>
<table>
<tr>
<th>data-close-btn-text</th>
<td>string (text for the close button, dialog only)</td>
</tr>
<tr>
<th>data-dom-cache</th>
<td>true | <strong>false</strong></td>
</tr>
<tr>
<th>data-fullscreen</th>
<td>true | false (used in conjunction with fixed toolbars)</td>
</tr>
<tr>
<th>data-overlay-theme</th>
<td>swatch letter (a-z) - overlay theme when the page is opened in a dialog</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z)</td>
</tr>
<tr>
<th>data-title</th>
<td>string (title used when page is shown)</td>
</tr>
</table>
<h2><a href="../pages/page-anatomy.html">Content</a></h2>
<p>Container with <code>data-role="content"</code></p>
<table>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z)</td>
</tr>
</table>
<h2><a href="../forms/docs-forms.html">Field container</a></h2>
<p>Container with <code>data-role="fieldcontain"</code> wrapped around label/form element pair</p>
<h2><a href="../forms/switch/">Flip toggle switch</a></h2>
<p>Select with <code>data-role="slider"</code>, two options only</p>
<table>
<tr>
<th>data-role</th>
<td>none (prevents auto-enhancement to use native control)</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z) - Added to the form element</td>
</tr>
<tr>
<th>data-track-theme</th>
<td>swatch letter (a-z) - Added to the form element</td>
</tr>
</table>
<h2><a href="../toolbars/docs-footers.html">Footer</a></h2>
<p>Container with <code>data-role="footer"</code></p>
<table>
<tr>
<th>data-id</th>
<td>string (unique id, useful in persistent footers)</td>
</tr>
<tr>
<th>data-position</th>
<td>fixed</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z)</td>
</tr>
</table>
<h2><a href="../toolbars/docs-headers.html">Header</a></h2>
<p>Container with <code>data-role="header"</code></p>
<table>
<tr>
<th>data-position</th>
<td>fixed</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z)</td>
</tr>
</table>
<h2><a href="../pages/page-links.html">Link</a></h2>
<p>Links, including those with a <code>data-role="button"</code>, and form submit buttons share these attributes</p>
<table>
<tr>
<th>data-ajax</th>
<td><strong>true</strong> | false</td>
</tr>
<tr>
<th>data-direction</th>
<td>reverse (reverse page transition animation)</td>
</tr>
<tr>
<th>data-dom-cache</th>
<td>true | <strong>false</strong></td>
</tr>
<tr>
<th>data-prefetch</th>
<td>true | <strong>false</strong></td>
</tr>
<tr>
<th>data-rel</th>
<td>back (to move one step back in history)<br />
dialog (to open link styled as dialog, not tracked in history)<br />
external (for linking to another domain)</td>
</tr>
<tr>
<th>data-transition</th>
<td><strong>slide</strong> | slideup | slidedown | pop | fade | flip</td>
</tr>
</table>
<h2><a href="../lists/docs-lists.html">Listview</a></h2>
<p>OL or UL with <code>data-role="listview"</code></p>
<table>
<tr>
<th>data-count-theme</th>
<td>swatch letter (a-z)</td>
</tr>
<tr>
<th>data-dividertheme</th>
<td>swatch letter (a-z)</td>
</tr>
<tr>
<th>data-filter</th>
<td>true | <strong>false</strong></td>
</tr>
<tr>
<th>data-filter-placeholder</th>
<td>string</td>
</tr>
<tr>
<th>data-filter-theme</th>
<td>swatch letter (a-z)</td>
</tr>
<tr>
<th>data-inset</th>
<td>true | <strong>false</strong></td>
</tr>
<tr>
<th>data-split-icon</th>
<td>home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search</td>
</tr>
<tr>
<th>data-split-theme</th>
<td>swatch letter (a-z)<td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z)</td>
</tr>
</table>
<h2><a href="../lists/docs-lists.html">Listview item</a></h2>
<p>LI within a listview</p>
<table>
<tr>
<th>data-filtertext</th>
<td>string (filter by this value instead of inner text)</td>
</tr>
<tr>
<th>data-icon</th>
<td>home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search</td>
</tr>
<tr>
<th>data-role</th>
<td>list-divider</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z) - can also be set on individual LIs</td>
</tr>
</table>
<h2><a href="../toolbars/docs-navbar.html">Navbar</a></h2>
<p>A number of LIs wrapped in a container with <code>data-role="navbar"</code></p>
<table>
<tr>
<th>data-icon</th>
<td>home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search</td>
</tr>
<tr>
<th>data-iconpos</th>
<td><strong>left</strong> | right | top | bottom | notext</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z) - can also be set on individual LIs</td>
</tr>
</table>
<h2><a href="../pages/page-anatomy.html">Page</a></h2>
<p>Container with <code>data-role="page"</code></p>
<table>
<tr>
<th>data-add-back-btn</th>
<td>true | <strong>false</strong> (auto add back button, header only)</td>
</tr>
<tr>
<th>data-back-btn-text</th>
<td>string</td>
</tr>
<tr>
<th>data-back-btn-theme</th>
<td>swatch letter (a-z)</td>
</tr>
<tr>
<th>data-close-btn-text</th>
<td>string (text for the close button, dialog only)</td>
</tr>
<tr>
<th>data-dom-cache</th>
<td>true | <strong>false</strong></td>
</tr>
<tr>
<th>data-fullscreen</th>
<td>true | false (used in conjunction with fixed toolbars)</td>
</tr>
<tr>
<th>data-overlay-theme</th>
<td>swatch letter (a-z) - overlay theme when the page is opened in a dialog</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z)</td>
</tr>
<tr>
<th>data-title</th>
<td>string (title used when page is shown)</td>
</tr>
</table>
<h2><a href="../forms/radiobuttons/">Radio button</a></h2>
<p>Pairs of labels and inputs with <code>type="radio"</code> are auto-enhanced, no <code>data-role</code> required</p>
<table>
<tr>
<th>data-role</th>
<td>none (prevents auto-enhancement to use native control)</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z) - Added to the form element</td>
</tr>
</table>
<h2><a href="../forms/selects/">Select</a></h2>
<p>All <code>select</code> form elements are auto-enhanced, no <code>data-role</code> required</p>
<table>
<tr>
<th>data-icon</th>
<td>home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search</td>
</tr>
<tr>
<th>data-iconpos</th>
<td><strong>left</strong> | right | top | bottom | notext</td>
</tr>
<tr>
<th>data-inline</th>
<td>true | <strong>false</strong></td>
</tr>
<tr>
<th>data-native-menu</th>
<td><strong>true</strong> | false</td>
</tr>
<tr>
<th>data-overlay-theme</th>
<td>swatch letter (a-z) - overlay theme for non-native selects</td>
</tr>
<tr>
<th>data-placeholder</th>
<td>true | false - Add to the Option</td>
</tr>
<tr>
<th>data-role</th>
<td>none (prevents auto-enhancement to use native control)</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z) - Added to the form element</td>
</tr>
</table>
<p>Multiple selects can be wrapped in a fieldset with a <code>data-role="controlgroup"</code> attribute for a vertically grouped set. Add the <code>data-type="horizontal"</code> attribute for the selects to sit side-by-side.</p>
<h2><a href="../forms/slider/">Slider</a></h2>
<p>Inputs with <code>type="range"</code> are auto-enhanced, no <code>data-role</code> required</p>
<table>
<tr>
<th>data-role</th>
<td>none (prevents auto-enhancement to use native control)</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z) - Added to the form element</td>
</tr>
<tr>
<th>data-track-theme</th>
<td>swatch letter (a-z) - Added to the form element</td>
</tr>
</table>
<h2><a href="../forms/textinputs/">Text input &amp; Textarea</a></h2>
<p>Input <code>type="text|number|search|etc."</code> or <code>textarea</code> elements are auto-enhanced, no <code>data-role</code> required</p>
<table>
<tr>
<th>data-role</th>
<td>none (prevents auto-enhancement to use native control)</td>
</tr>
<tr>
<th>data-theme</th>
<td>swatch letter (a-z) - Added to the form element</td>
</tr>
</table>
</div><!--/content -->
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">API</li>
<li><a href="../../docs/api/globalconfig.html">Configuring defaults</a></li>
<li><a href="../../docs/api/events.html">Events</a></li>
<li><a href="../../docs/api/methods.html">Methods &amp; Utilities</a></li>
<li data-theme="a"><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
<li><a href="../../docs/api/themes.html">Theme framework</a></li>
</ul>
</div>
</div>
</div><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>
</div><!-- /page -->
</body>
</html>

View file

@ -1,17 +1,16 @@
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Events</title>
<link rel="stylesheet" href="../../themes/default/" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Events</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
</head>
<body>
<div data-role="page" class="type-interior">
@ -24,19 +23,27 @@
<div class="content-primary">
<p>jQuery Mobile offers several custom events that build upon native events to create useful hooks for development. Note that these events employ various touch, mouse, and window events, depending on event existence, so you can bind to them for use in both handheld and desktop environments. You can bind to these events like you would with other jQuery events, using <code>live()</code> or <code>bind()</code>.</p>
<div class="ui-body ui-body-e">
<h4 style="margin:.5em 0">Important: Use pageCreate(), not $(document).ready()</h4>
The first thing you learn in jQuery is to call code inside the $(document).ready() function so everything will execute as soon as the DOM is loaded. However, in jQuery Mobile, Ajax is used to load the contents of each page into the DOM as you navigate, and the DOM ready handler only executes for the first page. To execute code whenever a new page is loaded and created, you can bind to the <code><strong>pagecreate</strong></code> event. This event is explained in detail at the bottom of this page.</div>
<h4 style="margin:.5em 0">Important: Use <code>pageInit()</code>, not <code>$(document).ready()</code></h4>
<p>The first thing you learn in jQuery is to call code inside the <code>$(document).ready()</code> function so everything will execute as soon as the DOM is loaded. However, in jQuery Mobile, Ajax is used to load the contents of each page into the DOM as you navigate, and the DOM ready handler only executes for the first page. To execute code whenever a new page is loaded and created, you can bind to the <code>pageinit</code> event. This event is explained in detail at the bottom of this page.</p></div>
<p> &nbsp;</p>
<div class="ui-body ui-body-e">
<h4 style="margin:.5em 0">Important: <code>pageCreate()</code> vs <code>pageInit()</code></h4>
<p> Prior to Beta 2 the recommendation to users wishing to manipulate jQuery Mobile enhanced page and child widget markup was to bind to the <code>pagecreate</code> event. In Beta 2 an internal change was made to decouple each of the widgets by binding to the <code>pagecreate</code> event in place of direct calls to the widget methods. As a result, users binding to the <code>pagecreate</code> in <code>mobileinit</code> would find their binding executing before the markup had been enhanced by each of the plugins. In keeping with the lifecycle of the jQuery UI Widget Factory, the initialization method is invoked <strong>after</strong> the create method, so the <code>pageinit</code> event provides the correct timing for post enhancement manipulation of the DOM and/or Javascript objects.
In short, if you were previously using <code>pagecreate</code> to manipulate the enhanced markup before the page was shown, it's very likely you'll want to migrate to 'pageinit'.
</p></div>
<h2>Touch events</h2>
<dl>
<dt><code>tap</code></dt>
<dd>Triggers after a quick, complete touch event.</dd>
<dt><code>taphold</code></dt>
<dd>Triggers after a held complete touch event (close to one second).</dd>
<dt><code>swipe</code></dt>
<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>
<ul>
@ -46,19 +53,58 @@
<li><code>verticalDistanceThreshold</code> (default: 75px) Swipe vertical displacement must be less than this.</li>
</ul>
</dd>
<dt><code>swipeleft</code></dt>
<dd>Triggers when a swipe event occurred moving in the left direction.</dd>
<dt><code>swiperight</code></dt>
<dd>Triggers when a swipe event occurred moving in the right direction.</dd>
</dl>
<h2>Virtual mouse events</h2>
<p>We provide a set of "virtual" mouse events that attempt to abstract away 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. In touch environments, the plugin retains the order of event firing that is seen in traditional mouse environments, so for example, vmouseup is always dispatched before vmousedown, and vmousedown before vclick, etc. The virtual mouse events also normalize how coordinate information is extracted from the event, so in touch based environments, coordinates are available from the pageX, pageY, screenX, screenY, clientX, and clientY properties, directly on the event object.</p>
<dl>
<dt><code>vmouseover</code></dt>
<dd>Normalized event for handling touch or <code>mouseover</code> events</dd>
<dt><code>vmousedown</code></dt>
<dd>Normalized event for handling touchstart or <code>mousedown</code> events</dd>
<dt><code>vmousemove</code></dt>
<dd>Normalized event for handling touchmove or <code>mousemove</code> events</dd>
<dt><code>vmouseup</code></dt>
<dd>Normalized event for handling touchend or <code>mouseup</code> events</dd>
<dt><code>vclick</code></dt>
<dd>Normalized event for handling touchend or mouse <code>click</code> events. On touch devices, this event is dispatched *AFTER* vmouseup. </dd>
<dt><code>vmousecancel</code></dt>
<dd>Normalized event for handling touch or mouse <code>mousecancel</code> events</dd>
</dl>
<div class="ui-body ui-body-e">
<h4 style="margin:.5em 0">Warning: Use vclick with caution</h4>
<p> Use vclick with caution on touch devices. Webkit based browsers synthesize <code>mousedown</code>, <code>mouseup</code>, and <code>click</code> events roughly 300ms after the <code>touchend</code> event is dispatched. The target of the synthesized mouse events are calculated at the time they are dispatched and are based on the location of the touch events and, in some cases, the implementation specific heuristics which leads to different target calculations on different devices and even different OS versions for the same device. This means the target element within the original touch events could be different from the target element within the synthesized mouse events.</p>
<p>We recommend using <code>click</code> instead of <code>vclick</code> anytime the action being triggered has the possibility of changing the content underneath the point that was touched on screen. This includes page transitions and other behaviors such as collapse/expand that could result in the screen shifting or content being completely replaced.</p>
</div>
<p>&nbsp;</p>
<div class="ui-body ui-body-e">
<h4 style="margin:.5em 0">Canceling an elements default click behavior</h4>
<p>Applications can call <code>preventDefault()</code> on a <code>vclick</code> event to cancel an element's default click behavior. On mouse based devices, calling <code>preventDefault()</code> on a <code>vclick</code> event equates to calling <code>preventDefault()</code> on the real <code>click</code> event during the bubble event phase. On touch based devices, it's a bit more complicated since the actual <code>click</code> event is dispatched about 300ms after the <code>vclick</code> event is dispatched. For touch devices, calling <code>preventDefault()</code> on a <code>vclick</code> event triggers some code in the vmouse plugin that attempts to catch the next <code>click</code> event that gets dispatched by the browser, during the capture event phase, and calls <code>preventDefault()</code> and <code>stopPropagation()</code> on it. As mentioned in the warning above, it is sometimes difficult to match up a touch event with its corresponding mouse event because the targets can differ. For this reason, the vmouse plugin also falls back to attempting to identify a corresponding <code>click</code> event by coordinates. There are still cases where both target and coordinate identification fail, which results in the <code>click</code> event being dispatched and either triggering the default action of the element, or in the case where content has been shifted or replaced, triggering a click on a different element. If this happens on a regular basis for a given element/control, we suggest you use <code>click</code> for triggering your action.</p>
</div>
<h2>Orientation change event</h2>
<dl>
<dt><code>orientationchange</code></dt>
<dd>Triggers when a device orientation changes (by turning it vertically or horizontally). When bound to this event, your callback function can leverage a second argument, which contains an <code>orientation</code> property equal to either "portrait" or "landscape". These values are also added as classes to the HTML element, allowing you to leverage them in your CSS selectors. Note that we currently bind to the resize event when orientationChange is not natively supported.</dd>
<dd>Triggers when a device orientation changes (by turning it vertically or horizontally). When bound to this event, your callback function can leverage a second argument, which contains an <code>orientation</code> property equal to either "portrait" or "landscape". These values are also added as classes to the HTML element, allowing you to leverage them in your CSS selectors. Note that we currently bind to the resize event when <code>orientationchange</code> is not natively supported, or when <code>$.mobile.orientationChangeEnabled</code> is set to false.</dd>
<div class="ui-body ui-body-e">
<h4>orientationchange timing</h4>
<p> The timing of the <code>orientationchange</code> with relation to the change of the client height and width is different between browsers, though the current implementation will give you the correct value for <code>event.orientation</code> derived from <code>window.orientation</code>. This means that if your bindings are dependent on the height and width values you may want to disable <code>orientationChange</code> all together with <code>$.mobile.orientationChangeEnabled = false</code> to let the fallback resize code trigger your bindings.</p>
</div>
</dl>
<h2>Scroll events</h2>
<dl>
<dt><code>scrollstart</code></dt>
@ -67,128 +113,399 @@
<dl>
<dt><code>scrollstop</code></dt>
<dd>Triggers when a scroll finishes.</dd>
</dl>
<h2>Page show/hide events</h2>
<p>Whenever a page is shown or hidden in jQuery Mobile, two events are triggered on that page. The events triggered depend on whether that page is being shown or hidden, so when a page transition occurs, there are actually 4 events triggered: 2 for each page. </p>
</dl>
<h2>Page load events</h2>
<p>Whenever an external page is loaded into the application DOM, 2 events are fired. The first is <code>pagebeforeload</code>. The 2nd event will be either <code>pageload</code> or <code>pageloadfailed</code>.</p>
<dl>
<dt><code>pagebeforeload</code></dt>
<dd><p>Triggered before any load request is made. Callbacks bound to this event can call <code>preventDefault()</code> on the event to indicate that they are handling the load request. Callbacks that do this *MUST* make sure they call <code>resolve()</code> or <code>reject()</code> on the deferred object reference contained in the data object passed to the callback.</p>
<p>The data object, passed as the 2nd arg to the callback function contains the following properties:</p>
<ul>
<li><code>url</code> (string)
<ul>
<li>The absolute or relative URL that was passed into $.mobile.loadPage() by the caller.</li>
</ul>
</li>
<li><code>absUrl</code> (string)
<ul>
<li>The absolute version of the url. If url was relative, it is resolved against the url used to load the current active page.</li>
</ul>
</li>
<li><code>dataUrl</code> (string)
<ul>
<li>The filtered version of absUrl to be used when identifying the page and updating the browser location when the page is made active.</li>
</ul>
</li>
<li><code>deferred</code> (object)
<ul>
<li>Callbacks that call preventDefault() on the event, *MUST* call resolve() or reject() on this object so that changePage() requests resume processing. Deferred object observers expect the deferred object to be resolved like this:</p>
<pre><code>
$( document ).bind( &quot;pagebeforeload&quot;, function( event, data ){
// Let the framework know we're going to handle the load.
event.preventDefault();
// ... load the document then insert it into the DOM ...
// at some point, either in this callback, or through
// some other async means, call resolve, passing in
// the following args, plus a jQuery collection object
// containing the DOM element for the page.
data.deferred.resolve( data.absUrl, data.options, page );
});</code></pre>
<p>or rejected like this:
<pre><code>
$( document ).bind( &quot;pagebeforeload&quot;, function( event, data ){
// Let the framework know we're going to handle the load.
event.preventDefault();
// ... load the document then insert it into the DOM ...
// at some point, if the load fails, either in this
// callback, or through some other async means, call
// reject like this:
data.deferred.reject( data.absUrl, data.options );
});</code></pre>
</li>
</ul>
</li>
<li><code>options</code> (object)
<ul>
<li>This object contains the options that were passed into $.mobile.loadPage().</li>
</ul>
</li>
</ul>
</dd>
<dt><code>pageload</code></dt>
<dd>Triggered after the page is successfully loaded and inserted into the DOM. Callbacks bound to this event will be passed a data object as its 2nd arg. This object contains the following information:
<ul>
<li><code>url</code> (string)
<ul>
<li>The absolute or relative URL that was passed into $.mobile.loadPage() by the caller.</li>
</ul>
</li>
<li><code>absUrl</code> (string)
<ul>
<li>The absolute version of the url. If url was relative, it is resolved against the url used to load the current active page.</li>
</ul>
</li>
<li><code>dataUrl</code> (string)
<ul>
<li>The filtered version of absUrl to be used when identifying the page and updating the browser location when the page is made active.</li>
</ul>
</li>
<li><code>options</code> (object)
<ul>
<li>This object contains the options that were passed into $.mobile.loadPage().</li>
</ul>
</li>
<li><code>xhr</code> (object)
<ul>
<li>The jQuery XMLHttpRequest object used when attempting to load the page. This is what gets passed as the 3rd argument to the framework's $.ajax() success callback.</li>
</ul>
</li>
<li><code>textStatus</code> (null or string)
<ul>
<li>According to the jQuery Core <a href="http://api.jquery.com/jQuery.ajax/">documentation</a>, this will be a string describing the status. This is what gets passed as the 2nd argument to the framework's $.ajax() error callback.</li>
</ul>
</li>
</ul>
</dd>
<dt><code>pageloadfailed</code></dt>
<dd>Triggered if the page load request failed. By default, after dispatching this event, the framework will display a page failed message and call reject() on the deferred object contained within the event's data object. Callbacks can prevent this default behavior from executing by calling preventDefault() on the event.
<p>The data object, passed as the 2nd arg to the callback function contains the following properties:</p>
<ul>
<li><code>url</code> (string)
<ul>
<li>The absolute or relative URL that was passed into $.mobile.loadPage() by the caller.</li>
</ul>
</li>
<li><code>absUrl</code> (string)
<ul>
<li>The absolute version of the url. If url was relative, it is resolved against the url used to load the current active page.</li>
</ul>
</li>
<li><code>dataUrl</code> (string)
<ul>
<li>The filtered version of absUrl to be used when identifying the page and updating the browser location when the page is made active.</li>
</ul>
</li>
<li><code>deferred</code> (object)
<ul>
<li>Callbacks that call preventDefault() on the event, *MUST* call resolve() or reject() on this object so that changePage() requests resume processing. Deferred object observers expect the deferred object to be resolved like this:</p>
<pre><code>
$( document ).bind( &quot;pageloadfailed&quot;, function( event, data ){
// Let the framework know we're going to handle things.
event.preventDefault();
// ... attempt to load some other page ...
// at some point, either in this callback, or through
// some other async means, call resolve, passing in
// the following args, plus a jQuery collection object
// containing the DOM element for the page.
data.deferred.resolve( data.absUrl, data.options, page );
});</code></pre>
<p>or rejected like this:
<pre><code>
$( document ).bind( &quot;pageloadfailed&quot;, function( event, data ){
// Let the framework know we're going to handle things.
event.preventDefault();
// ... attempt to load some other page ...
// at some point, if the load fails, either in this
// callback, or through some other async means, call
// reject like this:
data.deferred.reject( data.absUrl, data.options );
});</code></pre>
</li>
</ul>
</li>
<li><code>options</code> (object)
<ul>
<li>This object contains the options that were passed into $.mobile.loadPage().</li>
</ul>
</li>
<li><code>xhr</code> (object)
<ul>
<li>The jQuery XMLHttpRequest object used when attempting to load the page. This is what gets passed as the first argument to the framework's $.ajax() error callback.</li>
</ul>
</li>
<li><code>textStatus</code> (null or string)
<ul>
<li>According to the jQuery Core <a href="http://api.jquery.com/jQuery.ajax/">documentation</a>, possible values for this property, aside from null, are &quot;timeout&quot;, &quot;error&quot;, &quot;abort&quot;, and &quot;parsererror&quot;. This is what gets passed as the 2nd argument to the framework's $.ajax() error callback.</li>
</ul>
</li>
<li><code>errorThrown</code> (null, string, object)
<ul>
<li>According to the jQuery Core <a href="http://api.jquery.com/jQuery.ajax/">documentation</a>, this property may be an exception object if one occured, or if an HTTP error occured this will be set to the textual portion of the HTTP status. This is what gets passed as the 3rd argument to the framework's $.ajax() error callback.</li>
</ul>
</li>
</ul>
</dd>
</dl>
<h2>Page change events</h2>
<p>Navigating between pages in the application is usually accomplished through a call to <code>$.mobile.changePage()</code>. This function is responsible for making sure that the page we are navigating to is loaded and inserted into the DOM, and then kicking off the transition animations between the current active page, and the page the caller wants to to make active. During this process, which is usually asynchronous, changePage() will fire off 2 events. The first is <code>pagebeforechange</code>. The second event depends on the success or failure of the change request. It will either be <code>pagechange</code> or <code>pagechangefailed</code>.</p>
<dl>
<dt><code>pagebeforechange</code></dt>
<dd>This event is triggered prior to any page loading or transition. Callbacks can prevent execution of the changePage() function by calling preventDefault on the event object passed into the callback. The callback also recieves a data object as its 2nd arg. The data object has the following properties:
<ul>
<li><code>toPage</code> (object or string)
<ul>
<li>This property represents the page the caller wishes to make active. It can be either a jQuery collection object containing the page DOM element, or an absolute/relative url to an internal or external page. The value exactly matches the 1st arg to the changePage() call that triggered the event.</li>
</ul>
</li>
<li><code>options</code> (object)
<ul>
<li>This object contains the configuration options to be used for the current changePage() call.</li>
</ul>
</li>
</ul>
<p>It should be noted that callbacks can modify both the <code>toPage</code> and <code>options</code> properties to alter the behavior of the current <code>changePage()</code> call. So for example, the <code>toPage</code> can be mapped to a different url from within a callback to do a sort of redirect.</p>
</dd>
<dt><code>pagechange</code></dt>
<dd>This event is triggered after the <code>changePage()</code> request has finished loading the page into the DOM and all page transition animations have completed. Note that any pageshow or pagehide events will have fired *BEFORE* this event is triggered. Callbacks for this particular event will be passed a data object as the 2nd arg. The properties for this object are as follows:
<ul>
<li><code>toPage</code> (object or string)
<ul>
<li>This property represents the page the caller wishes to make active. It can be either a jQuery collection object containing the page DOM element, or an absolute/relative url to an internal or external page. The value exactly matches the 1st arg to the changePage() call that triggered the event.</li>
</ul>
</li>
<li><code>options</code> (object)
<ul>
<li>This object contains the configuration options to be used for the current changePage() call.</li>
</ul>
</li>
</ul>
</dd>
<dt><code>pagechangefailed</code></dt>
<dd>This event is triggered when the <code>changePage()</code> request fails to load the page. Callbacks for this particular event will be passed a data object as the 2nd arg. The properties for this object are as follows:
<ul>
<li><code>toPage</code> (object or string)
<ul>
<li>This property represents the page the caller wishes to make active. It can be either a jQuery collection object containing the page DOM element, or an absolute/relative url to an internal or external page. The value exactly matches the 1st arg to the changePage() call that triggered the event.</li>
</ul>
</li>
<li><code>options</code> (object)
<ul>
<li>This object contains the configuration options to be used for the current changePage() call.</li>
</ul>
</li>
</ul>
</dd>
</dl>
<h2>Page transition events</h2>
<p>Page transitions are used to animate the change from the current active page (fromPage) to a new page (toPage). Events are triggered before and after these transitions so that observers can be notified whenever pages are shown or hidden. The events triggered are as follows:</p>
<dl>
<dt><code>pagebeforeshow</code></dt>
<dd>Triggered on the page being shown, before its transition begins.</dd>
<dd>Triggered on the "toPage" we are transitioning to, before the actual transition animation is kicked off. Callbacks for this event will recieve a data object as their 2nd arg. This data object has the following properties on it:
<ul>
<li><code>prevPage</code> (object)
<ul>
<li>A jQuery collection object that contains the page DOM element that we are transitioning away from. Note that this collection is empty when the first page is transitioned in during application startup.</li>
</ul>
</li>
</ul>
</dd>
<dt><code>pagebeforehide</code></dt>
<dd>Triggered on the page being hidden, before its transition begins.</dd>
<dd>Triggered on the "fromPage" we are transitioning away from, before the actual transition animation is kicked off. Callbacks for this event will recieve a data object as their 2nd arg. This data object has the following properties on it:
<ul>
<li><code>nextPage</code> (object)
<ul>
<li>A jQuery collection object that contains the page DOM element that we are transitioning to.</li>
</ul>
</li>
</ul>
<p>Note that this event will not be dispatched during the transition of the first page at application startup since there is no previously active page.</p>
</dd>
<dt><code>pageshow</code></dt>
<dd>Triggered on the page being shown, after its transition completes.</dd>
<dd>Triggered on the "toPage" after the transition animation has completed. Callbacks for this event will recieve a data object as their 2nd arg. This data object has the following properties on it:
<ul>
<li><code>prevPage</code> (object)
<ul>
<li>A jQuery collection object that contains the page DOM element that we just transitioned away from. Note that this collection is empty when the first page is transitioned in during application startup.</li>
</ul>
</li>
</ul>
</dd>
<dt><code>pagehide</code></dt>
<dd>Triggered on the page being hidden, after its transition completes.</dd>
<dd>Triggered on the "fromPage" after the transition animation has completed. Callbacks for this event will recieve a data object as their 2nd arg. This data object has the following properties on it:
<ul>
<li><code>nextPage</code> (object)
<ul>
<li>A jQuery collection object that contains the page DOM element that we just transitioned to.</li>
</ul>
</li>
</ul>
<p>Note that this event will not be dispatched during the transition of the first page at application startup since there is no previously active page.</p>
</dd>
</dl>
<p>Note that all four of these events expose a reference to either the next page (<code>nextPage</code>) or previous page (<code>prevPage</code>), depending on whether the page is being shown or hidden, and whether that next or previous page exists (the first ever page shown does not have a previous page to reference, but an empty jQuery object is provided just the same). You can access this reference via the second argument of a bound callback function. For example: </p>
<p>You can access the <code>prevPage</code> or <code>nextPage</code> properties via the second argument of a bound callback function. For example: </p>
<pre><code>
$('div').live('pageshow',function(event, ui){
alert('This page was just hidden: '+ ui.prevPage);
$( 'div' ).live( 'pageshow',function(event, ui){
alert( 'This page was just hidden: '+ ui.prevPage);
});
$('div').live('pagehide',function(event, ui){
alert('This page was just shown: '+ ui.nextPage);
$( 'div' ).live( 'pagehide',function(event, ui){
alert( 'This page was just shown: '+ ui.nextPage);
});
</code></pre>
<p>Also, for these handlers to be invoked during the initial page load, you must bind them before jQuery Mobile executes. This can be done in the <code>mobileinit</code> handler, as described on the <a href="globalconfig.html">global config</a> page.
<h2>Page initialization events</h2>
<p>Internally, jQuery Mobile auto-initializes plugins based on the markup conventions found in a given "page". For example, an <code>input</code> element with a <code>type</code> of <code>range</code> will automatically generate a custom slider control.</p>
<p>This auto-initialization is controlled by the "page" plugin, which dispatches events before and after it executes, allowing you to manipulate a page either pre-or-post initialization, or even provide your own intialization behavior and prevent the auto-initializations from occuring. Note that these events will only fire once per "page", as opposed to the show/hide events, which fire every time a page is shown and hidden.</p>
<p>This auto-initialization is controlled by the "page" plugin, which dispatches events before and after it executes, allowing you to manipulate a page either pre-or-post initialization, or even provide your own intialization behavior and prevent the auto-initializations from occuring. Note that these events will only fire once per "page", as opposed to the show/hide events, which fire every time a page is shown and hidden.</p>
<dl>
<dt><code>pagebeforecreate</code></dt>
<dd>
<p>Triggered on the page being initialized, before most plugin auto-initialization occurs.</p>
<pre><code>
$('#aboutPage').live('pagebeforecreate',function(event){
alert('This page was just inserted into the dom!');
$( '#aboutPage' ).live( 'pagebeforecreate',function(event){
alert( 'This page was just inserted into the dom!' );
});
</code></pre>
<p>Note that by binding to <code>pagebeforecreate</code>, you can manipulate markup before jQuery Mobile's default widgets are auto-initialized. For example, say you want to add data-attributes via JavaScript instead of in the HTML source, this is the event you'd use.</p>
<pre><code>
$('#aboutPage').live('pagebeforecreate',function(event){
$( '#aboutPage' ).live( 'pagebeforecreate',function(event){
// manipulate this page before its widgets are auto-initialized
});
</code></pre>
</code></pre>
</dd>
<dt><code>pagecreate</code></dt>
<dd>
<p>Triggered when the page has been created in the DOM (via ajax or other) but before all widgets have had an opportunity to enhance the contained markup. This event is most useful for user's wishing to create their own custom widgets for child markup enhancement as the jquery mobile widgets do.</p>
<pre><code>
$( '#aboutPage' ).live( 'pagecreate',function(event){
( ":jqmData(role='sweet-plugin')" ).sweetPlugin();
});
</code></pre>
</dd>
<dt><code>pageinit</code></dt>
<dd>
<p>Triggered on the page being initialized, after initialization occurs. We recommend binding to this event instead of DOM ready() because this will work regardless of whether the page is loaded directly or if the content is pulled into another page as part of the Ajax navigation system.</p>
<pre><code>
$('#aboutPage').live('pagecreate',function(event){
alert('This page was just enhanced by jQuery Mobile!');
$( '#aboutPage' ).live( 'pageinit',function(event){
alert( 'This page was just enhanced by jQuery Mobile!' );
});
</code></pre>
</dd>
</dl>
<h2>Virtual mouse events</h2>
<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>
<h2>Page remove events</h2>
<p>By default, the framework removes any non active dynamically loaded external pages from the DOM as soon as the user navigates away to a different page. The <code>pageremove</code> event is dispatched just before the framework attempts to remove the a page from the DOM.</p>
<dl>
<dt><code>vmouseover</code></dt>
<dd>Normalized event for handling touch or mouse <code>mouseover</code> events</dd>
<dt><code>vmousedown</code></dt>
<dd>Normalized event for handling touch or mouse <code>mousedown</code> events</dd>
<dt><code>vmousemove</code></dt>
<dd>Normalized event for handling touch or mouse <code>mousemove</code> events</dd>
<dt><code>vmouseup</code></dt>
<dd>Normalized event for handling touch or mouse <code>mouseup</code> events</dd>
<dt><code>vclick</code></dt>
<dd>Normalized event for handling touch or mouse <code>click</code> events</dd>
<dt><code>vmousecancel</code></dt>
<dd>Normalized event for handling touch or mouse <code>mousecancel</code> events</dd>
<dt><code>pageremove</code></dt>
<dd>This event is triggered just before the framework attempts to remove an external page from the DOM. Event callbacks can call preventDefault on the event object to prevent the page from being removed.
</dd>
</dl>
<h2>Layout events</h2>
<p>Some components within the framework, such as collapsible and listview search, dynamically hide and show content based on user events. This hiding/showing of content affects the size of the page and may result in the browser adjusting/scrolling the viewport to accommodate the new page size. Since this has the potential to affect other components such as fixed headers and footers, components like collapsible and listview trigger a custom <code>updatelayout</code> event to notify other components that they may need to adjust their layouts in response to their content changes. Developers who are building dynamic applications that inject, hide, or remove content from the page, or manipulate it in any way that affects the dimensions of the page, can also manually trigger this <code>updatelayout</code> event to ensure components on the page update in response to the changes.</p>
<dl>
<dt><code>updatelayout</code></dt>
<dd>This event is triggered by components within the framework that dynamically show/hide content, and is meant as a generic mechanism to notify other components that they may need to update their size or position. Within the framework, this event is fired on the component element whose content was shown/hidden, and bubbles all the way up to the document element.
<pre><code>
$( '#foo' ).hide().trigger( 'updatelayout' );
</code></pre>
</dd>
</dl>
<h2>Animation Events</h2>
<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>
</div><!--/content-secondary -->
</div><!--/content-secondary -->
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">API</li>
<li><a href="../../docs/api/globalconfig.html">Configuring defaults</a></li>
<li data-theme="a"><a href="../../docs/api/events.html">Events</a></li>
<li><a href="../../docs/api/methods.html">Methods &amp; Utilities</a></li>
<li><a href="../../docs/api/mediahelpers.html">Responsive Layout</a></li>
<li><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
<li><a href="../../docs/api/themes.html">Theme framework</a></li>
</ul>
</div>
</div>
</div>
</div><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>
</div><!-- /page -->
</body>
</html>
</html>

View file

@ -1,17 +1,16 @@
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Configuring default settings</title>
<link rel="stylesheet" href="../../themes/default/" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Configuring default settings</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
</head>
<body>
<div data-role="page" class="type-interior">
@ -22,13 +21,13 @@
<div data-role="content" data-theme="c">
<div class="content-primary">
<h2>Working with jQuery Mobile's Auto-initialization</h2>
<p>Unlike other jQuery projects, such as jQuery and jQuery UI, jQuery Mobile automatically applies many markup enhancements as soon as it loads (long before document.ready event fires). These enhancements are applied based on jQuery Mobile's default configuration, which is designed to work with common scenarios, but may or may not match your particular needs. Fortunately, these settings are easy to configure.</p>
<p>Unlike other jQuery projects, such as jQuery and jQuery UI, jQuery Mobile automatically applies many markup enhancements as soon as it loads (long before <code>document.ready</code> event fires). These enhancements are applied based on jQuery Mobile's default configuration, which is designed to work with common scenarios, but may or may not match your particular needs. Fortunately, these settings are easy to configure.</p>
<h3>The mobileinit event</h3>
<p>When the jQuery Mobile starts to execute, it triggers a <code>mobileinit</code> event on the <code>document</code> object, to which you can bind to apply overrides to jQuery Mobile's defaults.</p>
<pre>
<code>
$(document).bind("mobileinit", function(){
@ -36,7 +35,7 @@ $(document).bind("mobileinit", function(){
});
</code>
</pre>
<p>Because the <code>mobileinit</code> event is triggered immediately upon execution, you'll need to bind your event handler before jQuery Mobile is loaded. Thus, we recommend linking to your JavaScript files in the following order:</p>
<pre>
@ -45,10 +44,10 @@ $(document).bind("mobileinit", function(){
<strong>&lt;script src=&quot;custom-scripting.js&quot;&gt;&lt;/script&gt;</strong>
&lt;script src=&quot;jquery-mobile.js&quot;&gt;&lt;/script&gt;
</code>
</pre>
</pre>
<p>Within this event binding, you can configure defaults either by extending the <code>$.mobile</code> object using jQuery's <code>$.extend</code> method:</p>
<pre>
<code>
$(document).bind("mobileinit", function(){
@ -58,7 +57,7 @@ $(document).bind("mobileinit", function(){
});
</code>
</pre>
<p>...or by setting them individually:</p>
<pre>
<code>
@ -67,13 +66,14 @@ $(document).bind("mobileinit", function(){
});
</code>
</pre>
<p>To quickly preview these global configuration options in action, check out the <a href="../config/index.html">config test pages</a>.</p>
<h2>Configurable options</h2>
<p>The following defaults are configurable via the <code>$.mobile</code> object:</p>
<dl>
<dt><code>ns</code> <em>string</em>, default: ""</dt>
<dt><code>ns</code> <em>string</em>, default: ""</dt>
<dd>The namespace used in data- attributes, for example, data-role. Can be set to anything, including a blank string which is the default. When using, it's clearest if you include a trailing dash, such as "mynamespace-" which maps to <code>data-mynamespace-foo="..."</code>.
<p><strong>NOTE:</strong> if you're using data- namespacing, you'll need to manually update/override one selector in the theme CSS. The following data selectors should incorporate the namespace you're using:
<pre><code>
@ -81,77 +81,93 @@ $(document).bind("mobileinit", function(){
</code></pre>
</p>
</dd>
<dt><code>autoInitializePage</code> <em>boolean</em>, default: true</dt>
<dd>When the DOM is ready, the framework should automatically call <code>$.mobile.initializePage</code>. If false, page will not initialize, and will be visually hidden until until <code>$.mobile.initializePage</code> is manually called.</dd>
<dt><code>autoInitializePage</code> <em>boolean</em>, default: true</dt>
<dd>When the DOM is ready, the framework should automatically call <code>$.mobile.initializePage</code>. If false, page will not initialize, and will be visually hidden until <code>$.mobile.initializePage</code> is manually called.</dd>
<dt><code>subPageUrlKey</code> <em>string</em>, default: "ui-page"</dt>
<dd>The url parameter used for referencing widget-generated sub-pages (such as those generated by nested listviews). Translates to to <em>example.html<strong>&ui-page=</strong>subpageIdentifier</em>. The hash segment before &ui-page= is used by the framework for making an Ajax request to the URL where the sub-page exists.</dd>
<dt><code>activePageClass</code> <em>string</em>, default: "ui-page-active"</dt>
<dt><code>activePageClass</code> <em>string</em>, default: "ui-page-active"</dt>
<dd>The class assigned to page currently in view, and during transitions</dd>
<dt><code>activeBtnClass</code> <em>string</em>, default: "ui-btn-active"</dt>
<dt><code>activeBtnClass</code> <em>string</em>, default: "ui-btn-active"</dt>
<dd>The class used for "active" button state, from CSS framework.</dd>
<dt><code>ajaxEnabled</code> <em>boolean</em>, default: true</dt>
<dt><code>ajaxEnabled</code> <em>boolean</em>, default: true</dt>
<dd>jQuery Mobile will automatically handle link clicks and form submissions through Ajax, when possible. If false, url hash listening will be disabled as well, and urls will load as regular http requests.</dd>
<dt><code>linkBindingEnabled</code> <em>boolean</em>, default: true</dt>
<dd>jQuery Mobile will automatically bind the clicks on anchor tags in your document. Setting this options to false will prevent all anchor click handling <em>including</em> the addition of active button state and alternate link bluring. This should only be used when attempting to delegate the click management to another library or custom code.</dd>
<dt><code>hashListeningEnabled</code> <em>boolean</em>, default: true</dt>
<dt><code>hashListeningEnabled</code> <em>boolean</em>, default: true</dt>
<dd>jQuery Mobile will automatically listen and handle changes to the location.hash. Disabling this will prevent jQuery Mobile from handling hash changes, which allows you to handle them yourself, or simply to use simple deep-links within a document that scroll to a particular ID.</dd>
<dt><code>defaultPageTransition</code> <em>string</em>, default: 'slide'</dt>
<dt><code>pushStateEnabled</code> <em>boolean</em>, default: true</dt>
<dd>Enhancement to use <code>history.replaceState</code> in supported browsers, to convert the hash-based Ajax URL into the full document path. Note that we <a href="../pages/page-navmodel.html">recommend</a> disabling this feature if Ajax is disabled or if extensive use of external links are used.</dd>
<dt><code>defaultPageTransition</code> <em>string</em>, default: 'slide'</dt>
<dd>Set the default transition for page changes that use Ajax. Set to 'none' for no transitions by default.</dd>
<dt><code>touchOverflowEnabled</code> <em>boolean</em>, default: false</dt>
<dd>Enable pages to have self-contained native scrolling and fixed toolbars in devices that support the <code>overflow-scrolling: touch; </code> property.</dd>
<dt><code>defaultDialogTransition</code> <em>string</em>, default: 'pop'</dt>
<dt><code>touchOverflowEnabled</code> <em>boolean</em>, default: false</dt>
<dd>Enable smoother page transitions and true fixed toolbars in devices that support both the <code>overflow:</code> and <code>overflow-scrolling: touch; </code> CSS properties.</dd>
<dt><code>defaultDialogTransition</code> <em>string</em>, default: 'pop'</dt>
<dd>Set the default transition for dialog changes that use Ajax. Set to 'none' for no transitions by default.</dd>
<dt><code>minScrollBack</code> <em>string</em>, default: 150</dt>
<dt><code>minScrollBack</code> <em>string</em>, default: 250</dt>
<dd>Minimum scroll distance that will be remembered when returning to a page. </dd>
<dt><code>loadingMessage</code> <em>string</em>, default: "loading"</dt>
<dt><code>loadingMessage</code> <em>string</em>, default: "loading"</dt>
<dd>Set the text that appears when a page is loading. If set to false, the message will not appear at all.</dd>
<dt><code>pageLoadErrorMessage</code> <em>string</em>, default: "Error Loading Page"</dt>
<dd>Set the text that appears when a page fails to load through Ajax.</dd>
<dt><code>loadingMessageTheme</code> <em>string</em>, default: "a"</dt>
<dd>Set the theme that the loading message box uses, when text is visible.</dd>
<dt><code>gradeA</code> <em>function that returns a boolean</em>, default: a function returning the value of $.support.mediaquery</dt>
<dt><code>pageLoadErrorMessage</code> <em>string</em>, default: "Error Loading Page"</dt>
<dd>Set the text that appears when a page fails to load through Ajax.</dd>
<dt><code>pageLoadErrorMessageTheme</code> <em>string</em>, default: "e"</dt>
<dd>Set the theme that the error message box uses.</dd>
<dt><code>loadingMessageTextVisible</code> <em>string</em>, default: false</dt>
<dd>Should the text be visible when loading message is shown. (note: currently, the text is always visible for loading errors)</dd>
<dt><code>gradeA</code> <em>function that returns a boolean</em>, default: a function returning the value of $.support.mediaquery</dt>
<dd>Any support conditions that must be met in order to proceed.</dd>
</dl>
</div><!--/content-secondary -->
</div><!--/content-secondary -->
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">API</li>
<li data-theme="a"><a href="../../docs/api/globalconfig.html">Configuring defaults</a></li>
<li><a href="../../docs/api/events.html">Events</a></li>
<li><a href="../../docs/api/methods.html">Methods &amp; Utilities</a></li>
<li><a href="../../docs/api/mediahelpers.html">Responsive Layout</a></li>
<li><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
<li><a href="../../docs/api/themes.html">Theme framework</a></li>
</ul>
</div>
</div>
</div>
</div><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>
</div><!-- /page -->
</body>
</html>
</html>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Mobile Framework - API</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
<div data-role="page" class="type-index">
@ -27,7 +26,7 @@
<li><a href="globalconfig.html">Configuring defaults</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="methods.html">Methods &amp; Utilities</a></li>
<li><a href="mediahelpers.html">Responsive Layout</a></li>
<li><a href="data-attributes.html">Data attribute reference</a></li>
<li><a href="themes.html">Theme framework</a></li>
</ul>
@ -35,4 +34,4 @@
</div>
</body>
</html>
</html>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Responsive Layout Helpers</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -24,12 +23,14 @@
<div class="content-primary">
<h2>Media Query Helper Classes</h2>
<p class="ui-bar-e ui-body"><strong>Note: This feature is deprecated in beta, and will be removed after that. We recommend using CSS3 Media Queries instead.</strong></p>
<p class="ui-bar-e ui-body"><strong>Note: This feature was deprecated in beta, and removed in 1.0rc1. We recommend using CSS3 Media Queries instead.</strong> To support older versions of Internet Explorer, check out <a href="https://github.com/scottjehl/Respond">respond.js</a>, a fast &amp; lightweight polyfill for min/max-width CSS3 Media Queries.</p>
<p class="ui-bar-e ui-body">If you still need this feature, you can find the code here: <a href="https://raw.github.com/jquery/jquery-mobile/38d7ad8848f00b0921bf4ae723f3ad199eb851c1/js/jquery.mobile.media.classes.js">jquery.mobile.media.classes.js</a></p>
<p>jQuery Mobile adds classes to the <code>HTML</code> element that mimic browser orientation and common min/max-width CSS media queries. These classes are updated on load, resize and orientationchange, allowing you to key off these classes in your CSS, to create <a href="http://www.alistapart.com/articles/responsive-web-design/">responsive layouts</a> - even in browsers that don't support media queries! </p>
<h3>Orientation Classes </h3>
<p>The HTML element will always have a class of either "portrait" or "landscape", depending on the orientation of the browser or device. You can utilize these in your CSS like this:</p>
<p>The HTML element will always have a class of either <code>"portrait"</code> or <code>"landscape"</code>, depending on the orientation of the browser or device. You can utilize these in your CSS like this:</p>
<pre>
<code>
.portrait {
@ -42,7 +43,7 @@
</pre>
<h3>Min/Max Width Breakpoint Classes</h3>
<p>By default, we create min and max breakpoint classes at the following widths: <code>320</code>,<code>480</code>,<code>768</code>,<code>1024</code>. These translate to classes that look like this: "min-width-320px", "max-width-480px", and are meant to be used as a replacement of (or in addition to) the media query equivalents they mimic.</p>
<p>By default, we create min and max breakpoint classes at the following widths: <code>320</code>,<code>480</code>,<code>768</code>,<code>1024</code>. These translate to classes that look like this: <code>"min-width-320px"</code>, <code>"max-width-480px"</code>, and are meant to be used as a replacement of (or in addition to) the media query equivalents they mimic.</p>
<pre>
<code>
.myelement {
@ -100,7 +101,7 @@ $.mobile.media("screen and (-webkit-min-device-pixel-ratio: 2)");
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
@ -111,6 +112,7 @@ $.mobile.media("screen and (-webkit-min-device-pixel-ratio: 2)");
<li><a href="../../docs/api/events.html">Events</a></li>
<li><a href="../../docs/api/methods.html">Methods &amp; Utilities</a></li>
<li data-theme="a"><a href="../../docs/api/mediahelpers.html">Responsive Layout</a></li>
<li><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
<li><a href="../../docs/api/themes.html">Theme framework</a></li>
</ul>
</div>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Methods</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -45,26 +44,30 @@
<ul>
<li>Properties:
<ul>
<li><code>transition</code> (<em>string</em>, default: $.mobile.defaultPageTransition) The transition to use when showing the page. </li>
<li><code>reverse</code> (<em>boolean</em>, default: false) Decides what direction the transition will run when showing the page. </li>
<li><code>allowSamePageTransition</code> (<em>boolean</em>, default: false) By default, changePage() ignores requests to change to the current active page. Setting this option to true, allows the request to execute. Developers should note that some of the page transitions assume that the fromPage and toPage of a changePage request are different, so they may not animate as expected. Developers are responsible for either providing a proper transition, or turning it off for this specific case.</li>
<li><code>changeHash</code> (<em>boolean</em>, default: true) Decides if the hash in the location bar should be updated. </li>
<li><code>role</code> (<em>string</em>, default: undefined) The data-role value to be used when displaying the page. By default this is undefined which means rely on the value of the @data-role attribute defined on the element.</li>
<li><code>pageContainer</code> (jQuery collection, default: $.mobile.pageContainer) Specifies the element that should contain the page. </li>
<li><code>type</code> (<em>string</em>, default: &quot;get&quot;) Specifies the method ("get" or "post") to use when making a page request.
<ul>
<li>Used only when the 'to' argument of changePage() is a URL.</li>
</ul>
</li>
<li><code>data</code> (<em>object</em> or string, default: undefined) The data to send with an Ajax page request.
<ul>
<li>Used only when the 'to' argument of changePage() is a URL.</li>
</ul>
</li>
</li>
<li><code>dataUrl</code> (string, default: undefined) The URL to use when updating the browser location upon changePage completion.
If not specified, the value of the data-url attribute of the page element is used.</li>
<li><code>pageContainer</code> (jQuery collection, default: $.mobile.pageContainer) Specifies the element that should contain the page. </li>
<li><code>reloadPage</code> (<em>boolean</em>, default: false) Forces a reload of a page, even if it is already in the DOM of the page container.
<ul>
<li>Used only when the 'to' argument of changePage() is a URL.</li>
</ul>
</li>
<li><code>reverse</code> (<em>boolean</em>, default: false) Decides what direction the transition will run when showing the page. </li>
<li><code>showLoadMsg</code> (<em>boolean</em>, default: true) Decides whether or not to show the loading message when loading external pages.</li>
<li><code>role</code> (<em>string</em>, default: undefined) The data-role value to be used when displaying the page. By default this is undefined which means rely on the value of the @data-role attribute defined on the element.</li>
<li><code>transition</code> (<em>string</em>, default: $.mobile.defaultPageTransition) The transition to use when showing the page. </li>
<li><code>type</code> (<em>string</em>, default: &quot;get&quot;) Specifies the method ("get" or "post") to use when making a page request.
<ul>
<li>Used only when the 'to' argument of changePage() is a URL.</li>
</ul>
</li>
</ul>
</li>
</ul>
@ -111,14 +114,13 @@ $.mobile.changePage( "../alerts/confirm.html", {
<ul>
<li>Properties:
<ul>
<li><code>role</code> (<em>string</em>, default: undefined) The data-role value to be used when displaying the page. By default this is undefined which means rely on the value of the @data-role attribute defined on the element.</li>
<li><code>data</code> (<em>object</em> or string, default: undefined) The data to send with an Ajax page request. </li>
<li><code>loadMsgDelay</code> (<em>number (in ms)</em>, default: 50) Forced delay before the loading message is shown. This is meant to allow time for a page that has already been visited to be fetched from cache without a loading message.</li>
<li><code>pageContainer</code> (jQuery collection, default: $.mobile.pageContainer) Specifies the element that should contain the page after it is loaded. </li>
<li><code>reloadPage</code> (<em>boolean</em>, default: false) Forces a reload of a page, even if it is already in the DOM of the page container. </li>
<li><code>role</code> (<em>string</em>, default: undefined) The data-role value to be used when displaying the page. By default this is undefined which means rely on the value of the @data-role attribute defined on the element.</li>
<li><code>type</code> (<em>string</em>, default: &quot;get&quot;) Specifies the method ("get" or "post") to use when making a page request.
</li>
<li><code>data</code> (<em>object</em> or string, default: undefined) The data to send with an Ajax page request. </li>
<li><code>reloadPage</code> (<em>boolean</em>, default: false) Forces a reload of a page, even if it is already in the DOM of the page container. </li>
<li><code>loadMsgDelay</code> (<em>number (in ms)</em>, default: 50) Forced delay before the loading message is shown. This is meant to allow time for a page that has already been visited to be fetched from cache without a loading message.</li>
</ul>
</li>
</ul>
@ -144,12 +146,13 @@ $.mobile.loadPage( "searchresults.php", {
</dd>
<dt><code>jqmData(), jqmRemoveData(), and jqmHasData()</code> (<em>method</em>)</dt>
<dt><code>jqmData(), jqmRemoveData()</code> (<em>method</em>)</dt>
<dd>When working with jQuery Mobile, <code>jqmData</code> and <code>jqmRemoveData</code> should be used in place of jQuery core's <code>data</code> and <code>removeData</code> methods (note that this includes $.fn.data, $.fn.removeData, and the $.data, $.removeData, and $.hasData utilities), as they automatically incorporate getting and setting of namespaced data attributes (even if no namespace is currently in use).</dd>
<dd>
<dl>
<dt><code>&#183;</code> Arguments:</dt>
<dd>See jQuery's <a href="http://api.jquery.com/jQuery.data/">data</a> and <a href="http://api.jquery.com/jQuery.removeData/">removeData</a> methods</dd>
<strong>Note: </strong>Calling jqmData() with no argument will return <code>undefined</code>. This behavior is subject to change in future versions.
<dt><code>&#183;</code> Also:</dt>
<dd>When finding elements by their jQuery Mobile data attribute, please use the custom selector <code>:jqmData()</code>, as it automatically incorporates namespaced data attributes into the lookup when they are in use. For example, instead of calling <code>$("div[data-role='page']")</code>, you should use <code>$("div:jqmData(role='page')")</code>, which internally maps to <code>$("div[data-"+ $.mobile.ns +"role='page']")</code> without forcing you to concatenate a namespace into your selectors manually.</dd>
</dl>
@ -187,6 +190,47 @@ $.mobile.hidePageLoadingMsg();
</dd>
<dt><code>$.mobile.fixedToolbars.show</code> (<em>method</em>)</dt>
<dd>Utility method for displaying the fixed header and/or footer of the current active page within the viewport. Note that fixed headers/footers are never really hidden. Toggling the show/hide state of a toolbar is really toggling whether or not they are inline within the page content, or displayed within the viewport as if they were fixed.</dd>
<dd>
<dl>
<dt><code>&#183;</code> Arguments</dt>
<dd><code>immediately</code> (<em>boolean</em>, optional) If true, any fixed header or footer for the current active page is displayed immediately within the viewport. If false or unspecified, the fixed header/footer will fade-in after a 100 millisecond delay. Note that other events such as a document resize or scroll event can result in an additional delay before the start of the header/footer display animation.</dd>
</dl>
</dd>
<dd>Example:
<pre>
<code>
<strong>// Show fixed header/footer with a fade animation.</strong>
$.mobile.fixedToolbars.show();
<strong>// Show fixed header/footer immediately.</strong>
$.mobile.fixedToolbars.show(true);
</code>
</pre>
</dd>
<dt><code>$.mobile.fixedToolbars.hide</code> (<em>method</em>)</dt>
<dd>Utility method for hiding the fixed header and/or footer of the current active page.</dd>
<dd>
<dl>
<dt><code>&#183;</code> Arguments</dt>
<dd><code>immediately</code> (<em>boolean</em>, optional) If true, any fixed header or footer for the current active page is immediately placed inline (back in flow) with the page content, which means it will scroll along with the content and will only be visible when viewing the top or bottom of the page within the viewport. If false or unspecified, the fixed header/footer will fade-out after a 100 millisecond delay. Note that other events such as a document resize or scroll event can result in the header/footer being immediately hidden.</dd>
</dl>
</dd>
<dd>Example:
<pre>
<code>
<strong>// Hide fixed header/footer with a fade animation.</strong>
$.mobile.fixedToolbars.hide();
<strong>// Hide fixed header/footer immediately.</strong>
$.mobile.fixedToolbars.hide(true);
</code>
</pre>
</dd>
<dt><code>$.mobile.path.parseUrl</code> (<em>method</em>)</dt>
<dd>Utility method for parsing a URL and its relative variants into an object that makes accessing the components of the URL easy. When parsing relative variants, the resulting object will contain empty string values for missing components (like protocol, host, etc). Also, when parsing URLs that have no authority, such as tel: urls, the pathname property of the object will contain the data after the protocol/scheme colon.</dd>
@ -215,7 +259,7 @@ $.mobile.hidePageLoadingMsg();
<dd>The port specified within the URL. Most URLs rely on the default port for the protocol used, so this may be an empty string most of the time.</dd>
<dt><code>protocol</code></dt>
<dd>The protocol for the URL including the trailing ':' character.</dd>
<dt><code>search<</code>/dt>
<dt><code>search</code></dt>
<dd>The query component of the URL including the leading '?' character.</dd>
</dl>
<p>But it also contains additional properties that provide access to additional components as well as some common forms of the URL developers access:</p>
@ -422,7 +466,7 @@ var isRel = $.mobile.path.isRelativeUrl("#foo");
<dd><code>url</code> (<em>string</em>, required) A relative or absolute URL.</dd>
<dt><code>&#183;</code> Return Value</dt>
<dd>This function returns a boolean true if the URL is absolute, false if it is absolute.</dd>
<dd>This function returns a boolean true if the URL is absolute, false if not.</dd>
</dl>
</dd>
@ -478,27 +522,7 @@ $.mobile.silentScroll(100);
</dd>
<dt><code>$.mobile.addResolutionBreakpoints</code> (<em>method</em>)</dt>
<dd>Add width breakpoints to the min/max width classes that are added to the HTML element.</dd>
<dd>
<dl>
<dt><code>&#183;</code> Arguments:</dt>
<dd><code>values</code> (<em>number or array</em>). Pass any number or array of numbers to add to the resolution classes. Read more about this feature here: <a href="mediahelpers.html">Orientation &amp; resolution targeting</a>.</dd>
</dl>
</dd>
<dd>Examples:
<pre>
<code>
<strong>//add a 400px breakpoint</strong>
$.mobile.addResolutionBreakpoints(400);
<strong>//add 2 more breakpoints</strong>
$.mobile.addResolutionBreakpoints([600,800]);
</code>
</pre>
</dd>
@ -513,7 +537,7 @@ $.mobile.addResolutionBreakpoints([600,800]);
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
@ -523,7 +547,7 @@ $.mobile.addResolutionBreakpoints([600,800]);
<li><a href="../../docs/api/globalconfig.html">Configuring defaults</a></li>
<li><a href="../../docs/api/events.html">Events</a></li>
<li data-theme="a"><a href="../../docs/api/methods.html">Methods &amp; Utilities</a></li>
<li><a href="../../docs/api/mediahelpers.html">Responsive Layout</a></li>
<li><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
<li><a href="../../docs/api/themes.html">Theme framework</a></li>
</ul>
</div>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Framework - Static Containers, States</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -35,6 +34,9 @@
<li>A <strong>simplified icon set</strong> including those most commonly used for mobile, in a sprite to reduce image weight</li>
</ul>
<h2>ThemeRoller</h2>
<a href="http://www.jquerymobile.com/themeroller" rel="external"><img src="../_assets/images/themroller-mobile-logo.png" width="250" style="float:right; margin-left:25px;" alt="Themroller Mobile Logo"></a>
The easiest way to create custom themes is with the <a href="http://www.jquerymobile.com/themeroller" rel="external">ThemeRoller tool</a>. It allows you to build a theme, then download a custom CSS file, ready to be dropped into your project.
<h2>Themes &amp; swatches</h2>
@ -51,11 +53,11 @@
<p>The default theme contains the following five Bar styles:</p>
<div class="swatch-preview">
<div class="ui-bar ui-bar-a">Bar A</div>
<div class="ui-bar ui-bar-b">Bar B</div>
<div class="ui-bar ui-bar-c">Bar C</div>
<div class="ui-bar ui-bar-d">Bar D</div>
<div class="ui-bar ui-bar-e">Bar E</div>
<div class="ui-bar ui-bar-a">Bar A - <a href="#" data-role="none" class="ui-link">Link</a></div>
<div class="ui-bar ui-bar-b">Bar B - <a href="#" data-role="none" class="ui-link">Link</a></div>
<div class="ui-bar ui-bar-c">Bar C - <a href="#" data-role="none" class="ui-link">Link</a></div>
<div class="ui-bar ui-bar-d">Bar D - <a href="#" data-role="none" class="ui-link">Link</a></div>
<div class="ui-bar ui-bar-e">Bar E - <a href="#" data-role="none" class="ui-link">Link</a></div>
</div><!-- end swatch-bars -->
<p>By default, the framework assigns the "a" swatch to all headers and footers, because these are typically given high visual priority in an application. To set the color of a bar to a different swatch color, simply add the <code> data-theme</code> attribute to your header or footer and specify an alternate swatch letter ('b' or 'd', for example) and the specified theme swatch color will be applied. Learn more about <a href="../toolbars/bars-themes.html">toolbar theming</a>.</p>
@ -66,17 +68,17 @@
<p>The default theme also includes color swatch values for use in content blocks, designed to coordinate with the header color swatches in the theme. </p>
<div class="swatch-preview">
<div class="ui-body ui-body-a">Block A</div>
<div class="ui-body ui-body-b">Block B</div>
<div class="ui-body ui-body-c">Block C</div>
<div class="ui-body ui-body-d">Block D</div>
<div class="ui-body ui-body-e">Block E</div>
<div class="ui-body ui-body-a">Block A - <a href="#">Link</a></div>
<div class="ui-body ui-body-b">Block B - <a href="#">Link</a></div>
<div class="ui-body ui-body-c">Block C - <a href="#">Link</a></div>
<div class="ui-body ui-body-d">Block D - <a href="#">Link</a></div>
<div class="ui-body ui-body-e">Block E - <a href="#">Link</a></div>
</div><!-- end swatch-bars -->
<p>If a theme isn't specified on a content block, the framework will default to "c" to maximize contrast against the default header "a", as shown here:</p>
<div data-role="header" data-position="inline">
<div data-role="header">
<a href="#" data-icon="arrow-l">Back</a>
<h1>Default Header</h1>
</div>
@ -100,6 +102,7 @@
</div><!-- /controlgroup -->
</div>
<p>Learn more about <a href="../content/content-themes.html">content theming</a>.</p>
@ -222,9 +225,27 @@
<h3>Icons</h3>
<p>There a core set of <a href="../buttons/buttons-icons.html">standard icons</a> included in the framework that can be assigned to any button. To minimize the download size of the core icons, jQuery Mobile only includes these icons in white and automatically adds a semi-transparent black circle behind the icon to make sure it has good contrast on all background colors.</p>
<h3>Theme classes</h3>
<p>Assigning color swatches through the <code> data-theme</code> attribute is one way to leverage the theme system, but it's also possible to apply any of the theme swatches directly to your markup through classes to apply the colors, textures and font formatting of your theme to any markup. This is especially useful when creating your own custom layout elements or UI widgets. Here are a few common theme classes, but many more are available in the theme stylesheet:</p>
<dl>
<dt><code>ui-bar-(a-z)</code></dt>
<dd>Applies the toolbar theme styles for the selected swatch letter. Commonly used in conjunction with <code>ui-bar</code> structural class to add the standard bar padding styles.</dd>
<dt><code>ui-body-(a-z)</code></dt>
<dd>Applies the content body theme styles for the selected swatch letter. Commonly used in conjunction with <code>ui-body</code> structural class to add the standard content block padding styles. </dd>
<dt><code>ui-btn-up-(a-z)</code></dt>
<dd>Applies the button/clickable element theme styles for the selected swatch letter. Commonly used in with the <code>ui-btn-hover-(a-z)</code> and <code>ui-btn-down-(a-z)</code> interaction class states to provide visual feedback and <code>ui-btn-active</code> to indicate the selected or "on" state.</dd>
<dt><code>ui-corner-all</code></dt>
<dd>Applies the theme's global border-radius for rounded corners and is used for container or grouped items in the framework (inset lists, radiobutton sets). There are additional classes for all the possible combinations of rounded corners, for example: <code>ui-corner-tl</code> (top left only), <code>-top</code> (both top corners), <code>-left</code> (both left corners), etc. A second full set of corner classes is provided for buttons so these can have a different corner radius. These use classes with a similar naming convention, but with "btn-corner" instead of "corner", like this: <code>.ui-<strong>btn-corner</strong>-all</code>.</dd>
<dt><code>ui-shadow</code></dt>
<dd>Applies the theme's global drop shadow to any element using CSS <code>box-shadow</code> property. </dd>
<dt><code>ui-disabled</code></dt>
<dd>Applies the disabled look and feel which essentially reduces the opacity of any element with this class to 30%, hides the cursor, and sets <code>pointer-events: none;</code> which prevents any interaction in many modern browsers.</dd>
</dl>
<h3>Overriding themes</h3>
<p>The themes are meant as a solid starting point, but are meant to be customized to add the custom design elements that make your site or app unique. Since everything is controlled by CSS, it's easy to use a web inspector tool to identify the style properties you want to modify. The set of of theme classes (global) and semantic structural classes (widget-specific) added to elements provide a rich set of possible selectors to target style overrides against. We recommend adding an external stylesheet to the <code>head</code>, placed <strong>after</strong> the structure and theme stylesheet references, that contain all your style overrides. This allows you to easily update to newer versions of the library because overrides are kept separate from the library code.</p>
<p><strong>Learn more</strong> about theming individual components:</p>
<ul data-role="listview" data-inset="true">
<li><a href="../pages/pages-themes.html">Page theming</a></li>
@ -238,7 +259,7 @@
<div class="content-secondary ui-body-d">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
@ -248,10 +269,10 @@
<li><a href="../../docs/api/globalconfig.html">Configuring defaults</a></li>
<li><a href="../../docs/api/events.html">Events</a></li>
<li><a href="../../docs/api/methods.html">Methods &amp; Utilities</a></li>
<li><a href="../../docs/api/mediahelpers.html">Responsive Layout</a></li>
<li><a href="../../docs/api/data-attributes.html">Data attribute reference</a></li>
<li data-theme="a"><a href="../../docs/api/themes.html">Theme framework</a></li>
</ul>
</ul>
</div>
</div>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Buttons</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>

View file

@ -0,0 +1,89 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Button events</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
</head>
<body>
<div data-role="page" class="type-interior">
<div data-role="header" data-theme="f">
<h1>Button basics</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<div class="content-primary">
<form action="#" method="get">
<h2>Button basics</h2>
<ul data-role="controlgroup" data-type="horizontal" class="localnav">
<li><a href="buttons-types.html" data-role="button" data-transition="fade">Basics</a></li>
<li><a href="buttons-options.html" data-role="button" data-transition="fade">Options</a></li>
<li><a href="buttons-methods.html" data-role="button" data-transition="fade">Methods</a></li>
<li><a href="buttons-events.html" data-role="button" data-transition="fade" class="ui-btn-active">Events</a></li>
</ul>
<p>Bind events directly to the <code>a</code>, <code>input</code>, or <code>button</code> element. Use jQuery Mobile's <a href="../api/events.html">virtual events</a>, or bind standard JavaScript events, like change, focus, blur, etc.:</p>
<pre><code>
$( ".myButton" ).bind( "click", function(event, ui) {
...
});
</code></pre>
<p>The <strong>form button</strong> plugin has the following custom events:</p>
<dl>
<dt><code>create</code> triggered when a form button is created</dt>
<dd>
<pre><code>
$('[type='submit']').button({
create: function(event, ui) { ... }
});
</code></pre>
</dd>
</dl>
</form>
</div><!--/content-primary -->
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Buttons</li>
<li data-theme="a"><a href="buttons-types.html">Button basics</a></li>
<li><a href="buttons-icons.html">Button icons</a></li>
<li><a href="buttons-inline.html">Inline buttons</a></li>
<li><a href="buttons-grouped.html">Grouped buttons</a></li>
<li><a href="buttons-themes.html">Theming buttons</a></li>
</ul>
</div>
</div>
</div><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>
</div><!-- /page -->
</body>
</html>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Grouped Buttons</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -51,8 +50,7 @@
<p>Horizontal grouped buttons with icons:</p>
<div data-role="controlgroup" data-type="horizontal" >
<a href="index.html" data-role="button" data-icon="arrow-u">Up</a>
<a href="index.html" data-role="button" data-icon="arrow-d">Down</a>
<a href="index.html" data-role="button" data-icon="plus">Add</a>
<a href="index.html" data-role="button" data-icon="delete">Delete</a>
</div>
@ -68,14 +66,14 @@
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Buttons</li>
<li><a href="buttons-types.html">Button markup options</a></li>
<li><a href="buttons-types.html">Button basics</a></li>
<li><a href="buttons-icons.html">Button icons</a></li>
<li><a href="buttons-inline.html">Inline buttons</a></li>
<li data-theme="a"><a href="buttons-grouped.html">Grouped buttons</a></li>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Button icons</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -107,8 +106,24 @@
<a href="index.html" data-role="button" data-icon="delete" data-iconpos="notext">Delete</a>
<h2>Custom Icons</h2>
<p>To use custom icons, specify a <code> data-icon</code> value that has a unique name like <code>myapp-email</code> and the button plugin will generate a class by prefixing <code>ui-icon-</code> to the <code> data-icon</code> value and apply it to the button. You can then write a CSS rule that targets the <code>ui-icon-myapp-email</code> class to specify the icon background source. To maintain visual consistency, create a white icon 18x18 pixels saved as a PNG-8 with alpha transparency.</p>
<p>To use custom icons, specify a <code>data-icon</code> value that has a unique name like <code>myapp-email</code> and the button plugin will generate a class by prefixing <code>ui-icon-</code> to the <code> data-icon</code> value and apply it to the button: <code>ui-icon-myapp-email</code>. </p>
<p>You can then write a CSS rule in your stylesheet that targets the <code>ui-icon-myapp-email</code> class to specify the icon background source. To maintain visual consistency with the rest of the icons, create a white icon 18x18 pixels saved as a PNG-8 with alpha transparency.</p>
<p> In this example, we're just pointing to a standalone icon image, but you could just as easily use an icon sprite and specify the positioning instead, just like the icon sprite we use in the framework.</p>
<pre><code>.ui-icon-myapp-email {
background-image: url("app-icon-email.png");
}</code></pre>
<p>This will create the standard resolution icon, but many devices now have very high resolution displays, like the retina display on the iPhone 4. To add a HD icon, create an icon that is 36x36 pixels (exactly double the 18 pixel size), and add second rule that uses the <code>-webkit-min-device-pixel-ratio: 2</code> media query to target a rule only to high resolution displays. Specify the background image for the HD icon file and set the background size to 18x18 pixels which will fit the 36 pixel icon into the same 18 pixel space. The media query block can wrap multiple icon rules:</p>
<pre><code>
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
.ui-icon-myapp-email {
background-image: url("app-icon-email-highres.png");
background-size: 18px 18px;
}
...more HD icon rules go here...
}
</code></pre>
<h2>Icons and themes</h2>
<p>The semi-transparent black circle behind the white icon ensures good contrast on any background color so it works well with the jQuery Mobile theming system. Here are examples of the same icons sitting on top of a range of different color swatches in out theme.</p>
@ -186,14 +201,14 @@
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Buttons</li>
<li><a href="buttons-types.html">Button markup options</a></li>
<li><a href="buttons-types.html">Button basics</a></li>
<li data-theme="a"><a href="buttons-icons.html">Button icons</a></li>
<li><a href="buttons-inline.html">Inline buttons</a></li>
<li><a href="buttons-grouped.html">Grouped buttons</a></li>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Inline buttons</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -52,14 +51,14 @@
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Buttons</li>
<li><a href="buttons-types.html">Button markup options</a></li>
<li><a href="buttons-types.html">Button basics</a></li>
<li><a href="buttons-icons.html">Button icons</a></li>
<li data-theme="a"><a href="buttons-inline.html">Inline buttons</a></li>
<li><a href="buttons-grouped.html">Grouped buttons</a></li>

View file

@ -0,0 +1,95 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Button methods</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
</head>
<body>
<div data-role="page" class="type-interior">
<div data-role="header" data-theme="f">
<h1>Button basics</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<div class="content-primary">
<form action="#" method="get">
<h2>Button basics</h2>
<ul data-role="controlgroup" data-type="horizontal" class="localnav">
<li><a href="buttons-types.html" data-role="button" data-transition="fade">Basics</a></li>
<li><a href="buttons-options.html" data-role="button" data-transition="fade">Options</a></li>
<li><a href="buttons-methods.html" data-role="button" data-transition="fade" class="ui-btn-active">Methods</a></li>
<li><a href="buttons-events.html" data-role="button" data-transition="fade">Events</a></li>
</ul>
<p>The following methods apply only to <strong>form buttons</strong>. Link-based buttons do not have any associated methods.</p>
<dl>
<dt><code>enable</code> enable a disabled form button</dt>
<dd>
<pre><code>
$('[type='submit']').button('enable');
</code></pre>
</dd>
<dt><code>disable</code> disable a form button</dt>
<dd>
<pre><code>
$('[type='submit']').button('disable');
</code></pre>
</dd>
<dt><code>refresh</code> update the form button</dt>
<dd>
<p>If you manipulate a form button via JavaScript, you must call the refresh method on it to update the visual styling.</p>
<pre><code>
$('[type='submit']').button('refresh');
</code></pre>
</dd>
</dl>
</form>
</div><!--/content-primary -->
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Buttons</li>
<li data-theme="a"><a href="buttons-types.html">Button basics</a></li>
<li><a href="buttons-icons.html">Button icons</a></li>
<li><a href="buttons-inline.html">Inline buttons</a></li>
<li><a href="buttons-grouped.html">Grouped buttons</a></li>
<li><a href="buttons-themes.html">Theming buttons</a></li>
</ul>
</div>
</div>
</div><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>
</div><!-- /page -->
</body>
</html>

View file

@ -0,0 +1,142 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Button options</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
</head>
<body>
<div data-role="page" class="type-interior">
<div data-role="header" data-theme="f">
<h1>Button basics</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<div class="content-primary">
<form action="#" method="get">
<h2>Button basics</h2>
<ul data-role="controlgroup" data-type="horizontal" class="localnav">
<li><a href="buttons-types.html" data-role="button" data-transition="fade">Basics</a></li>
<li><a href="buttons-options.html" data-role="button" data-transition="fade" class="ui-btn-active">Options</a></li>
<li><a href="buttons-methods.html" data-role="button" data-transition="fade">Methods</a></li>
<li><a href="buttons-events.html" data-role="button" data-transition="fade">Events</a></li>
</ul>
<p>The following options apply to <strong>all buttons</strong>:</p>
<dl>
<dt><code>corners</code> <em>boolean</em></dt>
<dd>
<p class="default">default: true</p>
<p>Applies the theme button border-radius if set to true. This option is also exposed as a data attribute: <code>data-corners=&quot;false&quot;</code></p>
<pre><code>$('a').buttonMarkup(<strong>{ corners: "false" }</strong>);</code></pre>
<a href="#" data-role="button" data-corners="false">No rounded corners</a>
</dd>
<dt><code>icon</code> <em>string</em></dt>
<dd>
<p class="default">default: null</p>
<p>Applies an icon from the <a href="../buttons/buttons-icons.html">icon set</a>. This option is also exposed as a data attribute: <code>data-icon=&quot;star&quot;</code></p>
<pre><code>$('a').buttonMarkup(<strong>{ icon: "star" }</strong>);</code></pre>
<a href="#" data-role="button" data-icon="star">Star icon</a>
</dd>
<dt><code>iconpos</code> <em>string</em></dt>
<dd>
<p class="default">default: "left"</p>
<p>Positions the icon in the button. Possible values: left, right, none, notext. The notext value will display an icon-only button with no text feedback. This option is also exposed as a data attribute: <code>data-iconpos=&quot;left&quot;</code></p>
<pre><code>$('a').buttonMarkup(<strong>{ iconpos: "right" }</strong>);</code></pre>
<a href="#" data-role="button" data-icon="star" data-iconpos="right">Star icon</a>
</dd>
<dt><code>iconshadow</code> <em>boolean</em></dt>
<dd>
<p class="default">default: true</p>
<p>Applies the theme shadow to the button's icon if set to true. This option is also exposed as a data attribute: <code>data-iconshadow=&quot;false&quot;</code></p>
<pre><code>$('a').buttonMarkup(<strong>{ iconshadow: "false" }</strong>);</code></pre>
<a href="#" data-role="button" data-icon="star" data-iconshadow="false">No icon shadow</a>
</dd>
<dt><code>inline</code> <em>boolean</em></dt>
<dd>
<p class="default">default: null (false)</p>
<p>If set to true, this will make the button act like an inline button so the width is determined by the button's text. By default, this is null (false) so the button is full width, regardless of the feedback content. Possible values: true, false. This option is also exposed as a data attribute: <code>data-inline=&quot;true&quot;</code></p>
<pre><code>$('a').buttonMarkup(<strong>{ inline: "true" }</strong>);</code></pre>
<a href="#" data-role="button" data-inline="true">Inline</a>
</dd>
<dt><code>shadow</code> <em>boolean</em></dt>
<dd>
<p class="default">default: true</p>
<p>Applies the drop shadow style to the button if set to true. This option is also exposed as a data attribute: <code>data-shadow=&quot;false&quot;</code></p>
<pre><code>$('a').buttonMarkup(<strong>{ shadow: "false" }</strong>);</code></pre>
<a href="#" data-role="button" data-shadow="false">No button shadow</a>
</dd>
<dt><code>theme</code> <em>string</em></dt>
<dd>
<p class="default">default: null, inherited from parent</p>
<p>Sets the color scheme (swatch) for all instances of this widget. It accepts a single letter from a-z that maps to the swatches included in your theme. By default, it will inherit the same swatch color as it's parent container if not explicitly set. This option is also exposed as a data attribute: <code>data-theme=&quot;a&quot;</code></p>
<pre><code>$('a').buttonMarkup(<strong>{ theme: "a" }</strong>);</code></pre>
<a href="#" data-role="button" data-theme="a">Theme A</a>
</dd>
</dl>
<div class="ui-body ui-body-e">
<p>The following option applies only to <strong>form buttons</strong>, which are automatically initialized by the framework:</p>
</div>
<dl>
<dt><code>initSelector</code> <em>CSS selector string</em></dt>
<dd>
<p class="default">default: "button, [type='button'], [type='submit'], [type='reset'], [type='image']"</p>
<p>This is used to define the selectors (element types, data roles, etc.) that will automatically be initialized as form buttons. To change which elements are initialized, bind this option to the <a href="../api/globalconfig.html">mobileinit event</a>:</p>
<pre><code>$( document ).bind( "mobileinit", function(){
<strong>$.mobile.button.prototype.options.initSelector = ".myButtons";</strong>
});
</code></pre>
</dd>
</dl>
</form>
</div><!--/content-primary -->
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Buttons</li>
<li data-theme="a"><a href="buttons-types.html">Button basics</a></li>
<li><a href="buttons-icons.html">Button icons</a></li>
<li><a href="buttons-inline.html">Inline buttons</a></li>
<li><a href="buttons-grouped.html">Grouped buttons</a></li>
<li><a href="buttons-themes.html">Theming buttons</a></li>
</ul>
</div>
</div>
</div><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>
</div><!-- /page -->
</body>
</html>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Button Theming</title>
<link rel="stylesheet" href="../../themes/default/" />
<title>jQuery Mobile Docs - Theming buttons</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -23,9 +22,9 @@
<div data-role="content">
<div class="content-primary">
<h2>Theming</h2>
<h2>Theming buttons</h2>
<p>jQuery Mobile has a rich <a href="../api/themes.html">theming system</a> that gives you full control of how buttons are styled. When a link is added to a container, it is automatically assigned a theme swatch letter that matches it's parent bar or content box to visually integrate the button into the parent container, like a chameleon. So a button placed inside a content container with a theme of "a" (black in the default theme) will be automatically assigned the button theme of "a" (charcoal in the default theme). Here are examples of the button theme pairings in the default theme. All buttons have the same HTML markup: </p>
<p>jQuery Mobile has a rich <a href="../api/themes.html">theming system</a> that gives you full control of how buttons are styled. When a link is added to a container, it is automatically assigned a theme swatch letter that matches its parent bar or content box to visually integrate the button into the parent container, like a chameleon. So a button placed inside a content container with a theme of "a" (black in the default theme) will be automatically assigned the button theme of "a" (charcoal in the default theme). Here are examples of the button theme pairings in the default theme. All buttons have the same HTML markup: </p>
<div class="ui-body ui-body-a"><h4>A swatch</h4><a href="index.html" data-role="button">Button</a></div>
<div class="ui-body ui-body-b"><h4>B swatch</h4><a href="index.html" data-role="button">Button</a></div>
@ -34,13 +33,13 @@
<div class="ui-body ui-body-e"><h4>E swatch</h4><a href="index.html" data-role="button">Button</a></div>
<h2>Assigning theme swatches</h2>
<p>Button can be manually assigned any of the button color swatches from the theme to add visual contrast with the container they sit inside by adding the <code> data-theme</code> attribute on the button markup and specifying a swatch letter. </p>
<p>Buttons can be manually assigned any of the button color swatches from the theme to add visual contrast with the container they sit inside by adding the <code> data-theme</code> attribute on the button markup and specifying a swatch letter. </p>
<pre><code>
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot; data-theme=&quot;a&quot;&gt;Theme a&lt;/a&gt;
</code></pre>
<p>Here are 4 buttons with icons that have a different swatch letter assigned via the <code> data-theme</code> attribute.</p>
<p>Here are 5 buttons with icons that have a different swatch letter assigned via the <code> data-theme</code> attribute.</p>
<a href="index.html" data-role="button" data-theme="a" data-icon="arrow-l" data-inline="true">Theme a</a>
<a href="index.html" data-role="button" data-theme="b" data-icon="arrow-l" data-inline="true">Theme b</a>
@ -99,14 +98,14 @@
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Buttons</li>
<li><a href="buttons-types.html">Button markup options</a></li>
<li><a href="buttons-types.html">Button basics</a></li>
<li><a href="buttons-icons.html">Button icons</a></li>
<li><a href="buttons-inline.html">Inline buttons</a></li>
<li><a href="buttons-grouped.html">Grouped buttons</a></li>

View file

@ -1,33 +1,42 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Button types</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
<div data-role="page" class="type-interior">
<div data-role="header" data-theme="f">
<h1>Button markup options</h1>
<h1>Button basics</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<div class="content-primary">
<p>Buttons that are used for navigation should be coded as anchor links, and those that submit forms as <code>button</code> elements &mdash; each will be styled identically by the framework.</p>
<h2>Button basics</h2>
<ul data-role="controlgroup" data-type="horizontal" class="localnav">
<li><a href="buttons-types.html" data-role="button" data-transition="fade" class="ui-btn-active">Basics</a></li>
<li><a href="buttons-options.html" data-role="button" data-transition="fade">Options</a></li>
<li><a href="buttons-methods.html" data-role="button" data-transition="fade">Methods</a></li>
<li><a href="buttons-events.html" data-role="button" data-transition="fade">Events</a></li>
</ul>
<p>Buttons are coded with standard HTML anchor and input elements, then enhanced by jQuery Mobile to make them more attractive and useable on a mobile device. Use anchor links (<code>a</code> elements) to mark up navigation buttons, and <code>input</code> or <code>button</code> elements for form submission. View the <a href="../api/data-attributes.html">data- attribute reference</a> to see all the possible attributes you can add to buttons.</p>
<h2>Styling links as buttons</h2>
<p>In the main content block of a page, you can style any anchor link as a button by adding the <code> data-role="button"</code> to the link. The framework will add all necessary classes to style the link as a button. For example, this markup: </p>
<p>In the main content block of a page, you can style any anchor link as a button by adding the <code>data-role="button"</code> attribute. The framework will enhance the link with markup and classes to style the link as a button. For example, this markup: </p>
<code>
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot;&gt;Link button&lt;/a&gt;
@ -36,43 +45,47 @@
<p>Produces this <strong>link-based</strong> button:</p>
<a href="index.html" data-role="button">Link button</a>
<p>Links styled like buttons have all the same visual options as true form-based buttons below, but there are a few important differences. Link-based buttons aren't part of the <code>button</code> plugin and only just use the underlying <code>buttonMarkup</code> plugin to generate the button styles so the form button methods (enable, disable, refresh) aren't supported. If you need to disable a link-based button (or any element), it's possible to apply the disabled class ui-disabled yourself with JavaScript to achieve the same effect.</p>
<h2>Form buttons</h2>
<p>For ease of styling, the framework automatically converts any <code>button</code> element or <code>input</code> with a <code>type</code> of <code>submit</code>, <code>reset</code>, <code>button</code>, or <code>image</code> into a custom styled link-based button &mdash; there is no need to add the <code> data-role="button"</code> attribute. </p>
<p>The original form-based button is hidden, but remains in the markup. When a click event fires on a link button, it triggers a click on the original form button.</p>
<p>For ease of styling, the framework automatically converts any <code>button</code> or <code>input</code> element with a <code>type</code> of <code>submit</code>, <code>reset</code>, <code>button</code>, or <code>image</code> into a custom styled button &mdash; there is no need to add the <code> data-role="button"</code> attribute. However, if needed, you can directly call the button plugin on any selector, just like any jQuery plugin:</p>
<code>
$('[type='submit']').button();
</code>
<p>To preserve events bound to the original <code>button</code> or <code>input</code>, the framework hides the original element by making it transparent and positioning it over the new button markup. When a user clicks on the the custom-styled button, they're actually clicking on the original element. To prevent a form button from being converted into an enhanced button, add the <code>data-role="none"</code> attribute and hte native control will be rendered.</p>
<p><strong>Button</strong> based button:</p>
<button>Button element</button>
<p><strong>Input type="button"</strong> based button:</p>
<input type="button" value="Input type=button" />
<input type="button" value="buttonBtn" />
<p><strong>Input type="submit"</strong> based button:</p>
<input type="submit" value="Input type=submit" />
<input type="submit" value="submitBtn" />
<p><strong>Input type="reset"</strong> based button:</p>
<input type="reset" value="Input type=reset" />
<input type="reset" value="resetBtn" />
<p><strong>Input type="image"</strong> based button:</p>
<input type="image" value="Input type=image" />
<input type="image" value="imageBtn" />
</div><!--/content-primary -->
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Buttons</li>
<li data-theme="a"><a href="buttons-types.html">Button markup options</a></li>
<li data-theme="a"><a href="buttons-types.html">Button basics</a></li>
<li><a href="buttons-icons.html">Button icons</a></li>
<li><a href="buttons-inline.html">Inline buttons</a></li>
<li><a href="buttons-grouped.html">Grouped buttons</a></li>
<li><a href="buttons-themes.html">Theming buttons</a></li>
<li><a href="buttons-themes.html">Theming buttons</a></li>
</ul>
</div>
</div>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Buttons</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
@ -24,7 +23,7 @@
<p>Buttons are core widgets in jQuery Mobile, and are used within a wide range of other plugins.</p>
<ul data-role="listview" data-inset="true">
<li><a href="buttons-types.html">Button markup options</a></li>
<li><a href="buttons-types.html">Button basics</a></li>
<li><a href="buttons-icons.html">Button icons</a></li>
<li><a href="buttons-inline.html">Inline buttons</a></li>
<li><a href="buttons-grouped.html">Grouped buttons</a></li>

View file

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Configuration</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script>
$(document).bind("mobileinit", function(){
$.mobile.defaultDialogTransition = 'flip';
});
</script>
<script>
require( {
baseUrl: "../../js"
}) ( [ "jquery.mobile.docs" ] )
</script>
</head>
<body>
<div data-role="page" class="type-index">
<div data-role="header" data-theme="f">
<h1>Config applied</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<h2>defaultDialogTransition is now "flip"</h2>
<p>To test, hit the button below and browse the docs. Note that if a link causes a refresh, this setting will be lost and the default settings will be seen.</p>
<a href="../../index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Browse docs</a>
<a href="../pages/dialog.html" data-role="button" data-rel="dialog">Or open a basic dialog</a>
</div><!-- /ui-body wrapper -->
</div><!-- /page -->
</body>
</html>

View file

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon" href="../_assets/images/ios_icon.png"/>
<link rel="apple-touch-startup-image" href="../_assets/images/ios_startup.png" />
<title>jQuery Mobile Docs - Configuration</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script>
$(document).bind("mobileinit", function() {
if (!!window.navigator.standalone) {
$.mobile.page.prototype.options.addBackBtn = true;
}
});
</script>
<script>
require( {
baseUrl: "../../js"
}) ( [ "jquery.mobile.docs" ] )
</script>
</head>
<body>
<div data-role="page" class="type-index">
<div data-role="header" data-theme="f">
<h1>jQuery Mobile</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div>
<div data-role="content">
<h2>Fullscreen docs in iOS</h2>
<p>First, hit Add to Home Screen to create a new shortcut icon on the home screen. Next, open the new shortcut and hit the button below to browse the docs as a fullscreen web app.</p>
<a href="../../index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Browse docs</a>
</div>
</div><!-- /page -->
</body>
</html>

89
docs/config/index.html Normal file
View file

@ -0,0 +1,89 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Configuration</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
</head>
<body>
<div data-role="page" class="type-index">
<div data-role="header" data-theme="f">
<h1>Pages</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<h2>Global config tests</h2>
<p>The following links will cause a full page refresh so that the global options configuration can take effect. Each link below will tweak a different option for quick testing.</p>
<ul data-role="listview" data-inset="true">
<li>
<a href="pushState.html" data-ajax="false">
<h3>pushStateEnabled - False</h3>
<p>Enhancement to use history.replaceState in supported browsers, to convert the hash-based Ajax URL into the full document path. </p>
</a>
</li>
<li>
<a href="touchOverflow.html" data-ajax="false">
<h3>touchOverflowEnabled - True</h3>
<p>Enable smoother page transitions and true fixed toolbars in devices that support both the overflow: and overflow-scrolling: touch; CSS properties.</p>
</a>
</li>
<li>
<a href="pageTransition.html" data-ajax="false">
<h3>defaultPageTransition - Fade</h3>
<p>Set the default transition for page changes that use Ajax. Set to 'none' for no transitions by default.</p>
</a>
</li>
<li>
<a href="dialogTransition.html" data-ajax="false">
<h3>defaultDialogTransition - Flip</h3>
<p>Set the default transition for dialog changes that use Ajax. Set to 'none' for no transitions by default.</p>
</a>
</li>
<li>
<a href="minScrollBack.html" data-ajax="false">
<h3>minScrollBack - 999</h3>
<p>Minimum scroll distance that will be remembered when returning to a page.</p>
</a>
</li>
<li>
<a href="loadingMessage.html" data-ajax="false">
<h3>loadingMessage - false</h3>
<p>Set the text that appears when a page is loading. If set to false, the message will not appear at all.</p>
</a>
</li>
<li>
<a href="pageLoadErrorMessage.html" data-ajax="false">
<h3>pageLoadErrorMessage - "Yikes, we broke the internet!"</h3>
<p>Set the text that appears when a page fails to load through Ajax.</p>
</a>
</li>
<li>
<a href="iOSFullscreen.html" data-ajax="false">
<h3>apple-mobile-web-app-capable meta tag</h3>
<p>View the docs without browser chrome in iOS.</p>
</a>
</li>
<li>
<a href="jq17b1.html" data-ajax="false">
<h3>jQuery core version 1.7 Beta 1</h3>
<p>Test the docs with the latest jQuery core version</p>
</a>
</li>
</ul>
</div><!-- /ui-body wrapper -->
</div><!-- /page -->
</body>
</html>

34
docs/config/jq17b1.html Normal file
View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Configuration</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="http://code.jquery.com/jquery-1.7b1.js"></script>
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
</head>
<body>
<div data-role="page" class="type-index">
<div data-role="header" data-theme="f">
<h1>jQuery version</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<h2>jQuery core version 1.7 Beta 1</h2>
<p>To test, hit the button below and browse the docs. Note that if a link causes a refresh, this setting will be lost and the default settings will be seen.</p>
<a href="../../index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Browse docs</a>
</div><!-- /ui-body wrapper -->
</div><!-- /page -->
</body>
</html>

View file

@ -0,0 +1,44 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Configuration</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script>
$(document).bind("mobileinit", function(){
$.mobile.loadingMessage = false;
});
</script>
<script>
require( {
baseUrl: "../../js"
}) ( [ "jquery.mobile.docs" ] )
</script>
</head>
<body>
<div data-role="page" class="type-index">
<div data-role="header" data-theme="f">
<h1>Config applied</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<h2>loadingMessage is now disabled</h2>
<p>To test, hit the button below and browse the docs. Note that if a link causes a refresh, this setting will be lost and the default settings will be seen.</p>
<a href="../../index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Browse docs</a>
</div><!-- /ui-body wrapper -->
</div><!-- /page -->
</body>
</html>

View file

@ -0,0 +1,44 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Configuration</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script>
$(document).bind("mobileinit", function(){
$.mobile.minScrollBack = 999;
});
</script>
<script>
require( {
baseUrl: "../../js"
}) ( [ "jquery.mobile.docs" ] )
</script>
</head>
<body>
<div data-role="page" class="type-index">
<div data-role="header" data-theme="f">
<h1>Config applied</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<h2>minScrollBack is now set to 999 (disabled)</h2>
<p>To test, hit the button below and browse the docs. Note that if a link causes a refresh, this setting will be lost and the default settings will be seen.</p>
<a href="../../index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Browse docs</a>
</div><!-- /ui-body wrapper -->
</div><!-- /page -->
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Configuration</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script>
$(document).bind("mobileinit", function(){
$.mobile.pageLoadErrorMessage = 'Yikes, we broke the internet!';
});
</script>
<script>
require( {
baseUrl: "../../js"
}) ( [ "jquery.mobile.docs" ] )
</script>
</head>
<body>
<div data-role="page" class="type-index">
<div data-role="header" data-theme="f">
<h1>Config applied</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<h2>pageLoadErrorMessage is now "Yikes, we broke the internet!"</h2>
<p>To test, hit the button below and browse the docs. Note that if a link causes a refresh, this setting will be lost and the default settings will be seen.</p>
<a href="../../index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Browse docs</a>
<a href="broken.html" data-role="button" data-rel="dialog">Or try this broken link</a>
</div><!-- /ui-body wrapper -->
</div><!-- /page -->
</body>
</html>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Configuration</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script>
$(document).bind("mobileinit", function(){
$.mobile.defaultPageTransition = 'fade';
});
</script>
<script>
require( {
baseUrl: "../../js"
}) ( [ "jquery.mobile.docs" ] )
</script>
</head>
<body>
<div data-role="page" class="type-index">
<div data-role="header" data-theme="f">
<h1>Config applied</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<h2>defaultPageTransition is now "fade"</h2>
<p>To test, hit the button below and browse the docs. Note that if a link causes a refresh, this setting will be lost and the default settings will be seen.</p>
<a href="../../index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Browse docs</a>
</div><!-- /ui-body wrapper -->
</div><!-- /page -->
</body>
</html>

View file

@ -0,0 +1,44 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Configuration</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script>
$(document).bind("mobileinit", function(){
$.mobile.pushStateEnabled = false;
});
</script>
<script>
require( {
baseUrl: "../../js"
}) ( [ "jquery.mobile.docs" ] )
</script>
</head>
<body>
<div data-role="page" class="type-index">
<div data-role="header" data-theme="f">
<h1>Config applied</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<h2>pushStateEnabled is now disabled</h2>
<p>To test, hit the button below and browse the docs. Note that if a link causes a refresh, this setting will be lost and the default settings will be seen.</p>
<a href="../../index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Browse docs</a>
</div><!-- /ui-body wrapper -->
</div><!-- /page -->
</body>
</html>

View file

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Configuration</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script>
$(document).bind("mobileinit", function(){
$.mobile.touchOverflowEnabled = true;
});
</script>
<script>
require( {
baseUrl: "../../js"
}) ( [ "jquery.mobile.docs" ] )
</script>
</head>
<body>
<div data-role="page" class="type-index">
<div data-role="header" data-theme="f" data-position="fixed">
<h1>Config applied</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->
<div data-role="content">
<h2>touchOverflowEnabled is now active</h2>
<p>The toolbar on this page should now be fixed, like a native toolbar. To test, hit the button below and browse the docs. Note that if a link causes a refresh, this setting will be lost and the default settings will be seen.</p>
<a href="../../index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Browse docs</a>
<a href="../pages/touchoverflow.html" data-role="button" data-icon="arrow-r" data-iconpos="right">touchOverflow docs</a>
<h3>Some good pages to test out:</h3>
<a href="../toolbars/bars-fixed.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Fixed toolbars</a>
<a href="../toolbars/bars-fullscreen.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Fullscreen toolbars</a>
<a href="../toolbars/footer-persist-a.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Fixed persistent footer</a>
<a href="../pages/page-dialogs.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Dialogs &amp; transitions</a>
</div><!-- /ui-body wrapper -->
</div><!-- /page -->
</body>
</html>

View file

@ -1,14 +1,13 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Content formatting</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>

Some files were not shown because too many files have changed in this diff Show more