Compare commits

..

3987 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
John Resig
f8e056bb29 Version 1.0b3 released. 2011-09-08 17:05:10 -04:00
Kin Blas
bdbb1bcc7e Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-08 13:48:01 -07:00
Kin Blas
675657f877 Added an index page for the dynamic-samples directory and linked to it from the age-dynamic.html page. 2011-09-08 13:46:18 -07:00
Kin Blas
92699e0011 Merge branch 'master' into data-driven-with-fallback 2011-09-08 13:38:06 -07:00
Kin Blas
b3ce277152 Moved scottjehl's modified sample to a new file (sample-reuse-page-external.html) and restored the original code in sample-reuse-page.html. 2011-09-08 13:35:42 -07:00
toddparker
7942e3333d Merge remote branch 'origin/master' 2011-09-08 16:01:00 -04:00
toddparker
7d2b6f839b Updated docs for beta 3 2011-09-08 16:00:54 -04:00
scottjehl
6e0912f3b5 progress towards making this demo work with urls that represent server resources 2011-09-08 15:58:53 -04:00
Kin Blas
f894d4704b Adding links to page-dynamic.html to all menus. 2011-09-08 12:34:48 -07:00
Kin Blas
95f1d5c6df Fixed the broken sample link. 2011-09-08 12:03:43 -07:00
Kin Blas
4a5b804df9 Added more content. 2011-09-08 12:00:57 -07:00
Kin Blas
889d4b5acf Corrected a grammatical error in one of the sample comments. 2011-09-08 11:30:02 -07:00
Kin Blas
711a552bfb Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-08 11:27:26 -07:00
Kin Blas
64537fa8c0 Removed some debug code from sample-reuse-page.html.
Checking in the start of a doc that walks folks through how to use the pagebeforechange event to short-circuit default changePage() behavior.
2011-09-08 11:26:22 -07:00
gseguin
6f5a7d1266 Fix for issue #2404
Collapsible are collapsed by default
2011-09-08 13:34:58 -04:00
gseguin
3ba911a6f8 jshint was complaining about .this 2011-09-08 13:34:58 -04:00
scottjehl
82a9a5bb3f documented the new touchOverflowEnabled configuration property. 2011-09-08 13:33:26 -04:00
scottjehl
f49e69ef84 disabled iOS5 improvements by default. Can be enabled by binding to mobileinit and setting $.mobile.touchOverflowEnabled = true; 2011-09-08 13:26:33 -04:00
scottjehl
b645781f4d implemented native overflow scrolling based on support for -[prefix]-overflow-scrolling: touch. True fixed headers and footers come supported as well. 2011-09-08 12:38:50 -04:00
scottjehl
bb4e1ca275 removed image dimensions in demo page 2011-09-08 12:38:50 -04:00
scottjehl
bc036b91b0 Clock tap is busted, so this logic is here but commented-out 2011-09-08 12:38:50 -04:00
scottjehl
fda71670b4 reset scrollTop to 0, not defaultHomeScroll 2011-09-08 12:38:50 -04:00
scottjehl
6333be5ddf changed the docs bg image so it doesn't act fixed in iOS5 2011-09-08 12:38:50 -04:00
scottjehl
1a524756f3 added a pre-transition class to set pages to display: block early and allow for their scrollTop and focus to be set before they are shown. 2011-09-08 12:38:50 -04:00
scottjehl
440be55f2b changed the name of the overflow support test and class to touchOverflow / touch-overflow 2011-09-08 12:38:50 -04:00
scottjehl
c8e676d591 applied conditional overflow scrolling to page div 2011-09-08 12:38:50 -04:00
scottjehl
dae560d67f added support test & html class for overflow-scrolling-touch 2011-09-08 12:38:49 -04:00
scottjehl
2f63fdf3ec Merge remote branch 'origin/master' 2011-09-08 12:32:27 -04:00
scottjehl
bf02fc880d increased timeout that waits for a potential hashchange event to fire as a result of pop. 2011-09-08 12:31:59 -04:00
Kin Blas
fcbd4c3030 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-08 09:24:16 -07:00
Kin Blas
78041bc7c9 Added path.isFirstPageUrl() which is now called from loadPage() when trying to determine if the URL being loaded refers to a page that is already in the DOM. This will prevent us from duplicating the first-page in the main application document.
Also checking in the first example of how to use the pagebeforechange notification to allow for dynamically updating and re-using a page that is already in the DOM.
2011-09-08 09:21:31 -07:00
scottjehl
db3dbc04d2 Merge remote branch 'origin/master' 2011-09-08 11:59:43 -04:00
scottjehl
7be8311d4e added location.search to the original page data-url 2011-09-08 11:58:55 -04:00
toddparker
557da74be0 Fixed typo in button state active default docs. Closes #2403. Thanks jasonrsavino! 2011-09-08 11:30:42 -04:00
toddparker
2dc25539b6 Merge remote branch 'origin/master' 2011-09-08 10:59:06 -04:00
toddparker
fb1c8bee81 Added a non-adax form submit example. Improved the styling of the forms and confirmation pages. 2011-09-08 10:58:23 -04:00
Kin Blas
04623c21cf Merge branch 'master' into changepage-prevent 2011-09-07 18:07:21 -07:00
Kin Blas
6aa8c8f3b0 - Added "fromPage" option to changePage(). This used to be in there before the navigation re-work, I just added it back in.
- Added "dataUrl" option to changePage(). This allows a caller to specify a page element to change to, but specify an alternate URL for location display purposes. This is useful for dynamic applications that re-use and over-write existing page content to avoid overwhelming the DOM.

- Renamed the "beforechangepage" and "changepage" events to "pagebeforechange" and "pagechange" respectively. This was done to match the page widget naming of its notifications. Left the triggers for the old events in place but with DEPRECATED comments.

- Renamed the properties of the data object passed to the page events.
2011-09-07 18:03:38 -07:00
scottjehl
d0fe757a28 Merge remote branch 'origin/master' 2011-09-07 10:10:32 -04:00
dtao
fa4d9c16d7 fixed typo: 'throttledResize' => 'throttledresize' 2011-09-07 10:09:00 -04:00
Kin Blas
abb812cc01 Fixes for issue 1464 - No way to stop a link from being followed with some custom event (tap, taphold)
jquery.mobile.vmouse.js:

	- Modified triggerVirtualEvent() so that it returns the virtual event instead of the isDefaultPrevented() result of the virtual event.

		- Updated all references to triggerVirtualEvent() that relied on the boolean return value to instead check the isDefaultPrevented() call on the event now returned.

			- Updated mouseEventCallback() to propagate the iDefaultPrevented(), isPropagationStopped(), and stopImmediatePropagation() values from the virtual event on to the  original mouse event.

			jquery.mobile.event.js

				- Modified the "taphold" trigger code to create a new $.Event() instead of passing the stale vmousedown event.

					- Added clearTapTimer() which is called from a new vmouseup binding, to prevent the timer from firing between the tie the finger/mouse goes up and the click event is dispatched.

					- Added some propagation tests for the "tap" event. Tests for "taphold" will have to wait until we fix the problem where multiple taphold timers are fired off when an element and one of its ancestors is bound to taphold.
2011-09-07 10:09:00 -04:00
John Bender
ad7e5bc8d1 added comment for the touches event proto addition 2011-09-07 10:09:00 -04:00
John Bender
3dfcf5fd77 fixed event tests to trigger on a dom element 2011-09-07 10:09:00 -04:00
Kin Blas
5333ab7bf7 I noticed that the code in the mouseup for the toggle switch was using a CSS3 transition, but calling the animationComplete() function which waits for an animationend event which will never come. This means we bind a new animationComplete() handler every time the toggle switch is clicked.
I removed the binding for the handler completely since it doesn't hurt to just leave the transition in place. I also removed the code that was setting the position of the slider since it really should only be set within the mouseup if the user did not change the switch setting (toggle).
2011-09-07 10:09:00 -04:00
Kin Blas
2f160e1402 Fix for issue 2346 - Flip toggle switches don't animate when tapped.
- Changed the target selector for ui-slider-handle-snapping from:

    div.ui-slider-handle-snapping

  to:

    a.ui-slider-handle-snapping

  to match the actual markup being generated.
2011-09-07 10:09:00 -04:00
Kin Blas
81c3957129 Fix for issue 1925 - Single tap triggers two actions, especially in android B1
- Trigger the list item and keyboard return/space key up to the "click" event instead of "vclick". This delays the dismissal of the custom select menu until the click event, thereby avoiding the case where the menu disappears before the browser dispatches it's synthesized mouse events (in the touch case) with a target of whatever element was underneath the menu.
2011-09-07 10:09:00 -04:00
scottjehl
28bb987729 added a unit test for last-scroll remembering. 2011-09-07 09:16:02 -04:00
scottjehl
d68d5064bc finished last-scroll remembering implementation across pages in the history stack (regardless of whether they've been removed from the DOM since last appearance). 2011-09-07 08:15:00 -04:00
Ghislain Seguin
baded0d492 Merge pull request #2393 from dtao/patch-1
Fix for issue #2390: fixed typo: 'throttledResize' => 'throttledresize'
2011-09-06 22:33:37 -07:00
Kin Blas
701b381cc4 Couple of modifications to changePage():
- Moved the setting of isPageTransitioning *AFTER* the beforechangepage notification.

- Modified the trigger("beforechangepage") call to pass the args to changePage() as an object since trigger only expects one data arg.
2011-09-06 16:56:20 -07:00
dtao
a4b9079cd7 fixed typo: 'throttledResize' => 'throttledresize' 2011-09-06 16:19:06 -07:00
scottjehl
0d98b8fad6 changed setting of lastScroll 2011-09-06 14:29:19 -04:00
scottjehl
97539ed3bd focus on title or page div 2011-09-06 12:58:14 -04:00
scottjehl
ebafc02cfe add tabindex to page element 2011-09-06 12:58:14 -04:00
scottjehl
003505a4b9 changed minscroll to 250, better organization of lastscroll 2011-09-06 12:56:46 -04:00
scottjehl
ac67e92cbb This change sets the "lastScroll" property to each urlHistory item object, allowing us to remember previous scroll distances when returning to a page that has since been removed from the DOM. Before this change, this number was stored in data on the page element, so it is lost when the page is removed after pagehide.
Also, this change removes a reference in memory that we were keeping to the $activeClickedLink on each page. We stored this in attempt to refocus a link after returning to a page. Unfortunately, it doesn't seem that this data can be retained after pages are removed from the DOM, outside of somehow remembering a unique selector string to reach that element again (which could be achieved by adding some overhead, ala http://stackoverflow.com/questions/2068272/getting-a-jquery-selector-for-an-element )
2011-09-06 12:56:46 -04:00
scottjehl
522b48ee84 started on the change to allow default prevention on beforechangepage 2011-09-05 13:05:57 -04:00
Kin Blas
7cce0c5573 Fixes for issue 1464 - No way to stop a link from being followed with some custom event (tap, taphold)
jquery.mobile.vmouse.js:

	- Modified triggerVirtualEvent() so that it returns the virtual event instead of the isDefaultPrevented() result of the virtual event.

		- Updated all references to triggerVirtualEvent() that relied on the boolean return value to instead check the isDefaultPrevented() call on the event now returned.

			- Updated mouseEventCallback() to propagate the iDefaultPrevented(), isPropagationStopped(), and stopImmediatePropagation() values from the virtual event on to the  original mouse event.

			jquery.mobile.event.js

				- Modified the "taphold" trigger code to create a new $.Event() instead of passing the stale vmousedown event.

					- Added clearTapTimer() which is called from a new vmouseup binding, to prevent the timer from firing between the tie the finger/mouse goes up and the click event is dispatched.

					- Added some propagation tests for the "tap" event. Tests for "taphold" will have to wait until we fix the problem where multiple taphold timers are fired off when an element and one of its ancestors is bound to taphold.
2011-09-02 16:56:15 -07:00
John Bender
0b41fe808c added comment for the touches event proto addition 2011-09-02 13:56:37 -07:00
John Bender
c3dfcf6bdf fixed event tests to trigger on a dom element 2011-09-02 13:40:12 -07:00
Kin Blas
7bf048a214 I noticed that the code in the mouseup for the toggle switch was using a CSS3 transition, but calling the animationComplete() function which waits for an animationend event which will never come. This means we bind a new animationComplete() handler every time the toggle switch is clicked.
I removed the binding for the handler completely since it doesn't hurt to just leave the transition in place. I also removed the code that was setting the position of the slider since it really should only be set within the mouseup if the user did not change the switch setting (toggle).
2011-09-01 15:42:30 -07:00
Kin Blas
a27f7d355f Fix for issue 2346 - Flip toggle switches don't animate when tapped.
- Changed the target selector for ui-slider-handle-snapping from:

    div.ui-slider-handle-snapping

  to:

    a.ui-slider-handle-snapping

  to match the actual markup being generated.
2011-09-01 15:28:20 -07:00
Kin Blas
6759afff66 Fix for issue 1925 - Single tap triggers two actions, especially in android B1
- Trigger the list item and keyboard return/space key up to the "click" event instead of "vclick". This delays the dismissal of the custom select menu until the click event, thereby avoiding the case where the menu disappears before the browser dispatches it's synthesized mouse events (in the touch case) with a target of whatever element was underneath the menu.
2011-09-01 14:17:10 -07:00
Todd Parker
df8d6fa8d5 Merge pull request #2375 from globalmatt/master
Docs: Cleaned up "Prefetching & caching pages" page. Thanks globalmatt
2011-09-01 04:15:07 -07:00
Matt Doyle
5832890185 Docs: Cleaned up "Prefetching & caching pages" page
Renamed page for consistency and edited/clarified page content
2011-09-01 16:52:48 +10:00
gseguin
001e588c92 Fix for issue #2017. Clear active link on vclick so there can be only one active link at a time. 2011-08-31 21:46:39 -07:00
gseguin
e28ad6d95d re-added setting of $.mobile.activeBtnClass on selected option but only for single select lists 2011-08-31 13:33:52 -07:00
gseguin
d6da6fed64 piggy back on checkbox/radio to define background-color for ui-icon-checkbox-on 2011-08-31 13:32:44 -07:00
gseguin
4cb52c4908 set aria-selected on li element when li is selected 2011-08-31 11:16:11 -07:00
gseguin
830663d88b Changed look and feel of custom select options to match the checkbox/radio 2011-08-31 10:43:34 -07:00
gseguin
3dc4b9f9fa Removed activeBtnClass from selected option 2011-08-31 10:43:23 -07:00
gseguin
14c98e8ef7 Another version of https://github.com/jquery/jquery-mobile/pull/2363 by @jgable 2011-08-31 09:56:15 -07:00
John Bender
f679d30620 added ipv6 support to urlparse regex Fixes #2362 2011-08-30 15:59:46 -07:00
John Bender
23ee457309 whitespace in navigation helper tests 2011-08-30 15:52:31 -07:00
John Bender
41ef18aa56 Merge pull request #2357 from zachleat/master
Extra directory on the JS source files in ant build script
2011-08-29 22:32:40 -07:00
Todd Parker
dc230cbb63 Merge pull request #2360 from lagartoflojo/patch-1
Small typo fix
2011-08-29 17:34:02 -07:00
lagartoflojo
6528c09ab3 Small typo fix 2011-08-30 02:31:31 -03:00
Kin Blas
191b5e04a3 Fix for issue 2345 - Flip toggle switches *ALWAYS* toggle
- We now track whether or not the user has modified the value of the switch control. If so, we don't toggle it's value on mouseup.
2011-08-29 12:39:25 -07:00
John Bender
fd286444f4 replaceState *and* pushState are now required for $.support.pushState to be true 2011-08-29 10:18:40 -07:00
John Bender
07edada0dd added todo to centralize page dom removal and ref counting Fixes #2329 2011-08-29 10:09:22 -07:00
John Bender
bddc8c8ed2 small tweak to directedHashChange to make sure the right value is passed in for isBack 2011-08-29 09:12:39 -07:00
zachleat
65c26fd569 Build script js-sources had extra js directory in paths. 2011-08-29 11:12:13 -05:00
scottjehl
d63350ca6c set initial page div's data-url to location.pathname unless it has an ID on it. This fixes an issue where going back to the initial page will end up generating a new homepage rather than transitioning to the one already in the dom. 2011-08-28 00:06:27 -04:00
scottjehl
6de76168af Clarified the documentation around the purpose of the pagebeforecreate event and removed the pagebeforecreate return value check, as returning beforecreate false is no longer relevant now that all plugins auto-init externally, rather than inline in the page plugin. 2011-08-27 11:26:16 -04:00
scottjehl
10e2d5a61a previous commit should not have switched the order of trigger and add classes. Reverted, with cleanup still in place. 2011-08-27 11:07:21 -04:00
scottjehl
ce5ce102dc A little simplification in the page plugin 2011-08-27 10:58:46 -04:00
John Bender
a3487e620d simplified the default hash handling prevention back to somthing akin to @scottjehl's original implementation 2011-08-27 02:47:54 -07:00
John Bender
76d5c49b78 minor refactor and check for defined attr 2011-08-27 01:01:54 -07:00
John Bender
6b010492b2 minor refactors in nav and pushstate for clarity 2011-08-27 01:01:54 -07:00
John Bender
82cce1fa60 fix the chrome bug and reduce the number of crazy hash juggles we do 2011-08-27 01:01:54 -07:00
John Bender
328d58b2e9 fixed role retention issue from clearing the dom cache 2011-08-27 01:01:54 -07:00
John Bender
c3bac78880 moved push state dialog key test down into its own file to have the key at the root 2011-08-27 01:01:54 -07:00
John Bender
1811b31715 added sub page hash key tests 2011-08-27 01:01:54 -07:00
John Bender
7ed31bedb5 added test to make sure the dialog key is always in the hash 2011-08-27 01:01:54 -07:00
John Bender
3a13a6ec75 renamed replacestate key handling method 2011-08-27 01:01:53 -07:00
scottjehl
50aca4e613 Links to the transitions page need to use data-ajax="false" because it uses multipage. 2011-08-26 20:07:38 -04:00
John Bender
b569c1cc8b fix for dialog and subpage key url issues with replace state 2011-08-26 14:54:27 -07:00
toddparker
66fb6bba2f Moved the transition sampler page to a multi-page format to avoid the loader every time you want to try a transition. Leaving the old page here for now because we may link to it elsewhere. 2011-08-26 17:00:44 -04:00
toddparker
01f61cfd54 Removed prefetch. Can't use that on a dialog. 2011-08-26 16:58:16 -04:00
toddparker
cd5cb16fe1 Added prefetch attr and fixed theme tags in markup for dialogs 2011-08-26 16:53:26 -04:00
John Bender
0346cbe439 added note on managing element id's in pages loaded via ajax 2011-08-26 09:15:47 -07:00
John Bender
9eef5cec53 added documentation covering the replaceState plugin 2011-08-26 09:15:23 -07:00
John Bender
49cf3af91a Merge branch 'replacestate-external' 2011-08-25 13:05:54 -07:00
John Bender
df9e23390f extra comments for clarity 2011-08-25 11:51:01 -07:00
John Bender
8a994d3dfa add config option for pushstate 2011-08-25 11:42:32 -07:00
John Bender
44eaf7707b fix broken hash on dialog after initial page load 2011-08-25 10:49:51 -07:00
John Bender
af0e1f5d7e whitepasce in nav 2011-08-25 10:49:51 -07:00
Ghislain Seguin
884bfdee3b Merge pull request #2312 from MichelHartmann/patch-1
Fixed closing the dialog, when the page is removed.
2011-08-25 08:38:44 -07:00
John Bender
7d68059dd6 removed initial disable for spurious popstate and moved to doc ready init for late inclusion in the document instead of monkey patching 2011-08-24 15:59:06 -07:00
gseguin
00e56c1560 Added test for ui-li-has presence
related to issue #779
2011-08-24 13:55:15 -07:00
gseguin
2cc8c7ff34 Fix for issue #779
Addressing @jakeboone02's comments at dd9ae4898b (commitcomment-531858)
2011-08-24 13:54:03 -07:00
gseguin
e98215a3e1 Whitespace change 2011-08-24 10:48:13 -07:00
Michael Platov
b9557705b3 Fix for issue 509 textarea autogrow 2011-08-24 14:28:12 +08:00
John Bender
657f6b8c3f make sure the popstate replacestate call uses the full href 2011-08-23 12:07:52 -07:00
John Bender
2c7789b6a3 clean scoping add, comment 2011-08-22 14:58:42 -07:00
John Bender
49eeccdde3 rescope self 2011-08-22 14:31:14 -07:00
Ghislain Seguin
8ae331363d Merge pull request #2324 from jgable/fix_docs_collapsible_typo
Fix for small typo in collapsible-set docs page
2011-08-22 13:15:09 -07:00
jacob4u2
cc5ff24500 Fix for small typo in collapsible-set docs page 2011-08-22 14:30:11 -05:00
Richard D. Worth
a5a608c2e5 Fixed a typo. Thanks gregmelson http://bugs.jqueryui.com/ticket/7660 2011-08-22 07:49:33 -04:00
John Bender
e3fb2e285b handle query strings for initial replaceState 2011-08-20 07:29:21 -07:00
John Bender
547afbf184 manually hoist variables 2011-08-20 07:21:49 -07:00
Michel Hartmann
9c088cd5ba Fixed closing the dialog, when the page is removed. 2011-08-20 06:31:20 +03:00
John Bender
1dd791175a proposed solution to the navigate, refresh, back button pushstate bug. the determination of the hash to be stored in the replaced state is done in a consistent fashion where, if there is no hash, its defaulted to the original load path by puting the logic in a central method. @scottjehl give it a try and let me know if this works for you 2011-08-19 18:54:29 -07:00
John Bender
12391923fc added comment to make sure folks aren't confused as to why one of the test pages is just a redirect 2011-08-19 18:41:24 -07:00
John Bender
66aec28d8a renamed redirect test pages for clarity in test suite runner 2011-08-19 14:08:37 -07:00
John Bender
a671c559f4 nav tests passing for both push state and hash 2011-08-19 14:02:35 -07:00
Todd Parker
6d7350ba86 Merge pull request #2309 from maxrabin/patch-1
Edited docs/about/features.html via GitHub. Thanks maxrabin!
2011-08-19 09:52:10 -07:00
maxrabin
b887fb9d59 Edited docs/about/features.html via GitHub 2011-08-19 23:33:18 +03:00
John Bender
d3a1acdca8 small fix to capture failures properly in test suite runner 2011-08-18 23:33:16 -07:00
scottjehl
b438472fec if no hash is present, run a replacestate. All nav tests still passing. 2011-08-18 22:41:13 -04:00
scottjehl
bf593857f6 degraded type should have been "text" instead of true. Addresses a comment in issue #2123 2011-08-18 22:01:58 -04:00
Kin Blas
ab1a52b51d With the exception of "ms", which we don't support anyways, all vendor prefixed CSS properties are converted into style object properties with a name that begins with an upper case. Note, that webkit duplicates these properties on the style object, such that the property can be referenced with a leading caps, or leading lower-case.
This change was necessary at least for the transitions branch because the lookup for the 'transform' property was failing on FireFox.
2011-08-18 16:40:08 -07:00
John Bender
7b122cacfc fixed tests to work with both pushstate and hash 2011-08-18 16:28:28 -07:00
John Bender
2c3d9bc2f1 removed extra replace state fire, need to check with @scottjehl 2011-08-18 16:25:21 -07:00
John Bender
ef52c8d312 updated core to use the url assertions for both hash and replace state 2011-08-18 14:13:39 -07:00
gseguin
e39a320214 Added unit tests for issue #1405 2011-08-17 18:15:57 -07:00
gseguin
9f3836e7b1 Fix for issue #1405: Moved assignment of $activeClickedLink to the vclick handler in charge of adding the active state 2011-08-17 17:32:55 -07:00
gseguin
d55b225ae9 Merge remote-tracking branch 'upstream/master' 2011-08-17 17:32:32 -07:00
John Bender
fb5d9df56f simplified the pushstate some more 2011-08-17 16:32:59 -07:00
John Bender
b197e760fd simplified the hash handling with help from @jblas 2011-08-17 16:22:09 -07:00
gseguin
6fb51b1d3d replaced ui-btn-active by $.mobile.activeBtnClass 2011-08-17 16:12:42 -07:00
John Bender
a8aa78d331 remove json_encode for those who aren't able to upgrade their version of php for god knows what reason ;) 2011-08-17 15:40:18 -07:00
John Bender
82dc08fee9 fixed listview tests for both pushstate and hash 2011-08-17 15:19:52 -07:00
gseguin
3737d170a0 Merge remote-tracking branch 'upstream/master' 2011-08-17 13:29:07 -07:00
John Bender
866b1b0db4 Merge pull request #2289 from SamuelKC/selectDomCacheFix2
check the domCache option before rebinding the page remove on select menu
2011-08-17 12:17:32 -07:00
gseguin
63c94d954d Added use of class ui-corner-none for France and United States in Icon list so the icons don't get rounded corners 2011-08-17 12:12:05 -07:00
gseguin
14bb9921be Reduced number of tests for "Top and bottom corners rounded in inset list" but added more meaningful tests 2011-08-17 12:10:18 -07:00
gseguin
a620d97868 Re-uses the boolean create at creation time to let the refresh functions know that they've been called by create 2011-08-17 12:09:07 -07:00
gseguin
bcd0a05982 Added .ui-corner-none 2011-08-17 12:07:05 -07:00
John Bender
b7d5df786f whitespace and comment merge conflict resolved 2011-08-17 11:09:05 -07:00
John Bender
81737dba6a small whitespace fix 2011-08-17 10:51:18 -07:00
John Bender
74300195b3 moved pushstate library disable and load into testhelper 2011-08-17 10:49:38 -07:00
John Bender
886cdcf927 setup pushstate tests 2011-08-17 10:25:51 -07:00
John Bender
5775dd19a4 whitespace in nav core tests 2011-08-17 10:05:24 -07:00
John Bender
eba4e7eeb4 switched path helper 2011-08-16 17:06:55 -07:00
John Bender
b41b0573d2 leverage the path helpers to get this right 2011-08-16 13:25:04 -07:00
John Bender
1a4dd41293 alterted base path tests as an example of how to preserve content testing while accomodating both possible url formats 2011-08-16 12:56:10 -07:00
John Bender
72ce65767e support embedded pages as a hash since the concatenated form represents a file 2011-08-16 12:55:03 -07:00
Samuel Padou
e8f78dacb1 check the domCache option before rebinding the page remove when closing a full page select menu 2011-08-16 13:57:07 +02:00
Samuel Padou
9da8114fca add test for domCache option handling when closing a full page select menu 2011-08-16 13:55:02 +02:00
John Bender
43b1b776d9 minor refactor for comprehension 2011-08-15 17:01:37 -07:00
John Bender
3d14498fe1 moved select caching tests out to a seperate test file to prevent issues in the core test suite 2011-08-15 13:00:01 -07:00
John Bender
907cf655b3 fixed navigation base tests to handle the relative internal page issue by using the click hack, per @jblas 2011-08-15 12:46:09 -07:00
John Bender
b0c20e9d2a whitespace 2011-08-15 12:45:31 -07:00
John Bender
5b4a29e643 added **/*-tests.html glob convention to the test suite runner to make it easier to include seperate files in the suite 2011-08-15 12:09:56 -07:00
John Bender
5c40e69c3a moved the relative path changing tests to the bottom of the core file, this is not a solution only a temporary fix. moving the relative path changing tests to another test file will most likely be the next move 2011-08-15 11:45:47 -07:00
scottjehl
c864dac3b1 added replacestate to the tests, as that's the method we're using 2011-08-14 13:44:40 -04:00
scottjehl
0512916e72 centralized the hashchange fired flag 2011-08-14 10:20:14 -04:00
scottjehl
854ce44179 timeout number is arbitrary. Still looking for a way around it though. 2011-08-14 10:03:16 -04:00
scottjehl
2d29880f4c whitespace stuff 2011-08-14 09:57:12 -04:00
scottjehl
3ebe7b4218 just use location.pathname. same thing, in hindsight. 2011-08-14 09:30:33 -04:00
John Bender
a197e17500 cleaned up test suite index html, added reporting for failed and successfull tests at the suite level 2011-08-13 00:50:16 -07:00
John Bender
c5c89344ad prevent qunit from running the suite until all the tests are defined 2011-08-12 14:41:45 -07:00
John Bender
2b3153365f fixed build files to include custom select 2011-08-12 10:39:36 -07:00
John Bender
cfe12241a2 fixedcustom select extension to respect the prototype alterations Fixes #2272 2011-08-12 09:56:54 -07:00
John Bender
781c2430f5 minor whitespace in test runner 2011-08-12 09:56:54 -07:00
scottjehl
6d2f9737db conditionally trigger the hashchange after a popstate, only if it doesn't trigger its own. 2011-08-12 12:53:07 -04:00
Ghislain Seguin
89ef248339 Merge pull request #2269 from jgable/fix_lists-split-purchase
Fix for Docs Split Button List dialog has weird line artifact from .type-interior class
2011-08-11 23:54:27 -07:00
John Bender
1fd9af8e36 minor refactor to test suite runner, and js moved to head 2011-08-11 22:55:27 -07:00
John Bender
fb0f6baf24 refactor of test suite runner, added passed/failed counts to suite results 2011-08-11 22:34:09 -07:00
Jacob Gable
0dc54d59a2 Fix for Split Button List dialog having no background and weird line from background image 2011-08-11 20:03:36 -05:00
gseguin
5917b379e1 Merge remote-tracking branch 'upstream/master' 2011-08-11 17:01:15 -07:00
gseguin
dd9ae4898b Fix for issue #779
Added a ui-li-has-count class for listview items that contain a count bubble. Changed default padding-right to 25px adjusting it to 75px when count bubble is present.
2011-08-11 16:59:51 -07:00
gseguin
eb1ff373cb Added a few tests for corners on inset lists 2011-08-11 16:23:15 -07:00
gseguin
ef431a870c remove corners on all li elements of the list when refreshing corners 2011-08-11 16:22:11 -07:00
John Bender
5d081afa48 removed leftover files from old decoupled select menu iterations 2011-08-11 15:34:44 -07:00
Ghislain Seguin
e0ae323bd8 Merge pull request #2262 from gseguin/issue-1450
Fix for issue #1450
2011-08-11 12:11:43 -07:00
gseguin
36e0fb53c7 Made _refreshCorners private 2011-08-11 12:08:27 -07:00
gseguin
be3bd42f8a Use $.testHelper.sequence instead of nested setTimeouts 2011-08-10 23:34:31 -07:00
gseguin
418bb8786a Fix for issue #1450: added refreshCorners method to listview widget 2011-08-10 23:15:38 -07:00
gseguin
97b7c20e78 Merge remote-tracking branch 'upstream/master' 2011-08-10 23:08:56 -07:00
gseguin
fe6f406a10 Moved away from setTimeout in favor of $.testHelper.pageSequence 2011-08-10 18:28:24 -07:00
Andri Möll
70bd1ba371 Fix nested waiting-for-dom for initializePage.
Using dom-ready within dom-ready meant that initializePage went to the end of
the queue. That brought problems when other dom-ready code expected jQM to be
set up, capable of changing pages and so on. But because $.mobile.pageContainer
is also set in initializePage, changePage and others didn't work.
2011-08-10 18:01:36 -07:00
John Bender
cba80d9fff Merge pull request #1393 from ray58750034/31d4
Update functional tests: bind click event to objects
2011-08-10 17:45:54 -07:00
John Bender
f352f05cc9 core style guide 2011-08-10 17:10:31 -07:00
John Bender
c41c65a1cf quote consistency 2011-08-10 17:07:34 -07:00
John Bender
6ebaf991a8 moved dialog test to pageSequence helper, and small cleanup 2011-08-10 17:06:56 -07:00
John Bender
cdae2c2fdf Merge branch 'master' of https://github.com/BradBroulik/jquery-mobile into BradBroulik-master 2011-08-10 17:03:10 -07:00
John Bender
73953915c0 merge fix for select 2011-08-10 14:21:49 -07:00
John Bender
55b5a60b1c linting issues 2011-08-10 13:56:52 -07:00
John Bender
aad1146a65 added tests to verify that custom menu items are highlighted when they are selected 2011-08-10 13:54:05 -07:00
John Bender
6cdec7d14d minor whitespace 2011-08-10 13:35:35 -07:00
John Bender
28120ea929 fixed selected items bug 2011-08-10 13:35:05 -07:00
gseguin
909ae515cc changed working version to beta 3 pre 2011-08-10 09:59:47 -07:00
John Bender
b38efe1a63 whitespace 2011-08-10 00:01:55 -07:00
John Bender
09339ac534 grouped prive and public methods 2011-08-09 23:59:07 -07:00
John Bender
345fbbdacc more whitespace 2011-08-09 19:14:27 -07:00
John Bender
0d4bd449ca more whitespace 2011-08-09 19:12:43 -07:00
John Bender
3b7ab6dac7 whitespace 2011-08-09 19:11:46 -07:00
John Bender
629ef9a024 simplified the extension calls in the custom select 2011-08-09 19:08:34 -07:00
John Bender
e12f5122bd use cached value in button text method 2011-08-09 15:58:13 -07:00
John Bender
7a9b379dea test to make sure the label has the ui-select class 2011-08-09 15:55:40 -07:00
John Bender
62e1631353 fix label class application bug 2011-08-09 15:50:42 -07:00
John Bender
88edbc666f cleaning up this and self references 2011-08-09 15:28:54 -07:00
John Bender
12771afade _create cleanup 2011-08-09 15:05:15 -07:00
John Bender
2839cfb469 small cleanup in naming and grouping 2011-08-09 14:52:31 -07:00
John Bender
0f072416cb moved shared functionality into native and custom selects as necessary 2011-08-09 14:41:51 -07:00
John Bender
67e76a072b removed options from shared, move theme determination to method 2011-08-09 13:47:40 -07:00
Ghislain Seguin
8ec38bae1c Merge pull request #2249 from rwldrn/jquery.mobile.init.js
Core Style Conformance: jquery.mobile.init.js
2011-08-09 08:42:51 -07:00
Rick Waldron
45ab6a9ddc Core Style Conformance: jquery.mobile.init.js 2011-08-09 11:16:41 -04:00
John Bender
fd8fb03205 segregate native and select 2011-08-08 16:47:53 -07:00
John Bender
974e4d0801 moved to event model for custom overrides, still need to centralize shared file 2011-08-08 16:19:52 -07:00
John Bender
ff8a1ceefa .call on shared 2011-08-08 13:53:53 -07:00
John Bender
426da8f495 centralizing options 2011-08-08 13:33:24 -07:00
John Bender
76adbc9293 minimize extension in individual widgets 2011-08-08 13:31:50 -07:00
John Bender
5c76de355a shared components moved to shared init function 2011-08-08 12:52:32 -07:00
John Bender
9eec8df520 moved native shared component into shared, will do the same for custom 2011-08-08 12:07:37 -07:00
John Bender
64a9b595d3 start of seperation of native select 2011-08-08 11:40:26 -07:00
John Bender
bac747498f small refactor before final split 2011-08-07 21:04:53 -07:00
scottjehl
0253e67fbb fixed an error in the array reference that was causing support tests to not test properties as they should. 2011-08-07 13:19:20 -04:00
Todd Parker
38368b6010 Merge pull request #2218 from caseyjustus/master
Added slider to api docs. Thanks caseyjustus!
2011-08-07 08:43:42 -07:00
scottjehl
8fb9cb836e Merge remote branch 'origin/replacestate-external' into replacestate-external 2011-08-07 09:45:22 -04:00
BradBroulik
bf4db8dae1 Added unit tests for dialog theme inheritance. 2011-08-05 17:49:47 -05:00
scottjehl
e1fbaf9cce updated to support deep links to nested lists and dialog parent pages. Still battling a 2x back history issue on those. 2011-08-05 18:49:16 -04:00
scottjehl
e564eb1c5f first pass at implementing pushstate support from an external file. 2011-08-05 18:49:16 -04:00
John Bender
d293e968f9 moved _buildList into custom 2011-08-05 15:35:13 -07:00
BradBroulik
d5cf4fc29a Unit tests for dialog theme inheritance 2011-08-05 16:56:42 -05:00
John Bender
7494e398a5 moved open to custom and added a test for native select change removing the button down class 2011-08-05 14:45:08 -07:00
John Bender
3133ccbc3a moved close to custom, and disable/enable methods common with tests for enable/disable 2011-08-05 12:21:45 -07:00
John Bender
f51f4cf07f moved focusButton up to common, added test for refocus of clicked button on small dialog close 2011-08-05 12:21:45 -07:00
John Bender
c739597755 core style guide 2011-08-05 09:37:55 -07:00
John Bender
7e09b9af28 ghetto cherry pick of custom dialog fix for chrome redraw issue and height calculation stability 2011-08-05 09:32:40 -07:00
scottjehl
f78970618c Merge remote branch 'origin/master' 2011-08-05 11:05:32 -04:00
scottjehl
d120404ead Merge remote branch 'origin/master' 2011-08-05 09:58:30 -04:00
scottjehl
28eebc25de Brought back the page content div theme inheritance from b1. Thanks to abdulqadir for the suggestion. Fixes #2221 2011-08-05 09:58:25 -04:00
scottjehl
0dbc08adf6 htaccess file has been empty. now removed. 2011-08-04 19:42:59 -04:00
Ghislain Seguin
b23d444c71 Merge pull request #2216 from johnbender/listview-filter-callback
Listview filter callback
2011-08-04 16:12:53 -07:00
John Bender
18887c95a0 updated docs to include information about the filter callback 2011-08-04 16:09:42 -07:00
John Bender
d8e1b9b469 core style guidelines 2011-08-04 15:56:55 -07:00
John Bender
3452a805e0 added test to verify that we could alter the filterCallback on the instance of the widget 2011-08-04 15:28:45 -07:00
toddparker
4c3ecdef47 Updated code to match the new style. We might drop this page once the more detailed API info is added to each plugin, 2011-08-04 17:23:42 -04:00
toddparker
570c13cb9c Style block tweak. 2011-08-04 17:15:44 -04:00
toddparker
2d9e76d8e2 Added an intro blurb and more margin to separate the list headers. 2011-08-04 17:12:59 -04:00
toddparker
c2405448fd Fixed a few broken links in the docs. 2011-08-04 15:23:51 -04:00
John Bender
8660befda8 removed global from listview 2011-08-03 17:50:48 -07:00
John Bender
6bbf830da8 simple filterCallback in the options to delegate complex search to end users 2011-08-03 17:10:44 -07:00
John Resig
8ad8d8303d Releasing 1.0b2. 2011-08-03 14:45:53 -07:00
John Bender
2d7706a07b whitespace issues in tnew buttonMarkup tests 2011-08-03 14:24:46 -07:00
John Bender
bda2358e6c Merge branch 'fcheslack-footer-control-group-buttons' 2011-08-03 13:39:22 -07:00
John Bender
8c31d5cb19 added control group enhancement tests, still needs other footer button enhancement tests 2011-08-03 13:37:38 -07:00
John Bender
6529dc7f8c Merge branch 'footer-control-group-buttons' of https://github.com/fcheslack/jquery-mobile into fcheslack-footer-control-group-buttons 2011-08-03 13:19:28 -07:00
toddparker
3db65f9592 Merge remote branch 'origin/master' 2011-08-03 15:20:29 -04:00
toddparker
37db803557 Removed back buttons. 2011-08-03 15:18:57 -04:00
John Bender
3dbb018e82 Merge pull request #2173 from SamuelKC/selecthidefix
Fix issue of the select menu not closing on Chrome - Fixes 2198, 2194, 2197
2011-08-03 11:52:17 -07:00
toddparker
a23ab67e53 Another path tweak. 2011-08-03 14:25:52 -04:00
toddparker
35d2366946 Fixed CSS paths. Closes #2201 2011-08-03 14:21:29 -04:00
toddparker
a7abcfef59 Switched to .selector for sample code. 2011-08-03 14:19:07 -04:00
toddparker
35b174fa31 Merge remote branch 'origin/master' 2011-08-03 14:17:40 -04:00
toddparker
bee8ac2226 Improved sample code. 2011-08-03 14:17:29 -04:00
gseguin
cce89cb91d Merge remote-tracking branch 'upstream/master' 2011-08-03 11:16:20 -07:00
gseguin
6da588c394 Coding standards 2011-08-03 11:15:03 -07:00
toddparker
584e2931b4 Fixed typos 2011-08-03 14:06:57 -04:00
toddparker
e9114f8c34 Merge remote branch 'origin/master' 2011-08-03 14:02:39 -04:00
toddparker
bd36fd6f91 Updated boilerplates to beta 2 2011-08-03 14:02:24 -04:00
toddparker
6ab7e118c6 Beta 2 flag 2011-08-03 14:02:10 -04:00
scottjehl
55b0fe304a Merge remote branch 'origin/master' 2011-08-03 13:42:24 -04:00
scottjehl
a362a782fa Changed the collapsible cleanup in our docs JS to use click instead of vclick 2011-08-03 13:41:12 -04:00
Todd Parker
6c08d64ccd Merge pull request #2199 from rwldrn/jquery.mobile.support.js
Core Style Conformance updates; jquery.mobile.support.js. Thanks rwldrn!
2011-08-03 10:27:42 -07:00
Rick Waldron
953f0cdf97 Core Style Conformance updates; jquery.mobile.support.js 2011-08-03 13:19:53 -04:00
scottjehl
5f2462d031 updated to support deep links to nested lists and dialog parent pages. Still battling a 2x back history issue on those. 2011-08-03 12:35:24 -04:00
scottjehl
51199dd14b first pass at implementing pushstate support from an external file. 2011-08-03 12:35:24 -04:00
scottjehl
a48128f9a3 wrapped in parens for clarity 2011-08-03 12:15:04 -04:00
scottjehl
4c01267306 Moving this call to setDefaultTransition to run at DOM ready, because calling it earlier triggers an error in jQuery core, based on logic in dimensions.js that assumes document.body is defined. I've added a pull request to fix the issue in jQuery core, but for our purposes, this change allows us to work without the fix. 2011-08-03 12:15:04 -04:00
scottjehl
d42db4d4ee This change moves the ajax navigation opt-out list (which contains, mainly, browsers that have broken history tracking of hash changes) over to the support.js file, and added a multi-tierd Nokia condition that checks a number of UA conditions to try and pinpoint Nokia + Symbian + Webkit + 7.3-or-older. Big thanks to Bryan and Stephanie at Yiibu for their helpful article on Nokia device detection. That said, we would LOVE to find a non-UA based way to handle this detection. Reluctantly, this seems to do what we need at the moment, while assuming hash history will be improved in any post-7.3 release.
Also included in this commit is a Nokia-specific condition that re-appends existing stylesheets to force them to render, as all pre-7.3 devices we tested would not render the CSS if it was referenced before the JavaScript (as we'd recommend doing). There may be a non-JS way to work around this problem, but for now, this seems to do the trick.
2011-08-03 12:15:04 -04:00
toddparker
b77bf47d1d Minor tweaks. 2011-08-03 12:13:04 -04:00
toddparker
5b73f452f2 Fixed a few issues in the content. 2011-08-03 10:31:57 -04:00
toddparker
6b77c01553 Updated supported platforms, intro and features for beta 2 prep. 2011-08-03 10:11:06 -04:00
toddparker
ac30c121c7 Added docs for the scroll thresholds and virtual mouse events. 2011-08-03 10:10:43 -04:00
toddparker
012ce48e6f Added new scripting page to provide a quick overview of common techniques, updated local nav for all other pages. 2011-08-03 10:10:18 -04:00
John Bender
f6a5608ae2 added select_native test set and a tests to verify that setting the value of the select itself sets button text 2011-08-02 16:11:32 -07:00
John Bender
58631807d4 moved common refresh functionality up 2011-08-02 16:00:37 -07:00
John Bender
edfef386b1 moved refresh to individual widgets, still some duplication to be moved into the common 2011-08-02 14:08:42 -07:00
John Bender
6a46839d5e added missing assertion to select tests 2011-08-02 13:13:19 -07:00
John Bender
1d00ee316e forgotten bind on pagehide to fix height calculation issues 2011-08-02 12:38:53 -07:00
Todd Parker
bdbb0f90c2 Merge pull request #2176 from ovargas27/master
Checkbox - new API docs format. Thanks ovargas27!
2011-08-02 09:57:04 -07:00
John Bender
be0dbb9b10 fixed some minor whitespace issues 2011-08-02 09:30:28 -07:00
John Bender
3950542884 made sure the dialog test fails many times, added an extra todo for moving the functionality to find the current theme if its not specified to a generic location 2011-08-02 09:30:28 -07:00
John Bender
b8451c5557 moved element creation and propertie declaration into the common object 2011-08-02 09:29:01 -07:00
John Bender
6e343c20cb fixed double wrap from local variables 2011-08-02 09:26:31 -07:00
John Bender
30c2e6c6a4 moved most of the build functionality to delegate objects 2011-08-02 09:26:31 -07:00
John Bender
0e7ded7709 create -> build, and list build up moved 2011-08-02 09:26:31 -07:00
John Bender
9014e243fb custome menu select creation begun 2011-08-02 09:26:31 -07:00
John Bender
4aa32698de move native menu creation to delegate object 2011-08-02 09:26:30 -07:00
John Bender
89e6f59bb3 Revert "removed the custom menu portions of the selectmenu, which will be moved to select.custom.js, which is non-functional in this commit"
This reverts commit c318c5b7cf7d51a69438071cbfbcf307a27c7b7d.
2011-08-02 09:26:30 -07:00
scottjehl
db22dfa111 removed the custom menu portions of the selectmenu, which will be moved to select.custom.js, which is non-functional in this commit 2011-08-02 09:21:21 -07:00
Scott Jehl
b7a19b604c Merge pull request #2184 from rwldrn/jquery.mobile.fixHeaderFooter.js
Core Style Conformance updates; jquery.mobile.fixHeaderFooter.js
2011-08-02 07:24:08 -07:00
John Bender
f1d964e9e9 fix for cached page removal breaking dialog sized select menus Fixes #2181 2011-08-01 18:08:28 -07:00
John Bender
f7d5d918ae fixes for select tests and tests to cover basic functionality for new cached pages and select dialogs 2011-08-01 18:08:28 -07:00
Rick Waldron
627b9189d6 Core Style Conformance updates; jquery.mobile.fixHeaderFooter.js 2011-08-01 18:34:49 -04:00
Todd Parker
d958983e5b Merge pull request #2179 from defeated/docs-errata
fixed typo: swatch E identifying as swatch D. Thanks defeated!
2011-07-31 18:46:20 -07:00
eddie cianci
1410e03601 fixed typo: swatch E identifying as swatch D 2011-07-31 21:25:38 -04:00
Casey Justus
59ab8de172 fixed slider event description and links 2011-07-31 21:12:15 -04:00
scottjehl
faf26d8f6d namespaced $.fixedToolbars to $.mobile. Kept a deprecated pointer to $.fixedToolbars that we'll want to remove later. This feature can now be documented. Addresses Issue #2024 2011-07-31 20:35:18 -04:00
Casey Justus
1d1cc2b89f added titles 2011-07-31 18:04:11 -04:00
Casey Justus
dcdca89717 added slider api 2011-07-31 17:47:03 -04:00
scottjehl
f020f0661b documented the loadPage method's loadMsgDelay option. 2011-07-31 10:08:38 -04:00
scottjehl
ee17b4f05c Ensure that navigating backwards through dialogs works as expected when domCache is false (which is the default now). 2011-07-31 10:03:22 -04:00
scottjehl
be74405b49 Added a configurable timeout to $.mobile.loadPage to give pages that are being fetched from cache a little time to load before a loading message appears. We'll need to tweak this timer based on device testing to determine how long it takes on average to fetch a cached page. If the delay ends up needing to be longer than 300ms or so to suit some devices, it's probably not worth having this feature at all. 2011-07-30 08:33:04 -04:00
scottjehl
bdba60efd5 removed urlHistory references to (and use of) each entry's "page" property, which kept a reference to the DOM elements of each page that had been loaded. This fixes leaking memory on removed pages, and outsources page requests to the browser cache (for real this time :) ). 2011-07-29 19:51:17 -04:00
scottjehl
5c01f3f1e5 fixed dead links 2011-07-29 19:46:19 -04:00
Omar Vargas
0729d25ad8 Checkbox with new API docs format 2011-07-29 17:37:57 -05:00
Todd Parker
2aad1bf345 Merge pull request #2175 from ovargas27/master
Radio  button - new API docs format. Thanks ovargas27!
2011-07-29 14:40:27 -07:00
toddparker
1c136582ac Added an H2 2011-07-29 17:34:18 -04:00
toddparker
8d496b782e Page title fixes 2011-07-29 17:33:08 -04:00
toddparker
30fb05c162 Merge remote branch 'origin/master' 2011-07-29 17:30:46 -04:00
toddparker
264e71522d Re-vamp of pages docs section to add new features, better organization 2011-07-29 17:29:31 -04:00
Omar Vargas
06f57b35a1 Radio input with new API docs format 2011-07-29 15:59:06 -05:00
scottjehl
aeaa0f7845 added unit test verifying that the domCache page option can be set globally via $.mobile.page.prototype.options.domCache = true; 2011-07-29 16:03:20 -04:00
John Bender
50acf2eb7c fix to use options defined on page widget to determing domCache settings 2011-07-29 12:55:40 -07:00
John Bender
7a6b28d398 added to to verify that the nested pages are preserved when the parent page is cached 2011-07-29 10:10:26 -07:00
John Bender
3dc9f975e6 fixed second test for page caching 2011-07-29 10:10:26 -07:00
John Bender
3f20eaa038 fixed nav test for new namespace and made the test order independent 2011-07-29 10:10:26 -07:00
John Bender
27b4ba1691 ajaxDomCaching -> domCache 2011-07-29 10:10:26 -07:00
John Bender
ded500f3b4 testing additions for listview core 2011-07-29 10:10:26 -07:00
John Bender
180243e9ad added a todo for the subpage tracking 2011-07-29 10:10:26 -07:00
John Bender
85114be097 use childPages method to abstract method for finding child pages, hopefully we can find something better than the url selector 2011-07-29 10:10:25 -07:00
John Bender
3035387446 first test for nested page removal/caching 2011-07-29 10:10:25 -07:00
John Bender
0cd7bb8370 whitespace fix for listview fixtures 2011-07-29 10:10:25 -07:00
John Bender
f79a1afd17 whitespace and semi's in listview core tests 2011-07-29 10:10:25 -07:00
John Bender
bda88be82e whitespace and semi's in listview core tests 2011-07-29 10:10:25 -07:00
John Bender
d716f3e9e7 moved dom cache check above the enhance to let widgets unbind parent page hide behaviour. added parent removal to listview special remove 2011-07-29 10:10:25 -07:00
John Bender
57a1e9abf7 whitespace and log statement in listview 2011-07-29 10:10:25 -07:00
scottjehl
115f1710b1 remove entire list when parent page is hidden and next page is not a sub list. Note: the unbind of the "pagehide.remove" does not appear to be preventing the parent page from removal, and it regenerates its sublists when revisiting that parent, since it was removed. 2011-07-29 10:10:25 -07:00
John Bender
1a95670012 added test for explicit page caching via data attribute 2011-07-29 10:10:25 -07:00
John Bender
151d55f351 moved dom cache test to page sequence, negative case incoming 2011-07-29 10:10:25 -07:00
John Bender
191815440f whitespace and missing semi 2011-07-29 10:10:25 -07:00
scottjehl
2b1baeb078 fixed up unit test so that it's now properly testing the ajax dom caching page option 2011-07-29 10:10:25 -07:00
scottjehl
a8c3859d84 using regular data method to access widget 2011-07-29 10:10:25 -07:00
scottjehl
dc054a10e7 implemented ajax dom caching option of the page plugin, which can be overridden by page options or data attribute. Includes unit test to support feature. 2011-07-29 10:10:25 -07:00
Samuel Padou
f097630a71 Fix issue of the select menu not closing on Chrome when we click out out of the menu or on the selected option 2011-07-29 17:39:53 +02:00
Todd Parker
1e01306559 Merge pull request #2166 from ovargas27/master
Text Input plugin with new API docs format
2011-07-28 19:55:49 -07:00
Omar Vargas
b13e9cede5 Update text input plugin link 2011-07-28 18:00:52 -05:00
Ghislain Seguin
30e8ea8e09 Coding standards 2011-07-28 15:25:57 -07:00
Ghislain Seguin
29c408f32a Merge remote-tracking branch 'upstream/master' 2011-07-28 15:25:10 -07:00
Ghislain Seguin
703d31073e Merge pull request #2102 from kpozin/patch-6
Cache option indices in <li>s in custom select menus instead of doing linear search on every click
2011-07-28 15:21:52 -07:00
Omar Vargas
b9127f6eb3 Text Input plugin with new API docs format 2011-07-28 16:37:29 -05:00
toddparker
0bf8b7c8de Minor content tweaks. 2011-07-28 17:00:59 -04:00
toddparker
650c2c5156 Added initSelector option documentation 2011-07-28 17:00:32 -04:00
toddparker
5413459d6d Removed quotes around boolean value examples. 2011-07-28 16:43:05 -04:00
toddparker
433f9af612 Updated markup to match the new API styles 2011-07-28 16:41:02 -04:00
toddparker
aac698520e Added clearer messaging about dom ready and how to use pagecreate instead. 2011-07-28 16:26:34 -04:00
Faolan C-P
86824432e4 fix control group button selector in any .ui-bar instead of just .footer 2011-07-28 14:41:31 -04:00
Faolan C-P
21c8ce2989 add selector for links inside control groups in buttonMarkup 2011-07-28 14:35:47 -04:00
toddparker
91dfba1d0a Fixed a path issue in the assets for these pages. Needed an extra hop for the CSS files. 2011-07-28 12:29:20 -04:00
toddparker
9ae4115ec8 Fixed broken paths in this page. We still need to figure out what to do with this page since it's sort of a duplicate of the homepage. 2011-07-28 12:23:43 -04:00
toddparker
9a82e3c59e Missed fixing the home link path. Added another ../ 2011-07-28 12:02:55 -04:00
toddparker
ece805a55b Merge remote branch 'origin/master' 2011-07-28 12:01:09 -04:00
toddparker
5c603198e7 Created a new API docs format for people to help us populate. Started with just the select menu API docs to server as a template for others. Each plugin is now in a folder with a local nav between index (summary), options, methods, and events. 2011-07-28 12:00:36 -04:00
scottjehl
263193f490 Moved autoinit calls to after widgets. Made it so auto init selectors use the initSelector option, so that it can be configurable. 2011-07-27 18:42:16 -04:00
Ghislain Seguin
6ff9d9a06a Coding standards 2011-07-27 11:22:13 -07:00
Ghislain Seguin
d1e8083f15 Merge pull request #2152 from webmynd/master
Consider data-role when picking page transition in changePage
2011-07-27 10:04:39 -07:00
Ghislain Seguin
f84f359743 Merge pull request #2154 from SamuelKC/bug_2064
Fix for issue #2064
2011-07-27 09:53:20 -07:00
Scott Jehl
2c4615176d Fixed typo in reference to initSelector default value. 2011-07-27 11:58:20 -03:00
Samuel Padou
051855e94d Bug 2064; Add try/catch block to prevent 'Unspecified error' when we use an IFrame on IE9 2011-07-27 14:53:27 +02:00
James Brady
9cf3a60dee Consider data-role when picking page transition.
Re-use existing "isDialog" variable in changePage,
instead of just looking at settings.role.
2011-07-27 12:24:41 +01:00
Scott Jehl
705ed4f308 typo in comment 2011-07-26 17:04:36 -03:00
scottjehl
e07c40e3d0 exposed automatic initialization selectors on most widgets that expose options through the widget factory. Option name is "initSelector" 2011-07-26 14:22:08 -04:00
scottjehl
79d3aa6f04 brought back degradeInputs page option, this time as a decoupled page plugin file. Fixes #2123 2011-07-26 13:49:10 -04:00
scottjehl
7b051e0305 Merge remote branch 'origin/master' 2011-07-26 09:37:08 -04:00
scottjehl
30c94575c2 updated docs to include autoInitializePage option. Fixes #1391 2011-07-24 22:21:16 -04:00
scottjehl
d670feae08 removed test for page-div-not-required, as it has its own test page.. Added tests for auto initialize option. 2011-07-24 22:13:26 -04:00
scottjehl
df3fbca3f4 implemented the autoInitializePage global config option, so that auto-initialization may be disabled in favor of manually initializing the page later on. Still needs a unit test. 2011-07-24 19:27:21 -04:00
scottjehl
fdb77bfa52 changed new (undocumented) "enhance" event to "create" to better match our existing event name conventions 2011-07-22 09:05:55 -04:00
scottjehl
1dd3f4bbb3 removed background unset from fieldcontains. No good reason to keep that in there. 2011-07-21 12:32:06 -04:00
scottjehl
1a828594f5 default for loadPage should be to not show the loading message, since its default use case is to fetch a page that is not yet active. However, changePage should cause it to show because loadPage is being called during a page change. 2011-07-21 08:04:12 -04:00
Scott Jehl
f70a947552 Merge pull request #2105 from jgable/fix_2104
Fixes #2104. IE style in docs for ui-bar-f roundyness.
2011-07-20 16:05:28 -07:00
Scott Jehl
4d66aa6397 added input types url and tel to auto-init. 2011-07-20 15:29:08 -07:00
Scott Jehl
214e2e0c1a Merge pull request #2118 from commadelimited/master
Fixes #2117. Add textInput styles to email type input field
2011-07-20 15:27:42 -07:00
Scott Jehl
0cbea0bb90 Merge pull request #2120 from jgable/fix_2119
Fixes #2119. updated $elem to $this
2011-07-20 15:09:44 -07:00
jacob4u2
9ff4d4cfd3 fix for #2119; updated to 2011-07-20 16:03:10 -05:00
Andy Matthews
0123608748 Edited js/jquery.mobile.forms.textinput.js via GitHub 2011-07-20 12:52:19 -07:00
scottjehl
3afef99719 forgot to add a file to the unit test markup 2011-07-20 14:37:02 -04:00
scottjehl
a3afffdbbd restored autocorrect/complete disabling, as it was implemented in the page plugin already. 2011-07-20 12:59:20 -04:00
scottjehl
79cef2c01f restored default theming for headers and footers 2011-07-20 12:58:38 -04:00
scottjehl
5dc3555373 restored dialog theming, which overrides default page theming, but not custom page theming. 2011-07-20 12:40:46 -04:00
scottjehl
3da4bd32a8 whitespace 2011-07-20 12:37:54 -04:00
scottjehl
6f701add58 updated unit tests to ensure the enhance event is working properly on self-initializing widgets 2011-07-20 09:35:48 -04:00
scottjehl
64e6ef0e72 bound widgets to the "enhance" event, in addition to the pagecreate event. The enhance event allows developers to enhance the contents of an html fragment by triggering "enhance". 2011-07-19 22:44:03 -04:00
scottjehl
2a6c7fc1b9 This commit decouples all widgets from the page plugin so that they can be used ad-hoc.
- Internally, each plugin self-initializes by binding to the pagecreate event.

- Unit tests have been added and adjusted to support some internal changes involved in this commit.

- In the process, the portions of the page plugin that were used to enhance the header,content,and footer sections of a native-app style page layout are now located in jquery.mobile.page.sections.js.

- No public API options have changed, except that the page plugin no longer has options for keepNative, and degradeInputs, as plugins now handle these internally (keepNative was never documented, and degradeInputs only affected slider, so it lives there now. Page options related to the page sections are now located in the page.sections script, but they are still configurable via the page plugin's options api.

- Make, Ant, and index files are updated with a new load order for all JS files.
2011-07-19 22:25:23 -04:00
scottjehl
c7b63920e7 fixed test failures that occured when the jquery-mobile directory is located in a subdirectory of the server root. 2011-07-19 22:25:05 -04:00
jacob4u2
286f024a18 Updating gradients in jqm-docs.css ui-bar-f style to match default theme gradients with opera et al. 2011-07-18 17:15:15 -05:00
jacob4u2
a7ab4c049e Fix for #2104, IE style in docs for ui-bar-f roundyness 2011-07-18 17:01:14 -05:00
Konstantin Pozin
8fb64a5ef9 Added cached <option> element indices to corresponding <li>s in custom select menus.
Removed redundant .eq() call.
2011-07-18 09:27:39 -07:00
scottjehl
8e354a06c5 typo in docs 2011-07-17 17:04:11 -04:00
scottjehl
a93cdbcea0 changed up the unit test so that it didn't load the page in an iframe, which seemed to mess things up on the test server. 2011-07-17 16:29:05 -04:00
scottjehl
03f32728c6 removed a console.log 2011-07-17 16:22:13 -04:00
scottjehl
44dfea16e1 Merge remote branch 'origin/master' 2011-07-17 14:53:44 -04:00
scottjehl
259815d480 Make data-role=page elements optional. This change makes the framework more lenient with markup, and will ease integration with existing sites, as well as mashups with external content. Unit tests included. Fixes #2096 2011-07-17 14:52:49 -04:00
Scott Jehl
116df45ae7 Merge pull request #2091 from taktran/master
Minor doc fix up
2011-07-17 09:22:03 -07:00
Scott Jehl
c4f8e7dbfb Merge pull request #2094 from hotTea/master
Fixes #2087 : Upgrade valencia to use the new gradient syntax
2011-07-17 09:03:35 -07:00
Mayank Varia
81581150dd Upgrade valencia to use the new gradient syntax. Fixes #2087
Adjusted css3 prefixing for background gradients and removed -ms filter
gradients
2011-07-17 00:55:44 -07:00
Tak Tran
fc15c53d2d Matching end comment for ui-grid-b code 2011-07-15 16:37:42 -07:00
John Bender
53a8023b14 fixed select tests to click the button instead of calling the select menu method 2011-07-15 15:22:56 -07:00
John Bender
2e2f318562 whitespace and missing semi in select 2011-07-15 15:22:56 -07:00
toddparker
edee8c42b3 Merge remote branch 'origin/master' 2011-07-15 17:04:33 -04:00
toddparker
6b8f322c66 Updated the single and multi-page templates to use the CDN version and have better design/content. Linked to these from the index page so they are more accessible too. 2011-07-15 17:02:25 -04:00
scottjehl
f84ceb12ed Merge remote branch 'origin/master' 2011-07-15 16:30:03 -04:00
toddparker
4f6eea6e00 Fixed inline button docs to remove the incorrect info that wrapping multiple buttons in a container with data-inline="true" woudl work. You must add this each each button. 2011-07-15 16:11:26 -04:00
scottjehl
22b0cae65c added unit tests for the data-prefetch attr 2011-07-15 15:55:27 -04:00
John Bender
ca173441d0 small refactor the the base url change for readability 2011-07-15 10:47:06 -07:00
scottjehl
098687ae63 added documentation for data-prefetch 2011-07-15 13:22:13 -04:00
scottjehl
a5d0a294e9 Implemented data-prefetch attribute for anchor elements. Presence of this attribute on an anchor will cause the referenced page to be preloaded when the parent page of that anchor is shown. Fixes #1819. 2011-07-15 13:16:31 -04:00
scottjehl
3dd495588b removed the nonHistorySelectors option, which was no longer in use after the nav refactor. 2011-07-15 11:50:26 -04:00
scottjehl
b0552d79de removed some old alpha comments. Versioning covers this sort of thing. 2011-07-15 11:47:32 -04:00
scottjehl
affd609330 This ensures inner button text is visible in IE7. Fixes #2058. Yay. 2011-07-15 11:42:25 -04:00
scottjehl
6da7e4a1dc Made loading message configurable at runtime. Fixes #2044. Fixes #1974. Fixes #1947. 2011-07-14 22:46:06 -04:00
Todd Parker
12d52772cb Merge pull request #2075 from mattopenstack/master
Small update to doc readme for running the repo locally. Thanks mattopenstack!
2011-07-14 08:40:19 -07:00
Matt
00f86c83f0 update docs regarding running demos 2011-07-14 07:22:25 -07:00
John Bender
af3877be43 tests updated to accomodate relative hash references 2011-07-13 16:04:24 -07:00
John Bender
d827be3bf2 relative url change per Kin Blas's last pre-vacation request 2011-07-13 16:04:24 -07:00
Ghislain Seguin
584e3070ae Unit tests for issue #1526 2011-07-12 23:32:22 -07:00
Ghislain Seguin
3062d385b8 Fix for issue #1526 2011-07-12 23:32:10 -07:00
Ghislain Seguin
8623b67a41 Merge pull request #2062 from taktran/patch-1
Fixed up spelling mistake.
2011-07-12 16:50:05 -07:00
Tak Tran
80edfd9f15 Fixed up spelling mistake. 2011-07-12 16:48:40 -07:00
scottjehl
815d82ba1f changed padding-box to padding for -moz-background-clip per https://developer.mozilla.org/en/CSS/background-clip#Browser_compatibility 2011-07-11 02:17:17 -04:00
scottjehl
e5e198a8db adjusted css3 prefixing for background gradients to a) increase browser support for standard prefixed gradients, and b) remove -ms filter gradients due to a rendering issue in IE9 that conflicts with border radius. Gradient support is set for IE10, however. More info on this bug and decision can be found at issue #2046. Fixes #2046. Fixes #1933. Addresses a portion of #13 as well. 2011-07-11 02:06:24 -04:00
scottjehl
ada46734ec abstracted out some of the page hide behavior to fix issues with the close button not returning focus to the button after closing. Also fixes an issue where a full page custom menu would open as a misplaced small custom menu the second time it opens (if the menu was closed via the custom close button). Fixes #1618. Fixes #1692. Fixes #1750. 2011-07-10 21:56:58 -04:00
scottjehl
2de817d24c fixed some logical errors in these tests. they now pass consistently in Firefox. Still inconsistent in Chrome, though they did pass once in Chrome during testing. Getting closer... 2011-07-10 21:51:08 -04:00
Scott Jehl
7b1966c850 Merge pull request #2015 from mlitwin/bug_1992
Fixes #1992; Swipe threshold constants are configurable
2011-07-10 15:20:15 -07:00
scottjehl
e567742c90 fixed up logic and code style for the _removeCorners "which" argument. Thx for the logic suggestion, @eugenb1. Fixes #1996. 2011-07-10 18:07:12 -04:00
scottjehl
4703fe0d24 Merge branch 'master' of https://github.com/wietsevenema/jquery-mobile into wietsevenema-master 2011-07-10 17:46:51 -04:00
scottjehl
fdde24b51f fixed unit test - menu var wasn't defined. 2011-07-10 17:34:38 -04:00
scottjehl
033ce4ab96 Merge branch 'fix_issue_1851' of https://github.com/tigbro/jquery-mobile into tigbro-fix_issue_1851
Conflicts:
	js/jquery.mobile.forms.checkboxradio.js
2011-07-10 17:17:51 -04:00
scottjehl
47cb8cbeeb fixed test so it passes in Firefox 2011-07-10 17:14:55 -04:00
scottjehl
1036a8398a added unit test to verify previous bugfix. 2011-07-10 16:28:40 -04:00
scottjehl
3deaa97c3a removed the globalpagecreate event trigger that came with the previous pull request, as it was never necessary. 2011-07-10 16:12:05 -04:00
scottjehl
f13207505f Merge branch 'master' of https://github.com/eugenb1/jquery-mobile into eugenb1-master 2011-07-10 16:09:00 -04:00
scottjehl
25f6e012b6 removed some old experiments. Others should soon move to a branch or external repo. 2011-07-10 15:39:26 -04:00
Scott Jehl
e1fd7a9e32 Merge pull request #2043 from beatryder/collapsible-set-fix
Fixes #1931 - Collapsible Set - Visual Bug
2011-07-10 07:18:53 -07:00
Ryan Neufeld
92fcbe1672 Fix for Bug #1931 - Collapsible Set - Visual Bug
collapsable selector was using :first so set was only ever one element.
changed find to children
2011-07-07 13:20:10 -07:00
John Bender
b761496ece moved typeof check to jQuery.type() 2011-07-07 09:22:24 -07:00
John Bender
bf9c071900 whitespace in navigation 2011-07-07 09:19:16 -07:00
Eugen
d581accfdb #2018 - forms.select now uses $.mobile.defaultDialogTransition 2011-07-07 09:52:02 +02:00
Eugen
4102df9923 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-07-07 09:20:55 +02:00
Todd Parker
64a5786a81 Merge pull request #1941 from kpozin/patch-2
Change timing function on spin animation to linear. Thanks kpozin!
2011-07-06 19:57:36 -07:00
Todd Parker
a38b8f4207 Merge pull request #2039 from jgable/bug_1999
Fix #1999, mismatched gradient stops for .ui-btn-up-c style. Thanks jgable!
2011-07-06 14:07:29 -07:00
jacob4u2
e2a7b1a63c Fix #1999, mismatched gradient stops for .ui-btn-up-c style 2011-07-06 16:03:13 -05:00
Todd Parker
6e6c06b8f2 Merge pull request #2028 from jgable/bug_2002
Fix #2002; updated -ms-filter style to match others. Thanks jgable!
2011-07-06 13:47:20 -07:00
Todd Parker
a1980d77dc Merge pull request #2033 from blowsie/patch-1
Replaced Start tag (<div>) With End tag (</div>) in the example <code>. Thanks blowsie!
2011-07-06 13:34:34 -07:00
Todd Parker
dcde8311cb Merge pull request #2037 from kpozin/patch-3
Fix for #1271 - code should be checking o.iconshadow rather than o.shadow. Thanks kpozin!
2011-07-06 13:33:29 -07:00
Konstantin Pozin
807089b04a Fix for #1271 - iconshadow 2011-07-06 13:22:53 -07:00
Ghislain Seguin
21557ff5c5 Merge pull request #1993 from gseguin/issue-1990
Proposed fix for issue #1990
2011-07-06 10:44:22 -07:00
blowsie
63bfcdcc39 Replaced Start tag (<div>) With End tag (</div>) in the example <code> 2011-07-06 02:17:53 -07:00
jacob4u2
f56d084aec Fix #2002; updated -ms-filter style to match others 2011-07-05 17:25:03 -05:00
toddparker
30892bab4b Updated the Anatomy of a Page code examples to include the meta viewport tag
Updated 2 code examples with suggested settings and added an explanation of the feature. Fixes #1991
2011-07-05 14:40:51 -04:00
Eugen
da2b8ba21a Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-07-05 09:15:21 +02:00
Scott Jehl
69550178c1 Merge pull request #2012 from chtitux/patch-1
Fix a typo in the doc : H1 should be H6 in the h6 tag
2011-07-02 09:02:02 -07:00
mlitwin
1ef7313e39 Bug 1992; Swipe threshold constants are configurable 2011-07-02 08:23:52 -07:00
Théophile Helleboid - chtitux
971a2a78ed Fix a typo in the doc : H1 should be H6 in the h6 tag 2011-07-02 03:36:44 -07:00
scottjehl
8b220a7be4 updated jquery version to 1.6.2 2011-07-01 14:39:21 -04:00
Ghislain Seguin
2deeee14d7 More elegant fix for #1990
Re-use $.mobile.allowCrossDomainPages & call deferred.reject to notify caller of failure
2011-06-30 13:40:06 -07:00
Eugen
1068f3e968 globalpagecreate-Event 2011-06-30 13:24:24 +02:00
Wietse Venema
dd2bdcd606 added failing test for inset listview issue with top-corner 2011-06-30 11:11:52 +02:00
Ghislain Seguin
8117f12ad5 Coding standards 2011-06-29 21:03:12 -07:00
Ghislain Seguin
b02e19891a Replace $.noop by function that throws to not fail silently 2011-06-29 21:02:53 -07:00
Ghislain Seguin
5fe310600f Fix for #1990: Introducing $.mobile.ajaxCrossDomainEnabled defaults to false 2011-06-29 20:00:12 -07:00
Kin Blas
2b51355656 Switch back to processing link clicks on the "click" event. It really is the only reliable way across all the devices we support.
Also, remove all references to useFastClick.
2011-06-29 17:38:00 -07:00
John Bender
2fda8f7efc sorted directories to create consistent/readable order of execution 2011-06-29 13:46:05 -07:00
John Bender
5a14398c55 throttledresize event tests use eventSequence 2011-06-29 12:48:09 -07:00
John Bender
8b6e617309 set up eventSequence helper, moved pageSequence to eventSequence(changpage, fns) 2011-06-29 12:41:04 -07:00
John Bender
eb772dfcae click the first item link in the dialog and not all the items in the dialog 2011-06-29 10:43:30 -07:00
John Bender
0774d6bfa0 move isOpen = true to the page show for dialog selects and to the bottom of the custom select logic branch to prevent timing issues 2011-06-29 10:43:30 -07:00
Kin Blas
df4e49b70c Merge pull request #1985 from rwldrn/jquery.mobile.page.js-4
Fixes regression: jquery.mobile.page.js - revert var decl
2011-06-29 10:26:28 -07:00
Rick Waldron
658a420c3b Fixes regression: jquery.mobile.page.js - revert var decl 2011-06-29 13:24:55 -04:00
Kin Blas
fb4b2ade25 Merge pull request #1984 from rwldrn/jquery.mobile.page.js-2
Fixes regression: jquery.mobile.page.js
2011-06-29 10:16:57 -07:00
Rick Waldron
a98a0d951f Fixes regression: jquery.mobile.page.js 2011-06-29 13:08:04 -04:00
Kin Blas
554780f36c Merge pull request #1981 from rwldrn/jquery.mobile.widget.js
jQuery core style guide conformance: jquery.mobile.widget.js
2011-06-29 09:15:52 -07:00
Kin Blas
a68cdd9f33 Merge pull request #1959 from rwldrn/jquery.mobile.fixHeaderFooter.js
jQuery core style guide conformance: jquery.mobile.fixHeaderFooter.js
2011-06-29 09:14:51 -07:00
Ghislain Seguin
188dbcc1a5 Coding standards 2011-06-29 08:59:40 -07:00
Ghislain Seguin
92fa98a88a Merge pull request #1980 from rwldrn/jquery.mobile.vmouse.js
jQuery core style guide conformance: jquery.mobile.vmouse.js
2011-06-29 08:52:52 -07:00
Kin Blas
93e59a7f22 Merge pull request #1957 from rwldrn/jquery.mobile.event.js
jQuery core style guide conformance: jquery.mobile.event.js
2011-06-29 08:50:12 -07:00
Rick Waldron
19e36d2fff jQuery core style guide conformance: jquery.mobile.event.js - fix string concat & split 2011-06-29 11:46:50 -04:00
Ghislain Seguin
7206049d21 Merge pull request #1979 from rwldrn/jquery.mobile.transition.js
jQuery core style guide conformance: jquery.mobile.transition.js
2011-06-29 08:36:41 -07:00
Kin Blas
786d1bf328 Merge pull request #1978 from rwldrn/jquery.mobile.support.js
jQuery core style guide conformance: jquery.mobile.support.js
2011-06-29 08:23:53 -07:00
Rick Waldron
fcc874eb93 jQuery core style guide conformance: jquery.mobile.widget.js 2011-06-29 10:00:57 -04:00
Rick Waldron
c61c064d25 jQuery core style guide conformance: jquery.mobile.vmouse.js 2011-06-29 09:57:45 -04:00
Todd Parker
afe76dc340 Merge pull request #1958 from rwldrn/jquery.mobile.fieldContain.js
jQuery core style guide conformance: jquery.mobile.fieldContain.js
2011-06-29 06:56:09 -07:00
Rick Waldron
087c584ccd jQuery core style guide conformance: jquery.mobile.transition.js 2011-06-29 09:38:57 -04:00
Rick Waldron
ce57eed4f6 jQuery core style guide conformance: jquery.mobile.support.js 2011-06-29 09:36:41 -04:00
Ghislain Seguin
9d728f4d41 Merge pull request #1977 from rwldrn/jquery.mobile.page.js
jQuery core style guide conformance: jquery.mobile.page.js
2011-06-29 06:34:47 -07:00
Rick Waldron
dfea9e2b83 jQuery core style guide conformance: jquery.mobile.page.js 2011-06-29 09:27:58 -04:00
Ghislain Seguin
272ef99e1d Coding standards 2011-06-29 06:24:18 -07:00
Ghislain Seguin
a7074bc86f Merge pull request #1973 from rwldrn/jquery.mobile.listview.js-2
jQuery core style guide conformance: jquery.mobile.listview.js-2
2011-06-29 06:21:07 -07:00
Ghislain Seguin
233a57f3a4 Merge pull request #1966 from rwldrn/jquery.mobile.listview.filter.js
jQuery core style guide conformance: jquery.mobile.listview.filter.js
2011-06-29 06:19:35 -07:00
Rick Waldron
e42ab139b3 jQuery core style guide conformance: jquery.mobile.listview.js-2, revert 2011-06-29 09:19:19 -04:00
Ghislain Seguin
67d468be8c Merge pull request #1976 from rwldrn/jquery.mobile.navbar.js-2
jQuery core style guide conformance: jquery.mobile.navbar.js-2
2011-06-29 06:17:20 -07:00
Rick Waldron
6b1d18b55e jQuery core style guide conformance: jquery.mobile.navbar.js-2 2011-06-29 09:06:18 -04:00
Rick Waldron
96ea959e44 jQuery core style guide conformance: jquery.mobile.listview.js-2 2011-06-29 09:03:49 -04:00
Rick Waldron
c96225796a jQuery core style guide conformance: jquery.mobile.listview.filter.js 2 2011-06-29 08:49:46 -04:00
Ghislain Seguin
453d9985cf Coding standards and linting 2011-06-28 23:15:12 -07:00
Ghislain Seguin
d0ec1ec452 Merge pull request #1660 from gseguin/issue-1470
Fix for #1470
2011-06-28 22:26:00 -07:00
Ghislain Seguin
595a2371f2 Coding standards 2011-06-28 22:17:41 -07:00
Ghislain Seguin
547a82c44c Merge remote-tracking branch 'upstream/master' 2011-06-28 22:14:40 -07:00
Ghislain Seguin
0b21f045c6 Merge pull request #1967 from rwldrn/jquery.mobile.navbar.js
jQuery core style guide conformance: jquery.mobile.navbar.js
2011-06-28 22:14:31 -07:00
Ghislain Seguin
f93e362075 Merge pull request #1965 from rwldrn/jquery.mobile.grid.js
jQuery core style guide conformance: jquery.mobile.grid.js
2011-06-28 22:13:22 -07:00
Ghislain Seguin
8a9010d5e6 Coding standards 2011-06-28 22:06:30 -07:00
Ghislain Seguin
8e93a318bf Fixed comment 2011-06-28 21:47:10 -07:00
Ghislain Seguin
f8c8e618bb Merge pull request #1964 from rwldrn/jquery.mobile.forms.textinput.js
jQuery core style guide conformance: jquery.mobile.forms.textinput.js
2011-06-28 21:39:26 -07:00
Ghislain Seguin
0f388ade64 Merge pull request #1963 from rwldrn/jquery.mobile.forms.slider.js
jQuery core style guide conformance: jquery.mobile.forms.slider.js
2011-06-28 21:33:15 -07:00
Ghislain Seguin
d53cb839da Merge pull request #1962 from rwldrn/jquery.mobile.forms.select.js
jQuery core style guide conformance: jquery.mobile.forms.select.js
2011-06-28 21:14:40 -07:00
Rick Waldron
05059f30d5 jQuery core style guide conformance: jquery.mobile.event.js 2011-06-28 23:48:20 -04:00
Rick Waldron
3c57cb8778 jQuery core style guide conformance: jquery.mobile.fieldContain.js 2011-06-28 23:48:03 -04:00
Rick Waldron
250d00cde3 jQuery core style guide conformance: jquery.mobile.fixHeaderFooter.js 2011-06-28 23:47:46 -04:00
Ghislain Seguin
80804c4818 Merge pull request #1961 from rwldrn/jquery.mobile.forms.checkboxradio.js
jQuery core style guide conformance: jquery.mobile.forms.checkboxradio.js
2011-06-28 19:39:09 -07:00
Rick Waldron
0750fc2e3b jQuery core style guide conformance: jquery.mobile.navbar.js 2011-06-28 21:38:41 -04:00
Rick Waldron
f5cc791297 jQuery core style guide conformance: jquery.mobile.listview.filter.js 2011-06-28 21:35:42 -04:00
Rick Waldron
5dbbf68d4e jQuery core style guide conformance: jquery.mobile.forms.slider.js 2011-06-28 21:27:07 -04:00
Rick Waldron
c66fcd2ccb jQuery core style guide conformance: jquery.mobile.grid.js 2011-06-28 21:25:13 -04:00
Rick Waldron
e44f553a64 jQuery core style guide conformance: jquery.mobile.forms.textinput.js 2011-06-28 21:20:52 -04:00
Rick Waldron
373c42d9ef jQuery core style guide conformance: jquery.mobile.forms.select.js 2011-06-28 20:54:30 -04:00
Ghislain Seguin
2a232a06e0 Merge pull request #1960 from rwldrn/jquery.mobile.forms.button.js
jQuery core style guide conformance: jquery.mobile.forms.button.js
2011-06-28 17:40:48 -07:00
Rick Waldron
74f05680b3 jQuery core style guide conformance: jquery.mobile.forms.checkboxradio.js 2011-06-28 20:35:40 -04:00
Ghislain Seguin
ab7eceb768 Merge pull request #1956 from rwldrn/jquery.mobile.dialog.js
jQuery core style guide conformance: jquery.mobile.dialog.js
2011-06-28 17:27:15 -07:00
Ghislain Seguin
0218d39449 Merge pull request #1955 from rwldrn/jquery.mobile.core.js
jQuery core style guide conformance: jquery.mobile.core.js
2011-06-28 17:25:20 -07:00
Rick Waldron
76b173dab2 jQuery core style guide conformance: jquery.mobile.fieldContain.js 2011-06-28 20:22:34 -04:00
Rick Waldron
ab751c8bdc jQuery core style guide conformance: jquery.mobile.core.js 2011-06-28 20:17:45 -04:00
Rick Waldron
92451a0287 jQuery core style guide conformance: jquery.mobile.forms.button.js 2011-06-28 20:15:43 -04:00
Rick Waldron
42f0b64262 jQuery core style guide conformance: jquery.mobile.event.js 2011-06-28 19:47:21 -04:00
Rick Waldron
5fe4bae160 jQuery core style guide conformance: jquery.mobile.dialog.js 2011-06-28 19:29:48 -04:00
Kin Blas
ddb06761b0 Merge pull request #1952 from rwldrn/jquery.mobile.collapsible.js
jQuery core style guide conformance: jquery.mobile.collapsible.js
2011-06-28 16:21:47 -07:00
Kin Blas
7efab0ed0d Merge pull request #1954 from rwldrn/jquery.mobile.media.js
jQuery core style guide conformance: jquery.mobile.media.js
2011-06-28 16:14:22 -07:00
Kin Blas
988045c65e Merge pull request #1953 from rwldrn/jquery.mobile.controlGroup.js
jQuery core style guide conformance: jquery.mobile.controlGroup.js
2011-06-28 16:09:23 -07:00
Kin Blas
c484a5644a Merge pull request #1951 from rwldrn/jquery.mobile.buttonMarkup.js
jQuery core style guide conformance: jquery.mobile.buttonMarkup.js
2011-06-28 16:06:23 -07:00
Rick Waldron
5b6a0570f5 jQuery core style guide conformance: jquery.mobile.collapsible.js 2011-06-28 19:02:33 -04:00
Rick Waldron
c351e9929a jQuery core style guide conformance: jquery.mobile.controlGroup.js 2011-06-28 19:01:27 -04:00
Rick Waldron
5b02da2c09 jQuery core style guide conformance: jquery.mobile.buttonMarkup.js 2011-06-28 18:30:17 -04:00
Rick Waldron
eaa91317d1 jQuery core style guide conformance: jquery.mobile.media.js 2011-06-28 18:19:05 -04:00
John Bender
a9020282b5 moved select test to page sequnce to fix timing issues 2011-06-27 19:03:30 -07:00
Kin Blas
aff87cc9f1 Fix for the mysterious "page is too large" error Todd and Scott were seeing on Blackberry 5 prior to shipping jQM beta 1.
Turns out this little code was enough to invoke the error:

"/dir1/dir2".replace(/\/?/, "");

Rewrote the regexp in path.makePathAbsolute() that was stripping leading slash, and trailing filename/slash. This gets around the problem.

Special thanks to @adambiggs for helping me test 33 iterations when trying to narrow down what in jquery.mobile.navigation.js was choking BB5.
2011-06-27 16:50:01 -07:00
Konstantin Pozin
e0dcf06983 Changed timing function on spin animation to linear, for a much smoother-looking spinner 2011-06-27 14:05:16 -07:00
John Bender
9729dc9f15 moved finicky hashchange test to sequence helper to prevent overlap with setting the hash 2011-06-27 12:36:17 -07:00
John Bender
d42658882a fixed init hang 2011-06-27 11:19:52 -07:00
John Bender
56c43d398b white space and title change for the suite runner 2011-06-27 11:19:51 -07:00
Kin Blas
008c5d7458 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-06-27 10:25:34 -07:00
Kin Blas
0d65a0d1c5 - Fixed issue #1923 - url of form is miscalculated
- Added code to calculate whether to choose the documentUrl or the page Url in the case where an action is not specified on a form element.

	- Fixed bug in the navigation "submit" handler where an error was being thrown if "type" was not specified.

	- Fixed typo "diabled" id typos in tests/unit/navigation/index.html.

	- Added tests for form submissions with no action in both base and non-base specified cases.
2011-06-27 10:25:13 -07:00
Todd Parker
8ec750ec65 Merge pull request #1938 from adamvaughan/filterfix
Prevent submitting the listview filter form. Fixes #1068. Thanks adamvaughan!
2011-06-27 09:14:56 -07:00
Adam Vaughan
abc2763188 don't submit the filter form 2011-06-27 09:35:16 -06:00
Tobias Bosch
ec06fc1efd unit tests for #1851 added. 2011-06-27 16:40:31 +02:00
John Bender
807536dd2c clear both timeouts when the tests complete or timeout 2011-06-26 23:29:26 -07:00
John Bender
132e6e510f whitespace in test suite runner 2011-06-26 23:19:38 -07:00
John Bender
37f533f12b fixed double equals lint warning 2011-06-26 23:17:49 -07:00
John Bender
97feeaffc0 moved check to interval, made the directories an ajax call instead of a templated js array, and reorged some bits to clean things up 2011-06-26 23:16:50 -07:00
John Bender
a7045d3bb4 prevent js error by adding a default page for the widget tests 2011-06-26 23:16:03 -07:00
John Bender
ce09bebe20 quick todo for the test runner 2011-06-26 21:20:05 -07:00
John Bender
13c0b1bdd8 whitespace correction for the test runner 2011-06-26 21:18:07 -07:00
John Bender
4409782b00 moved directories to a seperate php file the emits json 2011-06-26 21:17:32 -07:00
John Bender
b016b028f6 corrections in suite timeout code with a clearTimer addition 2011-06-26 19:58:29 -07:00
John Bender
32f5b226d7 fixed relative path issues for the jquery mobile website, and made a small tweak to the qunit css 2011-06-26 15:35:33 -07:00
John Bender
7575f35fa1 remove console log from unit test runner 2011-06-26 12:47:35 -07:00
John Bender
75a4a0795c added a page to run all the tests in a single place, depends on subdirectories representing their tested mobile files 2011-06-26 12:10:11 -07:00
John Bender
345c9e4dbb moved 20ms scroll test to test that it the scrolling is async. 20ms isn't enough time to be reliable 2011-06-26 12:10:11 -07:00
John Bender
1bf84177e0 whitespace correction in core 2011-06-26 12:10:11 -07:00
John Bender
b321d5f5f0 removed old nsNormalize camelcase regex 2011-06-26 12:10:11 -07:00
John Bender
601b4a8481 core whitespace fixes 2011-06-26 12:10:10 -07:00
Ghislain Seguin
3b96fa8cd1 Removed param "refresh" sent to .controlgroup since it's not a $.widget 2011-06-24 21:15:56 -07:00
Ghislain Seguin
52a0c10ef4 Readded tests for issue #1929 2011-06-24 21:14:09 -07:00
Ghislain Seguin
ebd4eeced0 Fix for issue #1929 (second attempt) 2011-06-24 21:13:46 -07:00
Ghislain Seguin
6b1343d946 Added test to catch previous breakage caused by buttons having class 'ui-btn-corner-all' 2011-06-24 20:49:16 -07:00
Ghislain Seguin
66aed02180 Disabled tests for issue #1929 until I find a better fix for it 2011-06-24 20:13:12 -07:00
Ghislain Seguin
00297af2ab Revert "Fixed issue #1929" as it is breaking horizontal controlgroups
This reverts commit 226873d988.
2011-06-24 20:08:51 -07:00
Ghislain Seguin
e0042cf58d Added unit tests for controlgroup 2011-06-24 16:13:41 -07:00
Ghislain Seguin
50a26155e0 Merge remote-tracking branch 'upstream/master' 2011-06-24 16:13:02 -07:00
Ghislain Seguin
226873d988 Fixed issue #1929 2011-06-24 16:11:54 -07:00
scottjehl
2e79a1aa33 updated the Valencia theme to match the active state changes for checks & radios. 2011-06-24 12:50:05 -04:00
Ghislain Seguin
9cf884eabb Coding standards 2011-06-24 12:40:01 -04:00
Ghislain Seguin
7a14f2ef15 Fixed checkbox/radio unit tests to match new active classes 2011-06-24 12:40:01 -04:00
scottjehl
9f07a1cfb2 ensure that the active button state is still applied to check and radio sets that don't have icons 2011-06-24 12:40:01 -04:00
Ghislain Seguin
ffdab6ff32 Fixed a glitch in the icon class name generation. It was adding ui-icon-ui-icon-checkbox-off to the checkbox icon element (2x ui-icon) and similar to radio icon element 2011-06-24 12:40:01 -04:00
Ghislain Seguin
9c3ebe07ea Added state class to label of checkbox/radio 2011-06-24 12:40:01 -04:00
Ghislain Seguin
3ab9665ddd Fixed icons offset 2011-06-24 12:40:00 -04:00
scottjehl
5a4b5f3206 Implemented the new design for checkboxes and radios as proposed by @toddparker. 2011-06-24 12:40:00 -04:00
scottjehl
037a589d6e Merge remote branch 'origin/master' 2011-06-24 12:39:42 -04:00
Scott Jehl
e8a973f46a Merge pull request #1710 from gseguin/issue-1338
Issue 1338
2011-06-24 09:16:01 -07:00
scottjehl
5b147580e6 Merge branch 'issue-1338' of https://github.com/gseguin/jquery-mobile into gseguin-issue-1338 2011-06-24 12:12:33 -04:00
Scott Jehl
b3ad908afa Merge pull request #1891 from cburgdorf/patch-1
Some jslint fixes. Corrected curly braces on new line and ==/=== issues
2011-06-24 08:53:46 -07:00
Scott Jehl
4443e9b761 Merge pull request #1919 from jgable/master
Fix for Typo in Docs; forms-selects.html
2011-06-24 08:41:06 -07:00
jacob4u2
c24b4d813b Typo in docs; if -> is, forms-select.html 2011-06-23 21:20:30 -05:00
Kin Blas
5ed85a8fe6 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-06-23 16:42:20 -07:00
Kin Blas
53d375cd0a Unit test for issue #1913 - unnecessary ajax call and duplicate DOM nodes when refreshing a page with a dialog visible. 2011-06-23 16:41:26 -07:00
Kin Blas
19031c6492 Merge pull request #1914 from sunpig/refreshdialog
Fix issue 1913 - unnecessary ajax call and duplicate DOM nodes when refreshing a page with a dialog visible.
2011-06-23 16:40:32 -07:00
Martin Sutherland
83973b429b Fix issue 1913 - unnecessary ajax call and duplicate DOM nodes when refreshing a page with a dialog visible 2011-06-23 18:33:06 +02:00
Tobias Bosch
ff2ef4076b fix issue 1851 as suggested 2011-06-23 13:31:05 +02:00
toddparker
c81b8cc181 Removed duplicate entry for Opera Mini (5.0-6.0) under C grade. It's B grade folks. 2011-06-22 14:49:13 -04:00
Kin Blas
4c8d7237df Changed the default for the delayedClickEnabled option to false. It was experimental anyways, for Android based browsers, and was breaking link clicking on iOS. 2011-06-22 11:42:37 -07:00
toddparker
685b2cd0bf Fixed swatch letter typo for E buttons - it said ui-bar-d instead of ui-bar-e. Fixes #1894. Thanks app42! 2011-06-22 13:58:33 -04:00
Ghislain Seguin
0935b6b0e6 Merge pull request #1901 from cburgdorf/patch-2
Fixed curly braces on new line
2011-06-22 09:36:29 -07:00
cburgdorf
c13a2f3bcb Fixed curly braces on new line 2011-06-22 09:31:49 -07:00
toddparker
221a8f1059 Merge remote branch 'origin/master' 2011-06-22 12:20:36 -04:00
toddparker
2a252d70f9 Language tweaks 2011-06-22 12:11:51 -04:00
toddparker
a9fc1e06f8 Moved collapsible sets (accordions) into a standalone page for better visibility, updated section nav on other pages and index page to link to it. 2011-06-22 12:01:13 -04:00
scottjehl
a43ce64db2 moved our form binding into the _registerInternalEvents callback, to ensure it's not bound until after mobilinit. 2011-06-22 11:43:22 -04:00
cburgdorf
5c0cfb29cb Some jslint fixes. Corrected curly braces on new line and ==/=== issues 2011-06-21 23:53:16 -07:00
John Bender
68a354ed07 make sure the stack is clear before the run continues 2011-06-21 13:12:27 -07:00
scottjehl
c227535bd7 removed vclick + click combined event binding, which was in there as a workaround for a not-consistently-occurring bug in Android 2.1. I think the real issue is related to lack of dynamic base tag support, and that occasionally, a relative href click will use default handling in 2.1 and go where it shouldn't (ignoring the base href). Either way, this double binding causes history problems in Safari, so I'm removing it while we search for a better 2.1 workaround. Fixes #1870 2011-06-21 12:43:17 -04:00
scottjehl
3e3a57401c page is no longer in use. 2011-06-21 12:11:24 -04:00
scottjehl
a94f62a6e7 Merge remote branch 'origin/master' 2011-06-21 11:34:10 -04:00
scottjehl
ffdfa4e7c2 moved page load event bindings to a post-mobileinit callback so that the useFastClick option can be set before it is used. Unit test included. Fixes #1869 2011-06-21 11:33:38 -04:00
John Bender
7451a4b30e event test fixes with one test removal. still _very_ time sensitive 2011-06-20 22:26:24 -07:00
John Bender
66fc726321 whitespace fix for event core tests 2011-06-20 22:26:24 -07:00
scottjehl
40b1e16693 changed working version to beta 2 pre 2011-06-20 19:38:44 -04:00
scottjehl
a9fae15c88 woops. missed a couple. done now. 2011-06-20 19:17:49 -04:00
John Resig
e9e64c2c77 Merge branch 'master' of github.com:jquery/jquery-mobile 2011-06-20 16:07:02 -07:00
John Resig
1ab4ddb507 Releasing jQuery Mobile 1.0b1. 2011-06-20 16:05:02 -07:00
scottjehl
7d8d249280 small docs adjustment 2011-06-20 19:04:58 -04:00
scottjehl
1ab123c76b components first 2011-06-20 19:03:57 -04:00
scottjehl
52575bb5cb updated versions in sample code 2011-06-20 19:01:50 -04:00
scottjehl
4c6f3fb5c8 couple more docs markup updates 2011-06-20 18:59:32 -04:00
scottjehl
13a22e3eec updated the footers in the new docs templates 2011-06-20 18:53:55 -04:00
scottjehl
f3e35d49dd more updates to the docs markup. getting close! 2011-06-20 18:53:55 -04:00
scottjehl
579f418c2e updated the rest of the navs to be local to their section. 2011-06-20 18:53:54 -04:00
scottjehl
ebf9bd8535 added navigation components to most docs pages 2011-06-20 18:53:54 -04:00
scottjehl
6980110d32 updated header themes 2011-06-20 18:53:54 -04:00
scottjehl
85c1121680 update js references 2011-06-20 18:53:54 -04:00
scottjehl
74b001f62e linked up js docs references properly 2011-06-20 18:53:54 -04:00
scottjehl
735ee926d3 more docs updates. moved to the green header, set default transition dynamically 2011-06-20 18:53:53 -04:00
scottjehl
a1785b0574 more docs updates 2011-06-20 18:53:53 -04:00
scottjehl
46622fde58 more updates to docs 2011-06-20 18:53:53 -04:00
scottjehl
4cbbd7779a docs design updates 2011-06-20 18:53:53 -04:00
scottjehl
c7a852938c layout tweaks on the docs. 2011-06-20 18:53:53 -04:00
scottjehl
1e5441fd76 reworked the docs to better accommodate wide screens using a simple responsive layout. Tweaks forthcoming! 2011-06-20 18:53:53 -04:00
Kin Blas
5890a801be Fixed a couple of errors caught by jshint. 2011-06-20 15:09:54 -07:00
Ghislain Seguin
dabb66aae9 Coding standards 2011-06-20 13:17:23 -07:00
Ghislain Seguin
4487aba8a0 Fixed test case for programmatically created list items 2011-06-20 13:16:09 -07:00
John Bender
4dac49359f fix for back button page index check by reseting history stack 2011-06-20 13:09:29 -07:00
John Bender
7b00335dcc small whitespace fix in navigation core tests 2011-06-20 13:09:29 -07:00
Ghislain Seguin
31bd038d74 Merge remote-tracking branch 'upstream/master' into issue-1470
Conflicts:
	tests/unit/listview/index.html
	tests/unit/listview/listview_core.js
2011-06-20 12:51:40 -07:00
toddparker
4000afe720 A few tweaks to the supported patform page to add details. 2011-06-20 14:55:39 -04:00
scottjehl
fe79ad63a4 fixed a bug in IE desktop, where calling scrollTop before domready was trying to access the body element before it was present. Moved this logic to domready and all's well. 2011-06-20 13:57:38 -04:00
scottjehl
9fffcb6eca bind to click as well, for an edge case in android 2.1 2011-06-20 13:44:33 -04:00
scottjehl
fa559af5b7 Merge remote branch 'origin/master' 2011-06-20 13:31:31 -04:00
scottjehl
9c9a9ad147 set page min-height using availHeight or availWidth, rather than height (to fine tune height to exclude browser chrome). Also, reset the active page height on throttledresize and pageshow, eliminating some duplicate calls. 2011-06-20 13:31:26 -04:00
toddparker
7a5c8b7e62 Re-vamped supported platform page to match the latest Beta 1 blog post. Added desktop browsers to the list. 2011-06-20 13:04:18 -04:00
scottjehl
46c0946633 Disable background on hidden buttons so that they don't appear in Opera Mini. Fixes #1862 2011-06-20 12:10:14 -04:00
scottjehl
45a71ac499 Added global config option "useFastClick", so that the changes we made for automated ajax handling since A4 can be disabled if needed, for whatever reason. When handling clicks and taps automatically with Ajax, this option will use jQuery Mobile's <code>vclick</code> event, enabling page changes to happen slightly sooner on devices that support touch events, and keeping the address bar hidden during page transtions. When disabled, the automatied Ajax handling will use an ordinary <code>click</code> event instead. This option has no effect on non-touch devices, but when enabled, it may interfere with jQuery plugins that bind to click events rather than vclick events. Fixes #1857 2011-06-20 11:35:09 -04:00
scottjehl
823485ce11 Blur other buttons when a new one is clicked and gaining focus. This gets rid of the trail of focus states issue we've been seeing. Fixes #1840. 2011-06-19 14:34:36 -04:00
scottjehl
84f4d9dc3c switched the order so that scroll check happens earlier. 2011-06-19 14:20:19 -04:00
scottjehl
a09c53eb71 improved the address bar hiding logic to support Android as well by determining up-front which hiding number should be used. Fixes #1673. Fixes #1322. Fixes #1786. 2011-06-19 13:53:27 -04:00
scottjehl
ca0c1165fd should be bound to throttled resize as well, actually. 2011-06-19 08:00:10 -04:00
scottjehl
8c6164dbf0 Added new throttledresize special event, including unit tests. This event prevents browsers from running continuous callbacks on resize, which we use internally for orientationchange in browsers like IE. It still ensures that a held event will execute after the timeout, so logic that depends on the final conditions after a resize is complete will still execute properly. This improves performance noticeably, and... Fixes #1496. Fixes #1848. Fixes #1422.
The included tests pass most of the time, but they need improvements as they will occasionally fail due to faulty timing in the tests themselves, as far as I can tell (the code tests out fine in our functional demos).
2011-06-18 11:41:47 -04:00
scottjehl
c4491d279f fixed unit tests to use new orientationchange logic, which no longer binds to resize event. 2011-06-18 10:45:36 -04:00
scottjehl
ee424f5f97 only bind to orientationchange, as resize is built into it already as a fallback 2011-06-18 10:43:11 -04:00
scottjehl
90fb871ee8 referenced the full object to avoid a minifier issue when trying to reference a local variable. Will follow up on this... 2011-06-18 09:19:45 -04:00
scottjehl
9ab7817b5b native forms example page was missing a meta viewport. 2011-06-18 08:16:49 -04:00
Kin Blas
18d7b7902c Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-06-17 18:22:46 -07:00
Kin Blas
9f4ae3ba79 Documenting isSameDomain(), isRelativeUrl(), isAbsoluteUrl(), makePathAbsolute(), and makeUrlAbsolute(). 2011-06-17 18:22:00 -07:00
scottjehl
06020201fc fixed up the themeswitcher 2011-06-17 19:25:35 -04:00
scottjehl
ffa35c0548 improved minheight page logic 2011-06-17 19:19:47 -04:00
scottjehl
fcbfc2f380 added minScrollBack feature to core options. This is the minimum scroll distance that will be jumped-to when returning to a page. By default, the distance is screen.height /2. If you really needed to disable scroll memory altogether, this could be set to Infinity. Note that disabling scroll memory altogether is almost never a good idea for usability, but the option is there. 2011-06-17 19:19:47 -04:00
scottjehl
3bd713c185 added resetActivePage on pagecreate, orientationchange, and after transitions. 2011-06-17 19:19:47 -04:00
scottjehl
690dc66f7c set heights including respective scrolls 2011-06-17 19:19:46 -04:00
scottjehl
aa950ba125 Only call scrollTo if there's a scroll distance we need to go to. If the distance we're jumping to is 20px or less, let it go in for tolerance. Reset toPage height before scrolling, focusing. 2011-06-17 19:19:46 -04:00
scottjehl
df7ac2f642 fix up the page heights during transitions, and min-heights otherwise. 2011-06-17 19:19:46 -04:00
scottjehl
ed7aae1d1c hide address bar during page changes by catching ajax clicks early through binding to touchend, and make pages fit screen height during transitions 2011-06-17 19:19:46 -04:00
scottjehl
d636421f95 Merge remote branch 'origin/master' 2011-06-17 19:03:01 -04:00
scottjehl
758e430653 fixed theme inheritance on filter lists in IE7. 2011-06-17 19:02:53 -04:00
toddparker
849c533839 Fixed page title 2011-06-17 18:46:04 -04:00
toddparker
101d40e7f2 Removed beta support block 2011-06-17 18:45:19 -04:00
toddparker
30e085c05b Merge remote branch 'origin/master' 2011-06-17 18:44:14 -04:00
toddparker
79391e8d66 Updated supported browser info for beta. 2011-06-17 18:43:58 -04:00
toddparker
82d66252ad Updated support platform list to match beta 1 2011-06-17 18:40:54 -04:00
scottjehl
722ed2cbbf If ajax is disabled, exit the click handler early and avoid parsing the href at all. Thanks for the idea, @toddparker! Fixes #1846. 2011-06-17 18:33:16 -04:00
toddparker
b3aa56582c Added a warning about the use of the flip transition on Android. 2011-06-17 16:37:28 -04:00
Kin Blas
29df5c6a3c Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-06-17 12:30:31 -07:00
Kin Blas
93d3551f9c Documenting $.mobile.path.parseUrl(). 2011-06-17 12:29:50 -07:00
Todd Parker
1d5e6b330a Merge pull request #1845 from gseguin/tests
Fixed test for "Programmatic removal of list items"
2011-06-17 12:09:31 -07:00
Ghislain Seguin
a6533e3676 Fixed test for "Programmatic removal of list items"
(cherry picked from commit 5d4bf2d5412c900fbcd093f1a3549a34dbab8e6c)
2011-06-17 11:59:05 -07:00
Ghislain Seguin
f32fe66bf7 Merge remote-tracking branch 'upstream/master' into issue-1470
Conflicts:
	tests/unit/listview/listview_core.js
2011-06-17 10:46:52 -07:00
Kin Blas
525543b06d Merge pull request #1662 from gseguin/issue-1654
Issue 1654
2011-06-17 09:41:22 -07:00
Ghislain Seguin
ff8517c915 Merge remote-tracking branch 'upstream/master' into issue-1654
Conflicts:
	tests/unit/listview/listview_core.js
2011-06-17 09:37:36 -07:00
scottjehl
1dd6608829 remove active button state on buttons that close dialogs. Fixes #1839 2011-06-17 02:11:59 -04:00
Scott Jehl
0cff6336bd Merge pull request #1489 from bernharduw/master
Radio buttons in nested listviews don't work. Fixes #1486
2011-06-16 22:41:16 -07:00
scottjehl
b787ef1015 Updated documentation for theming the list view filter search box. (cherry-picking from commit b39dab88d8567ddc40f87eca718e12d29cbd4df7)
Credit to @adamvaughan for this change.
2011-06-17 01:32:50 -04:00
scottjehl
d2a6397983 added list filterTheme option. Available as data attribute data-filter-theme on listviews with filters enabled. Fixes #1790 - List view filter can not be themed.
Thanks for the idea @adamvaughan! Docs update coming next.
2011-06-17 00:59:17 -04:00
Scott Jehl
004f67d384 Merge pull request #1817 from wtw/master
Fixes #1549.
2011-06-16 21:29:12 -07:00
scottjehl
6f6f9cd3fc Fixed typo in test url. 2011-06-17 00:26:48 -04:00
Scott Jehl
aaba7a5621 Merge pull request #1802 from eddiemonge/patch-2
edited README.md with updates and patching help url
2011-06-16 21:25:59 -07:00
scottjehl
fd738c5b04 Modified the listview thumbail-finding logic to specifically find first children of the li or the primary button's inner anchor element. Fixes #1794. Fixes #1458 2011-06-17 00:21:11 -04:00
Scott Jehl
cc809da95c Merge pull request #1828 from eddiemonge/bug_1825
Code guideline styling changes for collapsible.js
2011-06-16 20:59:23 -07:00
scottjehl
e06ae4a5b9 rolled back the change to looking up list filter placeholders. Seems to work fine as it was originally. Added a custom placeholder to the listview filter with headings demo page. 2011-06-16 23:47:04 -04:00
Scott Jehl
60f80b9473 Merge pull request #1838 from adamvaughan/issue1836
Fix for issue 1836 - List view filter placeholder data attribute is not used. Edits coming after this commit.
2011-06-16 20:37:40 -07:00
Scott Jehl
fb8ad44a94 Merge pull request #1842 from gseguin/issue-1595
Fix for issue #1595
2011-06-16 20:30:28 -07:00
Ghislain Seguin
00bd49a414 issue #1595: Back button gets clipped when there is no title 2011-06-16 17:25:59 -07:00
Kin Blas
712e7b01a8 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-06-16 15:44:49 -07:00
Kin Blas
96b3e710d4 Added utility functions $.mobile.getDocumentBase() and $.mobile.getDocumentUrl() so that developers can retrieve the original base and url used when loading the document. 2011-06-16 15:43:40 -07:00
Kin Blas
6e7e4d0c7a Merge pull request #1841 from gseguin/issue-1816
Fix for issue #1816
2011-06-16 15:41:40 -07:00
Ghislain Seguin
c3e501541a Fix for issue #1816: $(select).selectmenu('disable') causes issues on iOS for native selects 2011-06-16 15:39:09 -07:00
Kin Blas
0ec7c3c54a Changed the description of the role option for loadPage() and changePage() to reflect some changes to the default value I just checked in. 2011-06-16 15:18:42 -07:00
Kin Blas
8b6d14bb03 Fix for issue 1826 - Nightly build - dialog box no longer rounded corners
- Don't set a default value for the 'role' option to loadPage() and changePage(). Instead, rely on the role attribute that is on the element.

- Fixed an error that was happening when a hash change involves going from a dialog back to another dialog. I had recently made changes that assumed the 'to' variable was always going to be a url string, but it turns out in the dialog back to dialog case, it is an actual jQuery collection.
2011-06-16 13:36:39 -07:00
Adam Vaughan
d1a958d1d7 Fix for issue 1836 - List view filter placeholder data attribute is not used. 2011-06-16 11:46:04 -06:00
Kin Blas
d2f115349a Fix for issue 1833 - No page transition used when hitting the browser forward button
- Don't use the transition of the initial page on the stack.
2011-06-15 15:28:52 -07:00
Kin Blas
ca4428c430 - Update changePage() documentation to match current implementation.
- Added entry for loadPage().
2011-06-15 13:58:08 -07:00
jblas@adobe.com
dd69372dd4 Adjusted the urlParserRE regexp to account for double slashes in the directory path to work around a phonegap 0.9.4. 2011-06-15 10:37:08 -07:00
Eddie Monge
0de386eda9 Code guideline styling changes for collapsible.js 2011-06-14 15:32:57 -07:00
Todd Parker
7e40ddff4e Merge pull request #1803 from eddiemonge/combine
minor changes to combine.php
2011-06-14 11:42:40 -07:00
Kin Blas
c011f51f14 Removed unused path.isRelative() function. Replaced unit tests for isRelative() with tests for path.isRelativeUrl. 2011-06-13 16:45:10 -07:00
Kin Blas
41349de54f Add some tests for the use case where the document URL is different from the document base. 2011-06-13 15:26:19 -07:00
Kin Blas
aca0caa1e3 Merge branch 'master' into path-fixes 2011-06-13 15:20:01 -07:00
scottjehl
74de5b2b55 changed the opacity/native select hiding so that it works in some variants of android 2.2. Fixes #1051 2011-06-13 18:05:50 -04:00
Todd Parker
1230bedd40 Merge pull request #1818 from innoying/patch-1
Fixed typo in docs/buttons/buttons-themes.html. Thanks innoying!
2011-06-13 07:38:49 -07:00
Luke Young
48dac50dad Fixed typo in docs/buttons/buttons-themes.html (was "d" when it should be "e") 2011-06-12 12:13:33 -07:00
Wolfram Twelker
41c1116aa2 Fixed ticket 1549 - no change event triggered on deselecting first
option in multiple-select
2011-06-11 17:12:15 +02:00
Kin Blas
e286808391 Rule of thumb ... get your logic right and your code will behave as you expect.
- I should've been using !== instead === when figuring out docBaseDiffers.
2011-06-10 16:13:58 -07:00
Kin Blas
963a84cb18 IE7 returns an empty string for regexp submatches while all other browsers return undefined. Modified the parseUrl() function to normalize all non-matches to an empty string and replaced all strict checks for undefined to strict checks for an empty string. 2011-06-10 15:31:09 -07:00
Todd Parker
682058eb6e Merge pull request #1810 from alazaro/patch-1
Fixes #1809 - icon images not showing in collapsible content.
2011-06-10 15:12:28 -07:00
Kin Blas
a337e6d9a2 Fixed a test case that had a bad baseline result. 2011-06-10 10:17:54 -07:00
Kin Blas
244385b9f9 Merge branch 'master' into path-fixes 2011-06-10 10:02:11 -07:00
Kin Blas
b7bcf93620 - We were missing a changepage notification in the case where we were transitioning to the same page.
- Added changepagefailed notification for the case where the load fails. Note we still need beforeloadpage/loadpage notifications.

- Misc fixes to stop the navigation unit tests from seemingly random failures. It seems that the hash resets in setup/teardown of the test modules sometimes interferes with the changePage() requests in the tests. Added code to the setup/teardown functions to wait for the reset to complete before moving on to the tests.
2011-06-10 10:00:25 -07:00
Todd Parker
a0a04da7b3 Merge pull request #1815 from gseguin/issue-1762
Issue 1762: Extra (useless) iteration on list view items. Closes #1762
2011-06-10 09:51:42 -07:00
Ghislain Seguin
4572200107 Coding standards 2011-06-10 09:40:41 -07:00
Ghislain Seguin
c9abc368d8 Issue #1762: Removed extra iteration on list items 2011-06-10 09:40:15 -07:00
Álvaro Lázaro
f44d3c3cef Fixed #1809 - icon images not showing in collapsible content. 2011-06-10 03:52:15 -07:00
Kin Blas
f605e100e4 More fixes to get the navigation tests green again.
- Switched lots of tests over to using pageSequence.
2011-06-09 20:44:10 -07:00
Scott Jehl
3ca8f35ca2 Merge pull request #1806 from frietsch/master
Fixed a bug that can result in totally blank pages.
2011-06-09 13:24:36 -07:00
scottjehl
e1ed42d8b9 removed height:100% on inner buttons. I think this was a carryover from the old listview markup, but in testing we found no regressions by removing this. Fixes #1507 2011-06-09 16:17:18 -04:00
Eddie Monge
d508c3da96 remove ASP style tags, closing PHP tags and short php code 2011-06-09 09:31:42 -07:00
frietsch
d99d096ab7 Bugfix: ":jqmData(ajax='false')" might also match forms, which have neither of "src" or "href". In that case, thisUrl is undefined, and the following replace results in an error. 2011-06-09 08:21:21 -07:00
Scott Jehl
daffc98bf8 Merge pull request #1795 from bestform/master
Scrollview: fixed binding of orientationchange event
2011-06-09 07:20:26 -07:00
Eddie Monge
3688e8fa92 minor changes to combine.php 2011-06-09 01:51:37 -07:00
Eddie Monge Jr.
b2b10ccb0d edited README.md with updates and patching help url 2011-06-09 01:23:52 -07:00
Matthias Derer
506c1d974c Merge remote branch 'jquery/master' 2011-06-09 08:50:56 +02:00
Kin Blas
3d6bd402a2 - Changes to get the navigation_helpers.js unit tests green.
- Modified isExternal so that it returns true/false to help with unit tests.
2011-06-08 17:20:01 -07:00
scottjehl
5512c8af02 use prop instead of attr for enable/disable 2011-06-08 18:12:42 -04:00
Kin Blas
eb082c27e3 Merge branch 'master' into path-fixes
Fixed Conflicts:
	js/jquery.mobile.navigation.js
2011-06-08 15:10:16 -07:00
Kin Blas
8e1e77badf Get deep linking to internal pages working again. We can now also deep link to nested list sub-pages that are contained within internal pages. 2011-06-08 15:06:41 -07:00
scottjehl
93e7afd4b1 make sure nested collapsible sets don't toggle their parent collapsibles when expanded. Fixes #1387 2011-06-08 18:00:26 -04:00
Kin Blas
33b9ee8052 Changes to make sure the data-url are either an id, site relative path (for same domain), or absolute Url (for cross-domain Phone Gap). 2011-06-08 14:47:24 -07:00
scottjehl
f8957baec7 make sure options don't get text-indented. Fixes #1717 2011-06-08 16:37:42 -04:00
Matthias Derer
04e75b07cd fixed binding of orientationchange event (was on document, but only works on window). Moreover, it is now bound using 'bind' and not 'live' 2011-06-08 17:18:05 +02:00
Todd Parker
4497d138f2 Merge pull request #1782 from gseguin/nested-lists
Beefed up nested lists test
2011-06-08 07:39:34 -07:00
Kin Blas
a99728d178 - Added addSearchParams() utility function.
- Removed unused path functions: setOrigin(), makeAbsolute(), and isQuery().
- Modified loadPage() so that it uses addSearchParams() instead of naively appending it to the URL.
- Switched the global "click" handler back to using the link @href attribute and manually converting it to an absolute URL. This was necessary because it turns out that the href property on a link is dynamically calculated at the time of access based on the *CURRENT* base tag setting. This means the same link can return a different href value if the the base tag is different each time you access it.
2011-06-06 15:58:21 -07:00
Kin Blas
3a2a35f8f2 Merge pull request #1784 from gseguin/master
Whitespace change
2011-06-06 08:34:38 -07:00
Kin Blas
19f1a775b9 Missed a couple of places I should've used hrefNoHash when I converted documentBase to an urlObject. 2011-06-04 10:51:41 -07:00
Kin Blas
f9dd767528 Switched form handler over to processing absolute urls. 2011-06-04 01:22:16 -07:00
Kin Blas
ba502f0aff Changes to switch the global link click handler over to processing absolute urls. 2011-06-04 00:26:25 -07:00
Ghislain Seguin
9d3862c825 Whitespace change 2011-06-03 19:02:13 -07:00
Kin Blas
b148ee424a Added isSameDomain() Utility function. 2011-06-03 13:57:25 -07:00
Ghislain Seguin
6af27f9a7e Beefed up nested lists test 2011-06-03 11:06:44 -07:00
Kin Blas
c88f5fc251 Merge pull request #1781 from gseguin/nested-lists
Nested lists id generation
2011-06-03 10:58:43 -07:00
Ghislain Seguin
888a3d4faf Fixed nested lists tests following id generation change (8373105) 2011-06-03 10:55:04 -07:00
Ghislain Seguin
3ee2585cba Fix for issue #1617: Nested lists with same parent text resolve to the same sub-page. 2011-06-03 10:55:04 -07:00
Ghislain Seguin
14492002e2 Fixed test case for issue #1617 2011-06-03 10:55:04 -07:00
Kin Blas
9e696b8d26 Backing out commit for "fix height issue for transitioning page"
https://github.com/jquery/jquery-mobile/pull/1723
b2a534c217

It was causing a few issues including:

https://github.com/jquery/jquery-mobile/issues/1770
2011-06-03 09:29:41 -07:00
Kin Blas
fad61785fe Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-06-02 16:54:14 -07:00
Kin Blas
489fc19fb1 Unit test to catch issues like 1767.
- Test passing string as data option to changePage().
- Test passing object as data option to changePage().
2011-06-02 16:52:36 -07:00
Kin Blas
97ba431f92 Merge pull request #1771 from eddiemonge/makefile_deploy
Makefile: Remove log as the info is now in the files from the nightly/lat
2011-06-02 14:33:48 -07:00
Kin Blas
b31825a1d7 Fixed issue 1767 - loadPage/changePage broken in trunk (latest build)
- Not sure how/why I added that extra absUrl, but its gone now.
2011-06-02 10:41:55 -07:00
eddiemonge
757dda99d0 Makefile: Remove log as the info is now in the files from the nightly/latest build. Fix output name for the same 2011-06-02 09:49:21 -07:00
Kin Blas
a2182dafa9 - Added a getClosestBaseUrl() utility function for calculating the correct base URL to use for a given element.
- We should be using makeUrlAbsolute() instead of makePathAbsolute() when calculating the documentBase.
- Removed bogus code in pathname calculatino in makeUrlAbsolute().
- Reworked calculation of search in makeUrlAbsolute() to prevent an undefined in the case where rel and abs urls have no search.
2011-06-01 17:15:18 -07:00
Kin Blas
3ca5dd854a - Added URL parsing and relative to absolute path and url utility methods.
- Switched the base tag management code over to using new utilities.
2011-06-01 11:59:13 -07:00
Kin Blas
6a2deead0f Merge pull request #1724 from eddiemonge/dialogToCodeStandards
Dialog to code standards and refactor a bit
2011-05-31 14:48:05 -07:00
eddiemonge
244cda822a add white space for code standard 2011-05-31 14:44:31 -07:00
eddiemonge
0438418175 merge changes 2011-05-31 14:41:54 -07:00
Kin Blas
a5d3c05e4b Merge branch 'dialogToCodeStandards' of https://github.com/StevenBlack/jquery-mobile into StevenBlack
Fixed Conflicts:
	js/jquery.mobile.dialog.js
2011-05-31 14:14:05 -07:00
eddiemonge
d3df858eea missed an equal sign 2011-05-27 12:13:48 -07:00
Kin Blas
991db0de46 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-05-27 10:55:20 -07:00
Kin Blas
ef9d55f4b6 Hopefully the last set of fixes for issue 1712 - $.mobile.changePage broken in latest
- The test case calls changePage() with a hash ("#b"). In our normal processing of clicks/form submits we strip it before calling. The old code did a strip in changePage() just in case, so I added it back in to fix the last bug.
2011-05-27 10:53:19 -07:00
Scott Jehl
bb67018dd7 Merge pull request #1723 from eddiemonge/bug_1507
fix height issue for transitioning page
2011-05-27 07:21:02 -07:00
Scott Jehl
4b40896b6a Merge pull request #1709 from shanag/checkboxradio-keyboard-fix
Allow checkboxes and radio buttons to be selected with the keyboard
2011-05-27 07:11:21 -07:00
Shana Golden
c9d97ef261 Allow checkboxes/radio buttons to be selected with keyboard - updated to use prop() 2011-05-27 10:06:18 -04:00
eddiemonge
371efce3c3 actually use the defined variables 2011-05-26 17:20:56 -07:00
Kin Blas
6fdb90df17 Fixed a typo in $.mobile.loadPage.defaults. The default for the data property should be undefined, not the string "undefined". 2011-05-26 17:04:27 -07:00
eddiemonge
7a01d702ef trying to sneak this in as well 2011-05-26 16:49:05 -07:00
eddiemonge
b2a534c217 fix height issue for transitioning page 2011-05-26 16:43:07 -07:00
Kin Blas
c8761525e7 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-05-26 16:41:41 -07:00
Kin Blas
7befe9087a The signature of changePage() has changed but folks need some time to transition to using the new signature. I added code to changePage() that maps any old signature calls to changePage() into a new call. This should fix issue 1712 ($.mobile.changePage broken in latest). This code should be removed before shipping 1.0. 2011-05-26 16:39:09 -07:00
Todd Parker
6ac1598033 Merge pull request #1719 from StevenBlack/buttonMarkupToCodeStandards
jquery.mobile.buttonMarkup.js: Whitespace changes, bring this package up to coding standards
2011-05-26 13:04:37 -07:00
Todd Parker
881d3f455f Merge pull request #1720 from StevenBlack/CollapsibleToCodeStandards
jquery.mobile.collapsible.js: Whitespace to standards.  Now passes jsHint. Thanks Steven.
2011-05-26 13:04:20 -07:00
Steven Black
bce94ffbaa jquery.mobile.collapsible.js: Whitespace to standards. Now passes jsHint.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-26 15:41:01 -04:00
Steven Black
399c2c5af0 jquery.mobile.buttonMarkup.js: Whitespace changes, bring this package up to jQuery coding standards.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-26 15:08:10 -04:00
Scott Jehl
84d540e533 Merge pull request #1718 from Wilto/master
Fixed header/footer positioning in IE 7/8
2011-05-26 11:27:56 -07:00
Mat Marquis
86295b170d Correcting my own comment. 2011-05-26 13:00:01 -04:00
Mat Marquis
4947eacf1c Bound 'silentscroll' event back to document, as it was causing issues in modern browsers and made no difference in IE 7/8. 2011-05-26 12:40:49 -04:00
Mat Marquis
f36e92fb7b Desktop IE wasn't reporting a scrollTop value for fixed headers/footers—'window' is now provided as a fallback in the event that .scrollTop() reports zero. 2011-05-26 11:51:16 -04:00
Steven Black
ab76ac33ac jquery.mobile.dialog.js: Whitespace changes and string delimiters, bringing this up to jQuery coding standards. Renamed one memory variable for legibility and clarity.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-26 10:01:39 -04:00
Kin Blas
e5876e3d3b Attempt number 2 at fixing 1708 - - nightbuild close dialog throwing error 2011-05-25 17:17:21 -07:00
Kin Blas
bee8549a18 Fixed a bad typo caught by @johnbender and @gseguin.
- Replaced an un-intentional semi-colon with a comma.
2011-05-25 15:13:44 -07:00
Ghislain Seguin
17000df9b0 Merge branch 'master' of https://github.com/jquery/jquery-mobile into issue-1338 2011-05-25 13:11:04 -07:00
Ghislain Seguin
ed7eb38bdc Issue #1338
Added unit test
2011-05-25 13:10:50 -07:00
Ghislain Seguin
37a180a6c5 Issue #1338
Smaller CSS fix
2011-05-25 13:10:50 -07:00
Kin Blas
0012657761 Fix for issue 1708 - nightbuild close dialog throwing error
- Check the returned active object to see if it is valid before attempting to extract the transition out of it. Default to $.mobile.defaultDialogTransition if there is no active object.
2011-05-25 13:10:50 -07:00
Shana Golden
4ca2fc5287 Allow checkboxes and radio buttons to be selected with the keyboard 2011-05-25 15:45:41 -04:00
Kin Blas
923b047e75 Fix for issue 1708 - nightbuild close dialog throwing error
- Check the returned active object to see if it is valid before attempting to extract the transition out of it. Default to $.mobile.defaultDialogTransition if there is no active object.
2011-05-25 12:44:10 -07:00
Ghislain Seguin
e38a58ab54 Issue #1338
Fixed CSS
2011-05-25 11:00:20 -07:00
John Bender
a4ee2d5bbb moved local failing firefox test to pageSequence helper 2011-05-24 16:42:38 -07:00
scottjehl
e1ac8eec6b Merge remote branch 'origin/master' 2011-05-24 19:32:59 -04:00
scottjehl
198ca91d7d Changed the hiding mechanism for invisible native selects so that they work in Firefox Mobile. Fixes #1626. Tested on the following platforms: Mobile Firefox on Android 2.2, Firefox 3.6 and 4.x Mac, Chrome on Mac, Internet Explorer 7 and 8 - Desktop, Windows Phone 7, Safari desktop, Android 2.2 webkit, iOS 4 iPhone, BlackBerry 5, BlackBerry 6, iOS 4 on iPad, Opera Mini & Desktop on Mac 2011-05-24 19:32:53 -04:00
Scott Jehl
32d7fca682 Merge pull request #1685 from StevenBlack/NixDatepicker
Per discussions last week: removal of the experimental jQuery-UI-based Datepicker. Code can be found here: https://github.com/filamentgroup/jQuery-Mobile-Themed-DatePicker
2011-05-24 15:53:44 -07:00
scottjehl
912b674556 Merge remote branch 'origin/master' 2011-05-24 17:40:02 -04:00
scottjehl
76fe9ca3fd moved previous logic to the init file so it's not overridden by defaults. 2011-05-24 17:39:53 -04:00
John Bender
8291f92ce8 fixed error on undefined var in init_core tests 2011-05-24 14:14:19 -07:00
scottjehl
7b578f7873 Disabled ajax navigation in BlackBerry 5 and Opera Mini, for a more usable overall experience (and in some cases, due to insufficient native history implementations that don't track hash changes). Fixes #1644 and Fixes #1276 2011-05-24 17:08:29 -04:00
scottjehl
8929ac33b9 Removed the ajaxLinksEnabled and ajaxFormsEnabled settings. These were deprecated in a4 and scheduled for removal. Automated link and form ajax handling can still be globally disabled via the ajaxEnabled option. 2011-05-24 16:08:30 -04:00
Kin Blas
368d3e55b4 Merge branch 'master' into navigation 2011-05-23 17:00:32 -07:00
Kin Blas
5e87e8481d Did a sweep over all tests (except for filter tests) to convert them to pageSequence() where possible. This fixes the test bustages caused by the changePage() refactoring. Note that the "Multiple nested lists on a page" test is still busted, as it is on the HEAD. 2011-05-23 16:51:37 -07:00
Kin Blas
786ef25e0a Changes to get the navigation unit tests green again.
- Modified changePage() to set isPageTransitioning earlier.
- Modified pageSequence() to allow the current changepage callback stack to unwind before firing off the next function in the sequence.
2011-05-23 14:30:40 -07:00
John Bender
a2834bb367 removed two unnecessary tests from the navigation suite, and moved a few more over to the pageSequence helper. 2011-05-21 23:36:06 -07:00
John Bender
dc530ea751 page sequence helper added, nav tests in a somewhat better state. the event trigger spot, namespace, and general setup are all up for debate 2011-05-21 22:15:12 -07:00
Steven Black
f2ad4e5fe2 Per discussions last week about the removal of the experimental jQuery-ui Datepicker.
* docs/forms/index.html: Removed reference to the jQuery-UI Datepicker which is too heavy for mobile.
* experiments/ui-datepicker folder: deleted since it is no longer referenced.

Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-21 22:06:39 -04:00
Kin Blas
2cfacc4804 Changes to get the navigation_core and navigation_helpers tests to pass again:
- Modified changePage() click test so that it expects changePage() to be called twice.
- Added changePage() test that makes sure it is called once when it is invoked with a page element instead of a URL.
- Added siteDirectory path to be used with some tests which assumed that the tests directory was at the top-level of the server site.
2011-05-20 15:32:17 -07:00
Kin Blas
5ba2cc975e Inverted the logic around ignoreNextHashChange so that it actually matches the name of the variable.
Modified the hashchange callback so that it specifies a "none" transition, instead of a false boolean, for the case where the hash changed and there is nothing on the urlHistory stack.
2011-05-20 15:19:54 -07:00
John Bender
fe7ba3f6c6 jquery style compliance for nsNormalize 2011-05-20 12:32:08 -07:00
Todd Parker
115a7858b3 Merge pull request #1678 from eddiemonge/patch-1
Minified CSS was getting double info
2011-05-20 11:43:34 -07:00
Eddie Monge Jr.
9fce3e1f72 Minified CSS was getting double info 2011-05-20 11:36:28 -07:00
Todd Parker
ed3dc7092a Merge pull request #1675 from cwt137/master
Fix for issue #1674. Toolbar Theming Example Missing Button. Thanks cwt137
2011-05-20 10:41:32 -07:00
Kin Blas
3c792c58f0 Merge branch 'master' into navigation
Fixed Conflicts:
	js/jquery.mobile.init.js
	js/jquery.mobile.navigation.js
2011-05-20 09:39:19 -07:00
John Bender
4c299a600b moved nsNormalize from replace to jquery camelCase function 2011-05-20 09:20:15 -07:00
cwt137
2a5badd14d Adds missing button in toolbar theming example. Fixes issue #1674 2011-05-20 06:27:52 -07:00
John Bender
ad6279dd8a small optimization to prevent unnecessary recompilation of normalization regex 2011-05-20 01:09:39 -07:00
John Bender
3520e77dc4 comment for clarity on function purpose 2011-05-20 00:48:41 -07:00
John Bender
118599748b comment whitespace 2011-05-20 00:43:53 -07:00
John Bender
15b93909f5 tests for nsNormalize 2011-05-20 00:42:11 -07:00
John Bender
7eb1085764 data attribute namespace normalization to comply with spec and jquery 1.6 changes 2011-05-20 00:31:27 -07:00
John Bender
2cff5c3380 whitespace in core tests 2011-05-20 00:30:05 -07:00
Ghislain Seguin
be94de1c18 Merge branch 'master' of https://github.com/jquery/jquery-mobile into issue-1654 2011-05-19 17:42:25 -07:00
Kin Blas
edc94fb6ec The dialog "pop" unit test was failing because the active variable in changePage() was being dereferenced. The unit test clears the urlHistory.stack array manually so we just need to make sure we don't dereference active if it doesn't exist. 2011-05-19 17:01:26 -07:00
John Bender
6487eb684f spaces to tabs in core 2011-05-19 15:36:22 -07:00
Ghislain Seguin
59a04d5a90 Fixed unit tests 2011-05-19 00:00:05 -07:00
Ghislain Seguin
4255f5752f Fix for issue #1654 2011-05-18 23:46:46 -07:00
Kin Blas
59afbda49b Added a pageContainer option to changePage and loadPage. 2011-05-18 18:06:15 -07:00
Todd Parker
75c7ba1447 Merge pull request #1661 from eddiemonge/makefile_deploy
Makefile: Updated the deploy script and added comments for the regular ma
2011-05-18 18:06:03 -07:00
eddiemonge
83fe2542a5 Makefile: Updated the deploy script and added comments for the regular make process so the user knows whats going on 2011-05-18 18:02:10 -07:00
Kin Blas
3a047112a0 Removed debug try/catch block I accidentally checked in.
Made lots of whitespace changes to bring file up to jquery core style guidelines.
2011-05-18 16:38:04 -07:00
Ghislain Seguin
bd068616c6 Fix for #1470
Corner styling issue with listview refresh on growing lists
2011-05-18 16:07:18 -07:00
Kin Blas
cafb6acef9 Separated changePage() into 2 functions:
- loadPage() now loads all pages into the DOM.
	- changePage() only functions on pages that are in the DOM. If you call it with a URL instead of an element, it will call loadPage() which will then trigger a call to changePage() with the resulting page at a later time.
2011-05-18 15:58:15 -07:00
scottjehl
ae7d62a1bc code style & repetition cleanup 2011-05-18 18:32:59 -04:00
Scott Jehl
24fff18186 Merge pull request #1656 from VTWoods/bug_1635
#1635 Collapsible not triggering resize event. Fixes #1635
2011-05-18 15:30:11 -07:00
scottjehl
10ce4a7c32 fixed some tests that failed in my last changes 2011-05-18 18:25:59 -04:00
vtwoods
5918e5ad9f Moved the resize event into the fixed toolbar plugin. 2011-05-18 18:17:41 -04:00
scottjehl
e4336f38ae changed the docs to represent the new auto back button default 2011-05-18 18:05:05 -04:00
scottjehl
fd0819f379 turned auto back button additions off by default. Fixes #1657. To turn auto backbuttons on, you can set the page plugin's autoBackBtn option to true per page, or globally via its configuration prototype. You can also use the data-auto-back-btn attribute on a page div. 2011-05-18 17:17:13 -04:00
scottjehl
83652dd1d0 beta pre version 2011-05-18 16:57:14 -04:00
vtwoods
18c7d590ce Merge branch 'master' of https://github.com/jquery/jquery-mobile into bug_1635 2011-05-18 16:20:21 -04:00
vtwoods
7022c19322 Fixed the bug where collapsing or expanding a collapsable did not cause a resize event to be triggered 2011-05-18 16:12:57 -04:00
Todd Parker
a562cb1199 Merge pull request #1652 from gnikibog/patch-1
Missing space in generated page markup. Thanks gnikibog!
2011-05-18 08:47:23 -07:00
gnikibog
1b49245489 Missing space in generated page markup 2011-05-18 07:02:06 -07:00
scottjehl
adf3808e84 Removed the dynamically-appended Meta tag, which was deprecated in Alpha 4, and scheduled for removal in beta. jQM users must provide their own meta viewport tag in the head of jQM apps. 2011-05-17 18:03:54 -04:00
scottjehl
04cb9c1850 followup to previous change, this time for dynamically appended meta viewport tags. 2011-05-17 17:30:13 -04:00
scottjehl
8ba4c27300 Ya'll can scale your pages now. Fixes #1645. Note: we originally disabled user zooming to work around a bug in iOS that automatically zooms the page beyond the constraints of the viewport on orientation change. We are not working around this bug at all now, but you are free to include any meta tag you'd like, or better yet, consider this polyfill: http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/ 2011-05-17 17:28:19 -04:00
Kin Blas
b96310eedf - Externalize some of the nested functions in changePage().
- Modified changePage() so that it can take an options object. Updated all references throughout the framework.
- Split $.mobile.pageLoading() into 2 functions $.mobile.show/hidePageLoadingMsg(). Updated docs accordingly.
- Renamed $.mobile.defaultTransition to $.mobie.defaultPageTransition. Updated docs accordingly.
- Added $.mobile.defaultDialogTransition so that it isn't hard coded in the changePage/transitionPages and select code.
- Hand integrated jquery.mobile.navigation.js checkins from master: 4b4ee54a, e775f5e8, e597ccb3, 084bbbd8.
2011-05-16 16:02:26 -07:00
Todd Parker
68142beba7 Merge pull request #1637 from gseguin/master
Removed double "-" in "data-" attributes
2011-05-16 08:53:27 -07:00
Ghislain Seguin
b0b24add1f Removed double "-" in "data-" attributes 2011-05-16 08:43:02 -07:00
Todd Parker
27f1f9bbff Merge pull request #1636 from gseguin/master
Added unit test for issue #1617 for nested lists with thumbnails. THanks gseguin.
2011-05-16 07:19:50 -07:00
Ghislain Seguin
df9d846bfc Added unit test for issue #1617 2011-05-15 21:33:40 -07:00
Ghislain Seguin
cabdf7926b Revert "Added unit test for issue #1617"
This reverts commit 3c7c73e5ca.
2011-05-15 21:28:40 -07:00
Ghislain Seguin
3c7c73e5ca Added unit test for issue #1617 2011-05-15 21:13:04 -07:00
Todd Parker
877651a7cd Merge pull request #1631 from joshiabk/master
jQuery Search Textbox change to add new focus event which will show clear button  when some item gets pasted directly without key event to search text box. Thanks joshiabk
2011-05-14 03:25:23 -07:00
Abhishek Joshi
cb645ede22 Add new focus event which will show cross button on search textbox when some item get paste directly without key event to search text box 2011-05-13 22:44:47 -07:00
Kin Blas
022f811dab Merge pull request #1630 from eddiemonge/fr_timestamped
For all versions of make except for deploy, the outputted scripts will ha
2011-05-13 16:16:08 -07:00
eddiemonge
19c952a3bd For all versions of make except for deploy, the outputted scripts will have the git info used for that build. Deploy will still use the version in the version.txt file 2011-05-13 16:01:31 -07:00
Kin Blas
690fff9409 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-05-13 15:27:50 -07:00
Kin Blas
7df38d9abf Upgrade to jQuery 1.6.1 to pick up :checked fixes. 2011-05-13 15:27:09 -07:00
Todd Parker
47d9de4088 Merge pull request #1629 from eddiemonge/bug_updatecdn
Modify the nightly script to update the CDN.
2011-05-13 15:21:49 -07:00
eddiemonge
ea2ed9dc08 Update the CDN but dont output messages 2011-05-13 15:20:19 -07:00
Kin Blas
0d7754fe4c Fixing listview filter tests that were broken by pull request 1475:
1387fd457f
2011-05-13 14:17:41 -07:00
Todd Parker
8d265f9281 Merge pull request #1627 from gseguin/master
Fixed #1419: Fixed grouped radio buttons with long labels so they wrap to multiple lines. Thanks gseguin!
2011-05-13 12:57:14 -07:00
Ghislain Seguin
516c5aaa6c Merge branch 'master' of github.com:gseguin/jquery-mobile 2011-05-13 10:54:42 -07:00
Ghislain Seguin
f929e90a70 Fixed #1419: Grouped radio buttons with long labels don't ellipsis 2011-05-13 10:53:49 -07:00
toddparker
9426e82e29 Fixed the down state for theme d that was causing extra styles to be erroneously applied which make the list jump and look chunky when clicked. 2011-05-14 00:39:26 +08:00
toddparker
3d0064beb0 Fixed the down state for theme d that was causing extra styles to be erroneously applied which make the list jump and look chunky when clicked. 2011-05-13 10:51:27 -04:00
Todd Parker
9be1078935 Merge pull request #1602 from StevenBlack/SupportJsToStandard
jquery.mobile.support.js: Whitespace changes only. Bring code up to jQuery code standards. Thanks StevenBlack!
2011-05-12 11:34:21 -07:00
toddparker
a5960dea26 Closed missing </head> tag. Must have been a greedy find and replace that deleted this. 2011-05-12 11:09:59 -04:00
eddiemonge
9fb4da3c77 Modify the nightly script to update the CDN 2011-05-11 19:19:35 -07:00
Steven Black
f8516d4dbe jquery.mobile.support.js: Whitespace changes only. Bring code up to jQuery coding standards in anticipation of adding Opera Mini feature detection. Passes jsHint except for the James Padolsey/ jdalton non-UA-based IE version check, which is OK. All tests pass.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-11 20:47:37 -04:00
scottjehl
f176f4a884 added margin back from media-helper based css. 2011-05-11 18:32:57 +02:00
scottjehl
28ef60afe2 added deprecated message for media helpers 2011-05-11 18:31:13 +02:00
scottjehl
3f94d4ff97 Moved our own widget css layout toggles over to using standard media queries, rather than the classes we apply to the HTML element to simulate media queries. 2011-05-11 18:00:44 +02:00
Todd Parker
b80689a1dc Merge pull request #1522 from markandey/master
If 'input' element has id string with dots in it, code fails. Fixed by tweaking the regex to escape dots in the selector. Thanks markandy and eddiemonge
2011-05-10 12:12:19 -07:00
Kin Blas
4f4bb4d309 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-05-09 14:24:49 -07:00
Kin Blas
24fc06b234 Issue 1592 - Make sure we set lastval on create so we don't compare against the stirng "undefined" on first keyup/change event. 2011-05-09 14:23:06 -07:00
Todd Parker
03ef69d131 Merge pull request #1587 from ivrubanov/master
Fixed tests for checkboxes to pass under windows mobile 7. Thanks ivrubanov!
2011-05-09 14:18:46 -07:00
Todd Parker
084bbbd839 Merge pull request #1573 from marcoos/master
fix for issue 1530: Page title is changing when I use popup select menu (Dropdown). Thanks marcoos.
2011-05-09 13:03:02 -07:00
Kin Blas
1387fd457f Merge branch 'filterspeed' of https://github.com/nsaleh/jquery-mobile into pull-1475
Resolved Conflicts:
	js/jquery.mobile.navigation.js
		- Removed these changes as they are not related.
2011-05-09 12:27:44 -07:00
Ivan Rubanov
af23fa6337 Fixed test for Windows Phone 7 2011-05-09 05:29:35 -07:00
Nabil Saleh
4ffb0a5f33 - code cleanup
- added class-based hiding
2011-05-09 13:25:13 +02:00
Kin Blas
e597ccb381 Fix for issue 1580 - phonegap: Pages with data-ajax="false" on form fail to load
In the $.ajax() callback, we look for elements with @href, @src, and @data-ajax="false" elements, the code then assumes that matching elements will have either @href or @src, which of course forms don't ... they have @action ... so the code throws an exception because thisUrl is undefined.

- I reworked the code to handle action and check to make sure we have an attribute and url string before attempting to use them.
2011-05-06 13:05:56 -07:00
Kin Blas
e775f5e83a Fix for Issue 1578 - Can't load file:// pages
This was caused by this checkin:

4b4ee54a72

The change caused the base tag to be reset to file:// (literally with no path).

All that was missing was a small tweak to base.reset() to use the new initialPath variable instead of docBase.
2011-05-06 10:28:31 -07:00
scottjehl
4b4ee54a72 This change sets the base tag properly on page load and page changes, corresponding with the recent change to absolute path hash urls. Images and other assets will direct relative to the document in which they reside. This may not cover new path situations Kin has documented, but it does fix the regression so things work as they did before the change. Tested in non-base supporting browsers to verify it works there too. The following page should have an image in the content, verifying the fix http://jquerymobile.com/test/#/test/docs/about/intro.html . Fixes #1508 2011-05-06 09:37:41 -04:00
Marek Stepien
50ee33a84f fix for issue 1530: Page title is changing when I use popup select menu ( Dropdown) 2011-05-05 23:26:41 +02:00
scottjehl
131cb2423f updated to 1.6 2011-05-04 22:24:36 -04:00
Kin Blas
cff12a4b95 Merge pull request #1550 from MaxThrax/master.
Resolve issue #1514
2011-05-02 16:31:37 -07:00
Paul Nicholls
91126e4e85 Issue #1514 (Regex breaking Firefox >3.6)
Remove greedy matches from start and end of regex - there's no need for them, and they cause immense slowdown (on the order of 3-4 seconds on medium-size pages loaded via ajax).
2011-05-03 10:48:06 +12:00
Kin Blas
af3b8ce3ae Merge pull request #1544 from StevenBlack/TransitionsToStandard.
Transitions to standard
2011-05-02 14:23:36 -07:00
Scott Jehl
fa152fa977 Merge pull request #1548 from edelabar/patch-1.
Fix for calendar widget creating multiple calendars in multi-page HTML
2011-05-02 08:35:26 -07:00
Eric DeLabar
ae8b1c45fc The each callback in the pagecreate method was creating multiple calendars when used with a multi-page html file because it was not scoped to the current page but instead to the entire document. 2011-05-02 08:22:26 -07:00
mark.dawn@gmail.com
4bccf1d8a6 some string literal fixes 2011-05-02 13:30:36 +05:30
John Bender
91f5a3492b added two more test conditions to ensure a single active button per radio button set and a single checked input 2011-05-02 01:00:04 -07:00
John Bender
cabd45283b test to verify that clicking radio buttons changes checked state and ui btn active 2011-05-02 00:54:59 -07:00
John Bender
377c0067a7 remove checked state from radio button inputs that are not checked. use jquery attr accessor instead of expando to guarantee consistent values. Fixes #1532. 2011-05-02 00:53:51 -07:00
John Bender
e84c2c614b fixed comment in paths tests 2011-05-01 22:26:03 -07:00
Steven Black
b78c6ea372 jquery.mobile.transition.js: code to jQuery core standards, part deux.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-01 21:19:30 -04:00
Steven Black
2c444ef34d jquery.mobile.transition.js: code to jQuery core standards.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-01 21:16:06 -04:00
John Bender
9096763741 finished basic pathing tests sans site relative root ir / 2011-04-29 22:23:57 -07:00
John Bender
a50912e0de remove ie debug alert 2011-04-29 22:22:18 -07:00
Scott Jehl
d9e47627ed Merged pull request #1533 from StevenBlack/NavigationToStandard.
jquery.mobile.navigation.js: Changes throughout the file for jQuery codin
2011-04-29 07:40:53 -07:00
Steven Black
520b8e22d4 More formatting changes to meet JQuery Core Style Guidelines.
)) -> ) )
...and others.

Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-04-29 08:22:03 -04:00
Nabil Saleh
eefbdecf0a further cleanup 2011-04-29 10:50:10 +02:00
Nabil Saleh
3339a272e5 code cleanup 2011-04-29 10:41:36 +02:00
Nabil Saleh
ca767ff3aa code cleanup 2011-04-29 10:09:04 +02:00
Steven Black
7447ba01f7 jquery.mobile.navigation.js: Changes throughout the file for jQuery coding standards including:
* whitespace within parenthesis
* double quotes
* line breaking for object key assignments
Also made several changes suggested by jsHint.
All tests pass as before -- still failing first three tests as before.

Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-04-28 21:12:01 -04:00
John Bender
39e3f1be95 Merged pull request #1494 from rs/master.
Fix an alert(false) on app init when $.mobile.loadingMessage is set to false
2011-04-28 15:03:31 -07:00
John Bender
ceea4bca66 remove ie debug alert 2011-04-28 15:02:59 -07:00
toddparker
51908bdaeb Updated the radiobutton page to fix the sample code that showed two data-role attributes on a single element. 2011-04-28 17:29:37 -04:00
Todd Parker
0cccfda568 Merged pull request #1427 from mariozaizar/master.
Small typo in "Current browser support" link. Thanks mariozaizar!
2011-04-28 13:43:07 -07:00
Todd Parker
e3cc3f55dc Merged pull request #1481 from cwt137/master.
Patch for bug #1480. Thanks cwt137.
2011-04-28 13:11:57 -07:00
Bernhard Gschwantner
6da11e97b0 CHG: refinement as proposed by scottjehl 2011-04-28 22:09:02 +02:00
John Bender
9b88587426 completed doc relative tests 2011-04-27 23:07:58 -07:00
John Bender
84c1cfbcd8 first set of tests for path handling per Kin's wiki page 2011-04-27 22:43:41 -07:00
John Bender
31604bb75a removed uncecessary clone for event names array to fix the tests 2011-04-27 22:04:00 -07:00
Todd Parker
c2e65107c0 Merged pull request #1503 from eddiemonge/eddie_listview.
micro-optimizations and styling changes to listview.js
2011-04-27 13:34:39 -07:00
mark.dawn@gmail.com
20fb94df98 Merge remote-tracking branch 'origin/master' 2011-04-27 23:50:51 +05:30
Kin Blas
9dc190f22e Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-04-27 07:54:52 -07:00
scottjehl
7c8f8e9406 updated jQuery to 1.6 RC 2011-04-27 07:53:59 -07:00
scottjehl
026a7bc968 updated jQuery to 1.6 RC 2011-04-27 09:56:15 -04:00
Kin Blas
52a666d71f Check $from before dereferencing it. 2011-04-26 16:36:31 -07:00
Kin Blas
19c06952fd Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute.
The expected prototype for a transitionHandler is as follows:

function handler(name, reverse, $to, $from)

The name parameter is the name of the transition as specified by @data-transition attribute, reverse is a boolean that is false for a normal transition, and true for a reverse transition. The $to param is a jQuery collection containing the page that is being transitioned "to", and $from is an optional collection that tells us what page we are transitioning "from". Because $from is optional, handler developers should take care and check $from to make sure it is not undefined before attempting to dereference it.

In addition to registering custom transition by name, developers can specify a handler to use in the case where a transition name is specified and does not exist within the $.mobile.transitionHanlders dictionary. Within jQuery Mobile, the default handler for unknown transition types is the $.mobile.css3Transition() handler. This handler always assumes that the transition name is to be used as a CSS class to be placed on the $to and $from elements. To change the default handler, simply set $.mobile.defaultTransitionHandler to you function handler:

$.mobile.defaultTransitionHandler = myTransitionHandler;

The changes to make all this necessary are as follows:

- Created $.mobile.noneTransitionHandler which is the default transitionHandler for the framework that simply adds and removes the page active class on the $from and $to pages with no animations.

- Moved class based transition code into a new plugin jquery.mobile.transition.js file. This plugin, when present, overrides the noneTransitionHandler as the defaultTranstionHandler for the framework so that CSS3 animation transitions are available.

- Removed code related to the setting/removal of the ui-mobile-viewport-perspective class. The css3TransitionHandler plugin takes care of automatically placing a "viewport-<transition name>" class on the viewport (body) element. This allows any other transition to specify properties on the viewport that are necessary to accomplish the transition.

- changed the CSS class ui-mobile-viewport-perspective to viewport-flip to match code changes. This makes it more apparent that setting -webkit-perspective is only used with the flip transition.

- Updated js/index.php, Makefile and build.xml to include the new jquery.mobile.transition.js file.
2011-04-26 14:06:10 -07:00
Kin Blas
14f73b27ee Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute.
The expected prototype for a transitionHandler is as follows:

function handler(name, reverse, $to, $from)

The name parameter is the name of the transition as specified by @data-transition attribute, reverse is a boolean that is false for a normal transition, and true for a reverse transition. The $to param is a jQuery collection containing the page that is being transitioned "to", and $from is an optional collection that tells us what page we are transitioning "from". Because $from is optional, handler developers should take care and check $from to make sure it is not undefined before attempting to dereference it.

In addition to registering custom transition by name, developers can specify a handler to use in the case where a transition name is specified and does not exist within the $.mobile.transitionHanlders dictionary. Within jQuery Mobile, the default handler for unknown transition types is the $.mobile.css3Transition() handler. This handler always assumes that the transition name is to be used as a CSS class to be placed on the $to and $from elements. To change the default handler, simply set $.mobile.defaultTransitionHandler to you function handler:

$.mobile.defaultTransitionHandler = myTransitionHandler;

The changes to make all this necessary are as follows:

- Created $.mobile.noneTransitionHandler which is the default transitionHandler for the framework that simply adds and removes the page active class on the $from and $to pages with no animations.

- Moved class based transition code into a new plugin jquery.mobile.transition.js file. This plugin, when present, overrides the noneTransitionHandler as the defaultTranstionHandler for the framework so that CSS3 animation transitions are available.

- Removed code related to the setting/removal of the ui-mobile-viewport-perspective class. The css3TransitionHandler plugin takes care of automatically placing a "viewport-<transition name>" class on the viewport (body) element. This allows any other transition to specify properties on the viewport that are necessary to accomplish the transition.

- changed the CSS class ui-mobile-viewport-perspective to viewport-flip to match code changes. This makes it more apparent that setting -webkit-perspective is only used with the flip transition.

- Updated js/index.php, Makefile and build.xml to include the new jquery.mobile.transition.js file.
2011-04-26 13:53:11 -07:00
mark.dawn@gmail.com
69a0a47a0c XPATH Selector was not well formed of type label[for=ID]
let say id of an inputbox is x.y.z then query
$("label[for=x.y.z]") gonna fail
$("label[for=\"x.y.z\"]") gonna work
2011-04-26 19:31:43 +05:30
Kin Blas
3a164c6cc8 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-04-22 10:56:55 -07:00
Kin Blas
f7749504b8 Modified the vclick handler code in navgation.js so that it doesn't place the ui-btn-active class on any links meant for interactivity.
Removed the return false in the vclick handler of collapsible and replaced it with a preventDefault(). The only reason we were returning false was to stopPropagation() so that the vclick handler in navigation.js  didn't place a ui-btn-active on it.
2011-04-22 10:53:24 -07:00
John Bender
dfab3d7920 increased two test timeouts to give slower ci test browser time work, also included a small whitespace fix to nav 2011-04-21 23:17:08 -07:00
John Bender
70a86c748f added a sequenced test to make sure that opening a dialog sized select menu resulted in that same dialog many times. also moved one of the event tests over to core 2011-04-21 22:32:37 -07:00
John Bender
cf23361a19 added the single call to local function focus button to ensure menu height calculation is accurate Fixes #1453 2011-04-21 22:30:39 -07:00
Kin Blas
2d2e6d7741 Fix for issue 1461 - Tops of pages missing after dialog click in Safari and iPhone.
- Delayed the setting of focus till *AFTER* the scroll position is restored.
2011-04-21 15:31:21 -07:00
eddiemonge
279d71828a left a test piece of code in previously 2011-04-21 14:40:58 -07:00
eddiemonge
d7bab1f9a5 micro-optimizations and styling changes to listview.js 2011-04-21 14:33:49 -07:00
Kin Blas
1ec80bdc80 I broke button states in my last checkin. I was passing in the wrong element (document) into the new function that finds the button element. 2011-04-21 10:56:04 -07:00
Olivier Poitrey
b4b80cd200 Fix an alert(false) when $.mobile.loadingMessage is false 2011-04-21 15:43:50 +02:00
Kin Blas
d4c7b5da66 Fix from @brukhabtu for issue 1492 - Errors when trying to delete DOM elements.
- Check for existence of the bindings object before attempting to use it. Apparently jQuery core strips off any data bindings of an element before calling teardown on it to remove special event handlers.
2011-04-20 18:06:21 -07:00
Nabil Saleh
b10c71814c further performance optimization:
- hiding all elements at once
2011-04-20 17:31:57 +02:00
Bernhard Gschwantner
b2ff26b579 FIX: Problems with forms in nested listviews 2011-04-20 15:12:54 +02:00
John Bender
b0e3d5fbf1 select test cleanup, added test to check that the dialog hash key is removed when a large select menu item is clicked Fixes #1454 2011-04-19 23:28:11 -07:00
John Bender
16a38a61ea fixed custom select dialog menu transition issues by preceding backward through history. This tightly couples the closing of custom select dialog menus to our hash change history implementation because of how it handles dialogs in dialogs. 2011-04-19 23:28:11 -07:00
John Bender
01c40c2525 select whitespace fixes 2011-04-19 23:28:11 -07:00
cwt137
357b87fab9 Corrects comment that was wrong. Changes "header" to "footer". Fixes bug #1480 2011-04-19 22:00:25 -07:00
Kin Blas
7d9af0b2a8 Fix for issue 1157 - Collapsible block prevents page scrolling on iPhone 4
- When we switched to virtual mouse events, I just did a straight translation of the code that existed which basically did the collapse/expand on mouseup. In order to factor in scrolling, I needed to move that code into a vclick handler and stopPropagation() and preventDefault() to make sure the button doesn't activate.
2011-04-19 16:57:13 -07:00
Nabil Saleh
9cb8673e68 data-filter performance optimization
- algorithmic optimization of listview.filter
- functional optimization by supporting data-filtertext attribute

includes patch from mathieucarbou: f58631d07d
2011-04-19 11:25:48 +02:00
John Bender
dbd68472b4 whitespace and comment fixes 2011-04-18 22:35:13 -07:00
John Bender
49b1b780ed test alterations for absolute navigation 2011-04-18 21:46:53 -07:00
John Bender
8e42b52767 beginning to move to absolute hashes in all cases, still some more work to do 2011-04-18 21:46:53 -07:00
toddparker
3ec9069166 Merge remote branch 'origin/master' 2011-04-18 17:35:42 -07:00
toddparker
fb8ef84434 Fixed a typo, thanks Steven. 2011-04-18 17:35:27 -07:00
Kin Blas
c31ee33a0f Fix for 1407 - Bad scroll performance since A4 on iPhone 3G
- Modified vmouse code so that it uses $.data() instead of $().data() which is significantly faster.

- Modified the navigation and buttonMarkup code so they stop using live(). The vmouse code triggers several events during the touch events, which in turn causes the underlying event code to call $.closest() with the selector used during the live() call to figure out if the event should be handled. This turns out to be very expensive, so instead, we now just bind directly to the document, and walk the DOM manually to figure out if we should handle it. This is much faster since we are avoid triggering multiple nested function calls.
2011-04-18 16:13:50 -07:00
toddparker
cdd8b745ca Added documentation on the auto-updating title and data-attr in the anatomy of a page. 2011-04-18 14:51:48 -07:00
toddparker
188913012b Merge remote branch 'origin/master' 2011-04-18 14:40:58 -07:00
Nabil Saleh
702e89f034 fix for Issue #1425
- active state was not removed from buttons when they where not used for pagenavigation
2011-04-18 15:01:31 +02:00
scottjehl
472cbb1778 moved calls into one. #cleaning 2011-04-17 14:24:47 -07:00
scottjehl
b649f17d9d one call to $.type 2011-04-17 12:11:03 -07:00
Kin Blas
8c71ee5dff Fix for issue 1458 - Listview thumbnails aren't rendering correctly.
Needed to modify _itemApply() to look for the first image that is the first child of its parent. I may need to tweak this at a later point because the selector is still too general.
2011-04-14 23:36:58 -07:00
John Bender
b83d81962e tests for dialog query param support 2011-04-14 21:49:50 -07:00
John Bender
2242684e59 added support for query params with dialog hash keys 2011-04-14 21:49:50 -07:00
John Bender
a267a3077c added tests to verify that dialogs referencing themselves with query params don't do anything 2011-04-14 21:49:50 -07:00
John Bender
59bd1400ad check the url saved on the page element in the history stack to avoid checking agains the dialog nonsense url Fixes #1433 2011-04-14 21:49:50 -07:00
scottjehl
093d3b1a22 Merge remote branch 'origin/master' 2011-04-14 18:10:27 -04:00
scottjehl
af7451d5ff switched to boolean check and removed the second value. Now this is only true in old webos, where it should be. 2011-04-14 18:10:22 -04:00
eddiemonge
f29f19ccaa update compiler link in Makefile 2011-04-15 05:52:25 +08:00
scottjehl
14b4cc4a7e updating compiler 2011-04-14 16:43:57 -04:00
scottjehl
d81751af67 Merge branch 'fr_1177' of https://github.com/eddiemonge/jquery-mobile into eddiemonge-fr_1177 2011-04-14 16:29:33 -04:00
scottjehl
d97a964884 been meaning to do this for a while. 2011-04-14 16:04:47 -04:00
eddiemonge
0bc9f7edab blank commands are not so good. 2011-04-14 12:08:24 -07:00
eddiemonge
2f8cca7c26 change file permissions for git hooks 2011-04-14 12:01:27 -07:00
eddiemonge
77b164798a Merge branch 'master' of github.com:eddiemonge/jquery-mobile into fr_1177
* 'master' of github.com:eddiemonge/jquery-mobile:
  Fix for issue 1446 - Can't drag slider in 1.0a4.1 (Android 2.1)
  Modified _createSubPages() to reduce the number of property lookups and function calls per iteration.
  Fix for Issue 1424 - Adding items to listviews on a4.1 is too slow
  made sure a couple of variables are locally scoped. Fixes #1403
  moved previous strip query tests to tests for cleanHash
  removed stripQuery helper to reduce confusion and complexity as striping the query param from a url is much more complex than a hash as it was originally intended for
  tests for nested pages/query params
  added handling for identical query param href/action on the same page
  query param href/actions require absolute path prefixes when no relative path information is contained in the hash
  tests for handling query params in  makeAbsolute path helper, moved path helper tests to helper test file
  handle relative query param links and forms Fixes #1160
  removed duplicate current page check in favor of fixing the off by one bug
2011-04-14 11:54:15 -07:00
eddiemonge
4284d07508 add compiled and gitstatus.log to gitignore 2011-04-13 23:37:59 -07:00
Kin Blas
8ca008ee23 It doesn't get any true-er with an extra 'u'! 2011-04-13 18:09:41 -07:00
eddiemonge
80fc7a648a change latest build to say that in the version 2011-04-13 17:09:52 -07:00
eddiemonge
2e9e8f203a add scripts to manage git post hooks 2011-04-13 16:15:00 -07:00
Kin Blas
609d1de5f4 Fix for issue 1446 - Can't drag slider in 1.0a4.1 (Android 2.1)
- Don't bind and unbind our touch listeners dynamically. This gets Android 2.1 into a strange state where it stops dispatching touch events. Instead, we now register our touchmove, touchend and scroll listeners at the same time we register our permanent touchstart listener, we then block and unblock processing in our touch listeners via a flag.
2011-04-13 15:52:51 -07:00
eddiemonge
4f7c08140d use a php script and a cron to make latest 2011-04-13 15:40:13 -07:00
eddiemonge
250fc190ba use a log and a cron 2011-04-13 15:32:57 -07:00
eddiemonge
1882c7ab56 add post commit hook script to update git 2011-04-13 13:32:49 -07:00
eddiemonge
ca55d18e1b makefile for lateset 2011-04-13 12:54:54 -07:00
eddiemonge
55d82f47ac makefile reads jquery core version from the file 2011-04-13 11:01:25 -07:00
eddiemonge
a65ac5f268 change makefile to point to CDN 2011-04-13 10:47:21 -07:00
Kin Blas
212f9ed237 Modified _createSubPages() to reduce the number of property lookups and function calls per iteration. 2011-04-12 14:33:20 -07:00
Kin Blas
12c8c61e85 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-04-12 13:55:15 -07:00
Kin Blas
98dc036ff0 Fix for Issue 1424 - Adding items to listviews on a4.1 is too slow
- Some optimizations to speed things up:
	- Modified _itemApply() to make use of item.children() and filters. Also got rid of some unused code.
	- Convert .each() in refresh() to a loop.
	- Cache some $list.jqmData() values so we don't do it for each list item.
2011-04-12 13:51:27 -07:00
scottjehl
c3fd9c1835 made sure a couple of variables are locally scoped. Fixes #1403 2011-04-12 15:11:14 -04:00
eddiemonge
5f487bbaec add images to path, remove nightly folder before moving to there so it doesnt go into a sub folder 2011-04-12 12:00:05 -07:00
eddiemonge
2a4cdac4bd change nightly to actual server path 2011-04-12 11:32:44 -07:00
eddiemonge
e4b2f3b98a Change git pull to be just 'git pull' 2011-04-12 11:28:40 -07:00
John Bender
ac736c6053 moved previous strip query tests to tests for cleanHash 2011-04-12 01:16:20 -07:00
John Bender
aee4c631da removed stripQuery helper to reduce confusion and complexity as striping the query param from a url is much more complex than a hash as it was originally intended for 2011-04-12 01:14:05 -07:00
John Bender
cdc0f139ce tests for nested pages/query params 2011-04-12 01:05:36 -07:00
John Bender
a5add9a974 added handling for identical query param href/action on the same page 2011-04-12 00:58:24 -07:00
John Bender
8d3dc2cbc2 query param href/actions require absolute path prefixes when no relative path information is contained in the hash 2011-04-12 00:22:42 -07:00
John Bender
193762da19 tests for handling query params in makeAbsolute path helper, moved path helper tests to helper test file 2011-04-11 23:42:01 -07:00
John Bender
681f2a2073 handle relative query param links and forms Fixes #1160 2011-04-11 23:40:53 -07:00
John Bender
d6439d235f removed duplicate current page check in favor of fixing the off by one bug 2011-04-11 22:59:51 -07:00
eddiemonge
96c1647e63 Changes so make can be run with just make nightly for the nightly builds 2011-04-11 18:18:19 -07:00
eddiemonge
38b8ee592a Changed Makefile to include nightly build script and other misc fixes 2011-04-11 15:57:02 -07:00
Mario Zaizar
42b66038e7 Fixing a really small typo in "Current browser support" link at Alpha 4 post. 2011-04-11 13:42:33 -05:00
eddiemonge
60ea1ddbdc Merge branch 'master' of https://github.com/jquery/jquery-mobile into fr_1177
* 'master' of https://github.com/jquery/jquery-mobile:
  minor refactor from Scott's original suggestion on the issue
  navigation whitespace
2011-04-11 10:44:54 -07:00
John Bender
09b736a399 minor refactor from Scott's original suggestion on the issue 2011-04-10 22:59:06 -07:00
John Bender
c5ba91f0b9 navigation whitespace 2011-04-10 22:58:21 -07:00
eddiemonge
dbdb6c5716 Merge branch 'master' of https://github.com/jquery/jquery-mobile into fr_1177
* 'master' of https://github.com/jquery/jquery-mobile:
  [astounding] fixed css that locked ie in the navigation unit tests. tagged so I can show my kids some day
  Fix for issues:
  set version to 1.0a4.1
  wrapped the else if/else in an else to prevent an unnecessary dom walk until we have to make it.
  To ensure focus and scrollTo don't conflict (when possible), I set the focus order on page show to 1) previously clicked item if revisiting that page 2) page title 3) first focusable item in the page. Fixes #1342
2011-04-09 13:07:52 -07:00
John Bender
7d6ff25543 [astounding] fixed css that locked ie in the navigation unit tests. tagged so I can show my kids some day 2011-04-08 22:04:06 -07:00
Kin Blas
0ef954575a Fix for issues:
1333 - Delay when scrolling over list when data-theme="d"
		1368 - Listview refresh performance on a4
			1407 - Bad scroll performance since A4 on iPhone 3G

			Removed the checking for window.pageX/pageY in the vmouse touch callbacks. Accessing pageX/pageY causes the browser to flush its rendering queue.
2011-04-08 11:01:41 -07:00
toddparker
8447cc5f88 Merge remote branch 'origin/master' 2011-04-08 13:29:42 -04:00
scottjehl
5c1953f5cd set version to 1.0a4.1 2011-04-07 16:55:05 -04:00
scottjehl
3da5f05f75 wrapped the else if/else in an else to prevent an unnecessary dom walk until we have to make it. 2011-04-07 16:50:10 -04:00
scottjehl
97f5a9565f To ensure focus and scrollTo don't conflict (when possible), I set the focus order on page show to 1) previously clicked item if revisiting that page 2) page title 3) first focusable item in the page. Fixes #1342 2011-04-07 16:27:32 -04:00
eddiemonge
88221323da Feature Request for issue 1177: Make Makefile output cleaner stuff 2011-04-07 12:39:38 -07:00
scottjehl
b4088b9422 don't add the class to a disabled button. Fixes the checkbox test 2011-04-07 15:34:17 -04:00
scottjehl
cd0ad522ba moved the active state vclick to navigation 2011-04-07 15:28:52 -04:00
scottjehl
784f5974e5 make sure collapsibles don't have a sticky on-state. 2011-04-07 15:03:29 -04:00
scottjehl
982b7d4b15 Make navigation feel more responsive through feedback, even though it actually uses the click event again for actual page changes.
- set active state on all button vclick events
- cancelled vclick on slider switch handles so it's not too sticky.
- removed addClass in navigation.js as the first change handles it there.
2011-04-07 14:41:45 -04:00
scottjehl
9a1b2dcb3c changed name of interal function loadComplete to pageChangeComplete 2011-04-07 11:33:04 -04:00
Ray Ling
31d45a76e2 append 'click' event listener for no-touch support device test. 2011-04-07 09:38:52 +08:00
John Bender
5158c6f7cb comment correction in test 2011-04-06 13:33:32 -07:00
John Bender
ceed56fb2a test added for checkbox check and uncheck firing change 2011-04-06 13:31:06 -07:00
Martin Kou
4dc2560895 Fixed yet another duplicate tap event bug. 2011-04-06 23:39:41 +08:00
toddparker
d22b0a9f61 Merge remote branch 'origin/master' 2011-04-06 09:59:48 -04:00
John Bender
141127b903 fixed scoping issue that was causing the checkbox check to fail, tests to follow Fixes #1328 2011-04-05 23:47:34 -07:00
Kin Blas
c7aadd8a47 Fix for issue 1379 - vmouseclick or vclick?
- Changed typo "vmouseclick" to "vclick".
2011-04-05 15:57:37 -07:00
toddparker
eec2ae3ac4 Removed all the design assets to speed things up 2011-04-05 15:04:08 -04:00
Kin Blas
d591be56e2 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-04-05 10:24:01 -07:00
Kin Blas
600a43f746 Fix for ssue 1369 - vmouseup event has no [client/page/screen][X/Y] properties on iOS devices
- Modified createVirtualEvent to use changedTouches if touches doesn't exist.
- Also filed issue 1373 about the fact that we really need to be tracking touch identifiers in the vmouse code.
2011-04-05 10:21:54 -07:00
toddparker
164d40b711 Set loader z-index to 100 so it sits over sliders. Fixes #1371 2011-04-05 12:20:54 -04:00
toddparker
77d7c08316 Removed placeholder A4 banner graphic. 2011-04-05 11:41:42 -04:00
John Bender
b1da5f0d06 added tests to make sure links that reference the pages they are defined within don't transition Fixes #1360 2011-04-04 23:47:16 -07:00
John Bender
05cc415f0c fix for current page links 2011-04-04 23:41:05 -07:00
toddparker
97db437373 Removed duplicate text shadow rule 2011-04-04 22:31:14 -04:00
Kin Blas
d43bbfc52a Switch back to hijacking links on the click event. We'll focus on improving "percieved" visual performance since launching a page load and transitions on vclick opens us up to too many problems:
- Third party click handlers never called.
	- Touch and click target mismatches due markup changes before the click events are generated. (What looks like a double click event)
2011-04-04 10:00:24 -07:00
John Bender
5c37beaa29 activeElement conditional for windows support Fixes #1294 2011-04-02 00:03:37 -07:00
John Bender
280394757b fixed titles in the checkbox radio tests 2011-04-01 23:43:59 -07:00
John Bender
4bea7c41b8 fixed broken open page call to prevent redirect in tests 2011-04-01 22:55:55 -07:00
John Bender
9280fb467f whitespace in listview tests 2011-04-01 22:55:55 -07:00
Kin Blas
58369ec943 Added missing comma in var declaration. 2011-04-01 14:05:46 -07:00
Kin Blas
8cd0d2c679 I'm not sure how this happened, but the dataType fix for Issue 991 disappeared between commits 61005944 and 7503f62a.
Adding it back in to fix Issue 1349 - File urls still not working in alpha 4 as shipped.
2011-04-01 13:37:18 -07:00
scottjehl
bb7b09f2a1 documented theme css namespace caveat. Fixes #1341 2011-04-01 14:58:36 -04:00
scottjehl
cb34aa2169 typo 2011-04-01 12:28:28 -04:00
scottjehl
39f904091f updated version to 1.0beta-pre 2011-04-01 12:01:24 -04:00
John Bender
3a85ef61ac removed global pre test setup that used QUnit.start :(, and fixed spurious test failures from changePage being fired by the library after it had been redefined in the tests 2011-04-01 02:11:15 -07:00
John Bender
f2525b06de moved attribute call to jqmData call 2011-04-01 02:09:05 -07:00
John Bender
fad90ca99a navigation white space 2011-04-01 01:48:38 -07:00
John Bender
74d13ee034 whitespace in mobile core 2011-03-31 23:39:09 -07:00
John Bender
f63b1bf911 moved page title tests to sequence to stabalize their behavior 2011-03-31 22:47:40 -07:00
John Bender
89775d233a whitespace in navigation core tests and fixtures page 2011-03-31 22:18:54 -07:00
scottjehl
198cb1420d updated some a3 links. DOH! 2011-03-31 19:08:45 -04:00
John Resig
93cf7e407c Merge branch 'master' of github.com:jquery/jquery-mobile 2011-03-31 18:42:47 -04:00
John Resig
40d32c8ca8 Releasing jQuery Mobile 1.0a4. 2011-03-31 18:42:30 -04:00
toddparker
0fd3a0b9bf Updated banner to A4! 2011-03-31 18:39:36 -04:00
toddparker
db3a57975b Updated to A4 and 1.5.2 2011-03-31 18:38:34 -04:00
toddparker
66ba363895 Fixed broken links 2011-03-31 18:36:39 -04:00
toddparker
37a54cb2b0 Removed outdated phone link styles 2011-03-31 18:35:48 -04:00
scottjehl
1f1a13b49e removed the API viewer demo. old 2011-03-31 18:23:29 -04:00
scottjehl
7d04d3eb37 updated to jQuery 1.5.2 2011-03-31 18:09:46 -04:00
scottjehl
96897b0285 listview tests now passing. 2011-03-31 18:07:08 -04:00
scottjehl
9826bf7b4b removed and edited some tests that no longer apply to listviews 2011-03-31 17:51:07 -04:00
scottjehl
cbd1e4cb4c Merge remote branch 'origin/master' 2011-03-31 17:49:15 -04:00
scottjehl
ec8a9cfed4 Merge remote branch 'origin/master' 2011-03-31 17:40:16 -04:00
scottjehl
125a80e518 edits to listview demos 2011-03-31 17:40:07 -04:00
Kin Blas
7e8c4c70e0 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-03-31 14:40:05 -07:00
John Bender
bb7ab45a19 small whitespace fix, removed the data-rel=back from two buttons in the docs as it takes precendence over the href 2011-03-31 14:39:34 -07:00
Kin Blas
ae06612eca Clear our preventClickDefault and stopClickPropagation locals in the live click handler. 2011-03-31 14:39:11 -07:00
scottjehl
1a49fb9445 edited demo pages for listviews 2011-03-31 17:34:31 -04:00
scottjehl
799cee85bc fixed bug in CSS counter in readonly lists 2011-03-31 17:34:16 -04:00
scottjehl
4839d82e54 removed class we weren't using 2011-03-31 17:31:16 -04:00
scottjehl
f241a858b5 fixed ordered lists in readonly OL listviews. Fixes #1144 2011-03-31 17:24:09 -04:00
scottjehl
19400af5f6 removed navigation-specific list keyboard handling and ARIA out of listview and over to select, which is the only place it's used. Lists are also now much friendlier to readonly markup - so forms and all of the formatted content previously supported in navigation-based listviews now work without an anchor wrapper. 2011-03-31 17:06:20 -04:00
scottjehl
57649cd066 moved the listview a11y handling to just selectmenu custom menus, since that's the only place it's now relevant 2011-03-31 16:44:25 -04:00
Kin Blas
3c69215ed6 Temporary workaround to keep 3rd party onclick handlers functioning. This stuff really needs to be done within the vmouse plugin. 2011-03-31 12:38:36 -07:00
scottjehl
776e23ee95 simplified test, but in general, the nav test suite feels brittle. Maybe because of our usage of async tests. Anyway, I was able to get all tests to pass once. 2011-03-31 13:38:49 -04:00
scottjehl
07d20d9991 Merge remote branch 'origin/master' 2011-03-31 13:20:44 -04:00
scottjehl
ae6c2d569f fixed a duplicate check for using markup for page titles when title isn't present. 2011-03-31 13:20:19 -04:00
scottjehl
b18756eceb fixed the last breaking pages unit test 2011-03-31 13:19:51 -04:00
scottjehl
854885e93d move the pageTitle setter to different function 2011-03-31 12:56:48 -04:00
scottjehl
91109ebbd0 better page titles 2011-03-31 12:56:47 -04:00
scottjehl
d8aac11a4f merging unit test addtions for page titles 2011-03-31 12:56:30 -04:00
scottjehl
ac7188e449 merging changes from page-titles branch in regards to a conflict with addNew function arguments 2011-03-31 12:48:46 -04:00
Kin Blas
16bea21a1c Corrected grammar for a comment in my previous checkin. 2011-03-31 09:33:05 -07:00
Kin Blas
0927ddfe3e Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-03-31 09:22:55 -07:00
Kin Blas
3ce228e3f2 On touch devices, 3rd party code that used href='#' links and onclick handlers weren't working because our live("vclick") link handler in jquery.mobile.navigation.js was calling preventDefault() on the vclick event.
For vclicks dispatched via touchend, calling preventDefault causes mouse clicks to be suppressed. This is why the 3rd party onclick handlers weren't getting triggered. For vclicks dispatched by a real mouse click this isn't a problem.

The fix basically removes the preventDefault() call from the live("vclick") handler and places it in a real live("click") handler. This allows the mouse event to get dispatched and trigger 3rd party click handlers, and still call preventDefault to prevent the link from being followed.
2011-03-31 09:19:05 -07:00
scottjehl
612192011b adjusted change event handling to fire change event on the selected radio, as Dave suggested, and which matches the native triggering. Also, checkboxes change events appear consistent with native implementation. Fixes #1206 2011-03-31 00:22:26 -04:00
scottjehl
506d5050b1 Merge remote branch 'origin/master' 2011-03-30 23:52:41 -04:00
scottjehl
77b25a46ea docs typo. Fixes #1150 2011-03-30 23:52:36 -04:00
toddparker
bfb713ce04 Merge remote branch 'origin/master' 2011-03-30 23:41:42 -04:00
toddparker
7ae63cb6cd Updated grid documentation to explain that we're using additional classes an styles, just for illustraiton purposes. 2011-03-30 23:41:29 -04:00
scottjehl
6bac3f81e5 Merge remote branch 'origin/master' 2011-03-30 23:28:58 -04:00
scottjehl
51c79481fc documented hashListeningEnabled. Fixes #1091 2011-03-30 23:28:53 -04:00
toddparker
faf0d6a581 Merge remote branch 'origin/master' 2011-03-30 23:15:43 -04:00
toddparker
43ea8df112 Fixed missing hyphens in listview theming data- attribues and re-coded some mangled list code examples. Everything is working right again. Closes #992 2011-03-30 23:15:27 -04:00
scottjehl
b77e04e7c4 Merge remote branch 'origin/master' 2011-03-30 22:53:55 -04:00
scottjehl
5d93d53090 removed the cdn hotlinks - local is best for testing. Also added a link to test Bender's new fix - works fantastic. 2011-03-30 22:53:46 -04:00
toddparker
e9e7a78e99 Fixed a minor grammatical error in the pages docs. 2011-03-30 22:31:18 -04:00
scottjehl
cdccf8f2af updated the fastclick comment 2011-03-30 21:32:38 -04:00
scottjehl
93ddf9d984 Syntax fix with data-ajax attr - also making sure [target] is included in the external link check, and that the pathname is removed properly in IE before prefixing. 2011-03-30 21:17:52 -04:00
scottjehl
a017576da9 Merge remote branch 'origin/master' 2011-03-30 20:52:20 -04:00
scottjehl
e38a25de58 make sure the sticky footer matching is only true if data-ids are specified. This makes "tap" work again when toggling fixed headers and footers. 2011-03-30 20:52:13 -04:00
Kin Blas
14fbe8b164 Fix for issue 1316 - URL is not properly formed in Firefox
- Checking in scottjehl's suggested selector for the non dynamicBaseTag support case.
2011-03-30 16:15:24 -07:00
Kin Blas
2d83b8d373 Adding jquery.mobile.vmouse.js to the list of files. 2011-03-30 08:38:27 -07:00
Kin Blas
6fa5002c7e Added jquery.mobile.vmouse.js to the build Makefile. 2011-03-30 08:04:45 -07:00
John Bender
6d37ad6bbb added addtional test to cover issue 1305 2011-03-30 01:08:15 -07:00
John Bender
215aded824 fixed path detection for when linking from embedded pages to file paths Fixes #1305 2011-03-30 01:08:15 -07:00
John Bender
32f1264491 corrected poor async start order 2011-03-30 01:08:15 -07:00
John Bender
3a758f97fa navigation whitespace 2011-03-30 01:08:15 -07:00
scottjehl
27b4cd29fc improved the fixed headers and footers so they show and hide more appropriately, even when starting a scroll on an anchor element. Fixes #1309 2011-03-29 19:09:19 -04:00
Kin Blas
f80d286ecb Fixing tap/taphold tests that broke when fastclick/vmouse changes landed. 2011-03-29 12:01:58 -07:00
Kin Blas
62f8ce254e Bullet proof handleTouchStart() against fake touchstart events that don't have any touches[] properties defined. 2011-03-29 09:46:10 -07:00
Kin Blas
9e40d14b28 Fixing unit test bustage. The fastclick branch landed so these tests need to be updated to fire off "click" versus "touchend" or "mouesup". 2011-03-29 09:32:10 -07:00
Kin Blas
1f2c7fd537 Merge branch 'master' into fastclick
Resolved Conflicts:
	js/jquery.mobile.navbar.js
2011-03-29 09:03:05 -07:00
scottjehl
80f81ca6fa improved sticky footers a little bit. Now they don't fade after becoming sticky, but they stick well at least. 2011-03-28 20:35:17 -04:00
scottjehl
15ef91c828 Merge remote branch 'origin/master' 2011-03-28 18:31:00 -04:00
scottjehl
8fa56b6e85 Got the sticky footers working again. Markup change noted in first page of demo. Fixes #850 2011-03-28 18:30:55 -04:00
toddparker
cf5676992d Fixed toolbar demo page, added a sample form and updated list markup to new style 2011-03-28 16:43:40 -04:00
scottjehl
bb9921a9f4 Merge remote branch 'origin/master'
Conflicts:
	docs/pages/docs-link-scenarios.html
2011-03-28 16:37:58 -04:00
toddparker
72f4b4a0ca Fixed link markup on this page. 2011-03-28 16:33:29 -04:00
scottjehl
1a2a85773b fixed a bad path 2011-03-28 16:07:19 -04:00
scottjehl
bc005fe18d page isn't in use. covered by link-formats.html 2011-03-28 16:07:09 -04:00
scottjehl
3b9a90ee4a fixed underline on button down state 2011-03-28 15:55:37 -04:00
toddparker
50717094ad Removed section on non-ajax dialogs, not supported yet. 2011-03-28 15:42:53 -04:00
John Bender
7b4842eabc test for dialogs within dialogs 2011-03-28 00:41:33 -07:00
John Bender
97783bdbd1 added page tracking to history stack and handling for dialog to dialog transitions in hashchange 2011-03-28 00:41:33 -07:00
jblas@adobe.com
0a063c6d67 Get rid of "moved" tracking in the label event bindings. This is all handled transparently by the virtual mouse event code. 2011-03-27 21:20:06 -07:00
jblas@adobe.com
729cda075a Merge branch 'master' into fastclick
Resolved Conflicts:
	js/jquery.mobile.buttonMarkup.js
	js/jquery.mobile.event.js
	js/jquery.mobile.forms.checkboxradio.js
	js/jquery.mobile.forms.select.js
	js/jquery.mobile.listview.js
2011-03-27 21:00:22 -07:00
scottjehl
ee02a76279 self-submitting form demo. 2011-03-27 18:51:59 -04:00
scottjehl
4f4718731f Incorporating mariozaizar's changes to add a backBtnTheme option (null by default) to the page plugin. A few edits were needed to support namespacing and a proper null default so theme inheritance is the default. 2011-03-27 18:29:45 -04:00
scottjehl
b0eb2bd053 Fixed up nested listviews so that any markup that comes before the child list will be used for complex formatting in the list item node. Text nodes that are direct children of the LI still work fine as well. Fixes #585 2011-03-27 16:18:24 -04:00
scottjehl
4011cf684e added a bigger select example to the demo 2011-03-27 15:56:48 -04:00
scottjehl
15a052134f moved overflow hidden w/ ellips to inner anchor fixing a small listview CSS regression. 2011-03-27 14:19:00 -04:00
scottjehl
ef1b0d94ae added the $.mobile.listview.prototype.options.closeBtnText option for configuring the text of dialog back/close buttons. This also Fixes #1227 (or at least a note within that already-closed issue). Documentation included. 2011-03-27 14:10:16 -04:00
scottjehl
315c594572 Added "filterPlaceholder" option to allow configuring filter listview placeholder text. Documented here: jquerymobile.com/test/#docs/lists/docs-lists.html. Fixes #1227 2011-03-27 14:01:59 -04:00
scottjehl
56fd116236 make sure change event is fired on native select element when custom menu triggers a new selected item. Fixes #1109 2011-03-27 13:45:19 -04:00
scottjehl
58c0d1d1fb no longer needed, as anchors now fill the LI and have no click handling applied. 2011-03-27 13:35:27 -04:00
scottjehl
f4e5492b9e make sure close button on small multi-select menus still works. Fixes #1293 2011-03-27 13:21:16 -04:00
scottjehl
aab6cf4012 Fixed an issue where custom selects within dialogs always opened full-screen and not as overlays. Fixes #1277. Note: this change removes code that stated Firefox had trouble with getting outerHeight on a hidden page, but I found that no longer to be true, so I'm assuming this was fixed in Core. 2011-03-27 13:15:06 -04:00
scottjehl
732a11089b make sure page backgrounds and general page height fills the height of the browser, particularly with dialogs. Fixes #1033 2011-03-27 12:53:22 -04:00
scottjehl
d66cd439f0 removed a console log 2011-03-27 12:46:51 -04:00
scottjehl
241500a422 quick sample page for testing selects in dialogs 2011-03-27 12:38:33 -04:00
scottjehl
c50158c837 Just comments, code order, and whitespace, but also confirming: This Fixes #1171, where a page loading error prevents future page loads from working.
Confirmed on this page. Scroll down and click the error message, than another link to navigate elsewhere.
http://jquerymobile.com/test/#docs/pages/docs-pages.html
2011-03-27 12:27:50 -04:00
scottjehl
450099213b fixed up the unit test for fieldcontain with namespacing and similar JS links in head. 2011-03-27 12:01:36 -04:00
BradBroulik
1f5259a7ee Added code coverage for fieldcontain module. 2011-03-27 23:54:24 +08:00
scottjehl
4a45d8d96b Added pageLoadErrorMessage option. Defaults to "Error Loading Page". Documentation included. Fixes #1258 and Fixes #363 2011-03-27 11:45:03 -04:00
scottjehl
97d30aa47f Merge remote branch 'origin/master' 2011-03-27 02:24:38 -04:00
scottjehl
1f703625c1 css fix for split button icons. This concludes the listview markup refactor, which allows us to remove many previous workarounds that dealt with anchor elements not filling the whole list dimension (and requiring us to trigger clicks and mimic default anchor clicking when not using Ajax... ). That was bad. This is good. Fixes #652 and Fixes #596. 2011-03-27 02:21:02 -04:00
John Bender
73a39ab7ec fixed poorly chosen selector in test and moved generated anchor markup into hidden page 2011-03-27 02:07:31 -04:00
scottjehl
07333e3482 moved padding to anchor rather than inner div 2011-03-27 01:59:55 -04:00
scottjehl
368b875a02 delegated clicks on anchors don't seem to cause the same visual problems in WinMo7 that they did when click events were bound to LIs. Removing workaround then! 2011-03-27 01:59:36 -04:00
scottjehl
baa37e94b5 markup fixes 2011-03-27 01:47:58 -04:00
John Bender
1bd3617543 fixed poorly chosen selector in test and moved generated anchor markup into hidden page 2011-03-26 22:32:28 -07:00
scottjehl
bbfb91b45a markup fix 2011-03-27 01:21:53 -04:00
scottjehl
8397afba8c markup fix 2011-03-27 01:16:17 -04:00
scottjehl
b2f4f06f7d make sure inner button gets corner rounding as well in listviews. Fixes a regression from earlier. 2011-03-27 01:14:46 -04:00
scottjehl
fd5b3210e4 used :hidden selector instead 2011-03-27 00:48:30 -04:00
scottjehl
0780e40a69 straightened out some failing tests so they match the new markup conventions 2011-03-26 23:47:14 -04:00
scottjehl
a0ebb5223b find first image child of LI or of firstchild anchor 2011-03-26 23:46:47 -04:00
scottjehl
a496bc3bb7 used data-rel to find back buttons 2011-03-26 22:34:36 -04:00
scottjehl
bed18f1bc9 updated to latest, adjusted first test to click the anchor 2011-03-26 22:33:33 -04:00
scottjehl
c66efa3c17 updated to latest, adjusted 2nd test to click the anchor 2011-03-26 22:33:06 -04:00
scottjehl
de21e9e628 trigger click on the link instead 2011-03-26 21:31:14 -04:00
scottjehl
9a4663073d removed default click simulator now that listviews no longer tricker clicks. 2011-03-26 21:29:24 -04:00
scottjehl
f8e406dd7f more markup cleanup to support the new hierarchy 2011-03-26 21:29:24 -04:00
scottjehl
6cd2e9164a removed delegated LI click handling. Native anchors will provide 2011-03-26 21:29:24 -04:00
scottjehl
84b55548d3 more updates to the listview markup, styles and scripts to allow wrapped anchors 2011-03-26 21:29:24 -04:00
scottjehl
72fe3a2c21 initial markup changes 2011-03-26 21:29:24 -04:00
John Bender
6965d4d24c removed console from test helper 2011-03-26 17:29:58 -07:00
John Bender
c3854fe8ca added simple helper to rerun qunit tests 2011-03-26 17:27:33 -07:00
John Bender
0c59d527c3 fix for listview blank page, ui widget sets the data using the non namespaced fn. needs further consideration 2011-03-26 16:20:12 -07:00
scottjehl
665e87dd5b make sure an undefined prop stays undefined 2011-03-26 17:48:21 -04:00
scottjehl
fcbbb58de2 Merge remote branch 'origin/master' 2011-03-26 17:36:56 -04:00
scottjehl
fe3d0b537b updated to use new data method 2011-03-26 16:32:16 -04:00
scottjehl
0ebab16a9a updated to use new data method 2011-03-26 16:31:55 -04:00
scottjehl
b950f1c319 changed to just call dialog close method 2011-03-26 15:01:25 -04:00
scottjehl
8880ceb431 jqm coding style 2011-03-26 14:17:19 -04:00
scottjehl
1aafea83aa semicolon 2011-03-26 14:16:08 -04:00
scottjehl
e8cee23744 major simplification of jqmData method, while adding new methods for jqmRemoveData, and also their $-namepaced utility methods, including $.jqmHasData. Commit includes 20 new unit tests included to test compatibility with jQuery core's data methods, and docs are updated as well. 2011-03-26 14:14:02 -04:00
scottjehl
963840a3b0 moved some selectors over to :jqmData() 2011-03-26 10:18:32 -04:00
scottjehl
491d4a6873 moved some selectors over to :jqmData() 2011-03-26 10:15:27 -04:00
scottjehl
2add396bb2 moved some selectors over to :jqmData() 2011-03-26 10:14:48 -04:00
scottjehl
f78e7b0a6a moved to :jqmData selector 2011-03-26 10:12:16 -04:00
scottjehl
d59ba5a31a moved a couple of concats over to :jqmData() selector 2011-03-26 10:09:52 -04:00
scottjehl
8a3b846e95 documented the new jqmData method and :jqmData selector. 2011-03-26 09:11:42 -04:00
scottjehl
9fc1f9828b fixed docs for the default namespace (blank string) 2011-03-26 08:39:12 -04:00
John Bender
caedd81cfd give swipe event triggers a 100ms buffer to allow for async sequences 2011-03-26 00:48:41 -07:00
John Bender
c7ed33cfeb increase swipe check timout to allow for test browser speed 2011-03-25 23:59:57 -07:00
Kin Blas
004860c209 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-03-25 23:47:32 -07:00
John Bender
62a8a4039a stabilized event tests a bit more 2011-03-25 23:45:22 -07:00
Kin Blas
90e167a4f6 Some "page" data calls were accidentally switched to jqmData(). The widget code actually uses data() so we need to make sure we match.
A couple of data() to jqmData() changes were missed.
2011-03-25 23:44:02 -07:00
John Bender
bf5d09cf9c small fixs for linux chrome tests 2011-03-25 22:55:25 -07:00
John Bender
6089618431 readded fix to return jquery wrapped object from animation complete in both branches 2011-03-25 22:35:19 -07:00
John Bender
bb721aa48c Merge branch 'master' of github.com:jquery/jquery-mobile 2011-03-25 21:38:06 -07:00
John Bender
14f43ace9b fix for select tests after default to native 2011-03-25 21:37:45 -07:00
Kin Blas
d32a8a6bb4 Fixed some jslint warnings. It caught a missing comma that would've broken the file during a minify. < whew! > 2011-03-25 21:26:10 -07:00
Kin Blas
d62864b7de Add dummy mouse/click handlers on bind elements so that they remain clickable on Opera Mini. 2011-03-25 20:35:24 -07:00
toddparker
07be08c4b4 Inproved select docs and added optgroup and disabled option for native menus 2011-03-25 22:42:11 -04:00
John Bender
4fe0b29a0f Merge branch 'data-namespacing' 2011-03-25 18:46:00 -07:00
John Bender
0ed68525ed fixed array comparison tests to test single element 2011-03-25 18:40:55 -07:00
John Bender
143fd264d2 fixed mobile init bind firing in another test 2011-03-25 18:27:35 -07:00
Kin Blas
aa58b2a7e6 Added back blocking based on ancestry. Looks like we need to block on both proximity and ancestry to work around touch and mouse target differences. 2011-03-25 18:00:58 -07:00
scottjehl
fc4f8d24eb trigger click on the link instead 2011-03-25 19:35:07 -04:00
scottjehl
f7d04750c5 removed default click simulator now that listviews no longer tricker clicks. 2011-03-25 19:35:07 -04:00
scottjehl
ec3d6d6489 more markup cleanup to support the new hierarchy 2011-03-25 19:35:07 -04:00
scottjehl
d5eb6531da removed delegated LI click handling. Native anchors will provide 2011-03-25 19:35:07 -04:00
scottjehl
83ba9f7782 more updates to the listview markup, styles and scripts to allow wrapped anchors 2011-03-25 19:35:07 -04:00
scottjehl
f85956251d initial markup changes 2011-03-25 19:35:07 -04:00
scottjehl
497344c618 used mobile.ns in the test 2011-03-25 18:21:10 -04:00
scottjehl
7503f62a10 changed our two new custom data helper names to jqmData() and :jqmData() 2011-03-25 17:50:40 -04:00
scottjehl
5fa733b0eb Merge remote branch 'origin/master' 2011-03-25 17:35:53 -04:00
scottjehl
2d6653c1d5 improved the icons at regular and retina resolutions. added check and radio to the sprite; fewer requests ftw. Fixes #844 2011-03-25 17:35:45 -04:00
toddparker
86db2a77a1 Cretaed Alpha 4 version banner for docs homepage so we're ready to go. Need to rename this to "version.png" when we flip the switch. 2011-03-25 15:14:20 -04:00
toddparker
430a25884e Higher bit depth versions. 2011-03-25 13:19:37 -04:00
toddparker
31d246f685 Updated sprites to add alpha transparency 2011-03-25 13:11:08 -04:00
toddparker
509082efd1 Updated supported browser page to include WP7 and say alpha 4. 2011-03-25 13:07:27 -04:00
toddparker
649824a40e Few language tweaks. 2011-03-25 13:01:35 -04:00
toddparker
ea074d1ef1 Set the global default for select menus to use the native instead of custom. Updated the docs and examples to match. 2011-03-25 12:44:46 -04:00
toddparker
8f9250ecff Merge remote branch 'origin/master' 2011-03-25 11:48:00 -04:00
toddparker
c771c36e9e New check + radio images - now a single sprite and with retina support 2011-03-25 11:47:45 -04:00
Kin Blas
d06ff28bf6 Re-introduced the concept of blocking the mouse handlers from firing trigger. It was needed to fix select menus. Everytime you would click a select button, the click event was being intercepted by whatever select item appeared at the point of tap which set the value of the select. 2011-03-24 14:57:51 -07:00
scottjehl
4fa2032789 quick fix to listview image selector to grab the first img of each LI, not the whole list. 2011-03-24 15:41:43 -04:00
Felipe Brahm
c25829a8a2 Bug fix: only apply thumb style if img tag is on the first level. This fixes the problem when you want multiple images on each li element, like a 5 star rating for each element for example. Now to add multiple images you just have to put them in a div. 2011-03-25 03:39:02 +08:00
cm71td
2f3b5b6543 Disabled buttons should get the ui-disabled class. I created a refresh() method to be consistent with other widgets. It checks if the underlying button is disabled and calls enable or disable. The refresh() method is called from _create. 2011-03-25 03:16:42 +08:00
John Bender
7d3642f3ab fixed init tests for ie 2011-03-24 09:46:13 -07:00
John Bender
ff4c74d5f9 fixed init tests for ie js failure 2011-03-23 22:42:16 -07:00
scottjehl
13a88bfd7b undid the changes in commit #a881ae79d7310e45294e 2011-03-24 01:11:45 -04:00
scottjehl
61005944d3 Added support for the target attribute on forms (such as target="_blank"). When set, the form handler simply allows the native handling to apply. Unlike anchors however, the rel attribute is not allowed on forms. If you're purely looking to submit a single form without ajax, you can use the data-ajax="false" attribute as well. Fixes #952 and docs updates are included 2011-03-24 00:59:42 -04:00
scottjehl
39476d151a added support for data-transition and data-direction on form elements. Fixes #1275 2011-03-24 00:45:15 -04:00
scottjehl
7b0fa3b48c If action attribute is undefined, default to path.get(). Fixes #766 2011-03-24 00:36:24 -04:00
scottjehl
acc771b046 make sure type is not a 0-length string, as it would be if left undefined in the markup. Fixes #766 2011-03-24 00:33:59 -04:00
scottjehl
e6095a357a if type attr is used from method attr, make sure it's lowercase first. Fixes #1280. Still needs a unit test but I'll need to think about how best to do it. 2011-03-24 00:30:26 -04:00
Ivan Rubanov
b35274a8a4 Fix for issue 1262 2011-03-24 07:33:46 +08:00
toddparker
f22b7c8395 Updates to rel="external" dialog docs 2011-03-23 12:44:24 -04:00
toddparker
a545e5d361 Merge remote branch 'origin/master' 2011-03-23 12:39:21 -04:00
toddparker
aad79e8a9a Added rel="external" example to the dialogs docs 2011-03-23 12:39:04 -04:00
Kin Blas
251a3c0add Merge branch 'master' into phonegap 2011-03-23 09:14:10 -07:00
Louy Alakkad
a881ae79d7 giving footer buttons an absolute postition 2011-03-23 23:56:06 +08:00
Kin Blas
4bf8519cce Merge branch 'data-namespacing' of https://github.com/jquery/jquery-mobile into ns
Resolved Conflicts:
	js/jquery.mobile.core.js
	js/jquery.mobile.forms.checkboxradio.js
2011-03-22 13:51:50 -07:00
Kin Blas
db89e1f24d Switch find/filter selector calls over to using the new :jqdata() pseudo selector. 2011-03-22 13:31:17 -07:00
jeresig
29c0471cca Make sure that the :jqdata() selector also works for filtered items. 2011-03-22 14:35:11 -04:00
John Bender
018609fa32 removed mass of duplication from core of functionality that was moved to init, fixed init tests 2011-03-22 00:26:24 -07:00
John Bender
7df9e245f4 test namespace additions and type fix for core 2011-03-21 23:36:32 -07:00
John Bender
e236484559 fixed checkbox radio refresh selector 2011-03-21 23:17:46 -07:00
Kin Blas
8c5faaf01d A better fix for the case where we have mismatched touch and mouse targets. 2011-03-21 17:09:18 -07:00
Kin Blas
e26601c438 Merge branch 'master' into fastclick 2011-03-21 12:28:58 -07:00
Kin Blas
08fa6a2ac8 Got rid of the if/else isExternal check because we need to make sure we check cross domain URLs against isRelExternal. 2011-03-21 10:32:24 -07:00
Alexander Wunschik
862c0119d9 Default cursor for listview deviders. Fixes #1244 2011-03-21 22:13:11 +08:00
John Bender
2d56e5c2fb whitespace in event_core tests 2011-03-21 01:40:31 -07:00
John Bender
5d75e3dfa7 fixed event tests 2011-03-21 01:27:50 -07:00
John Bender
e1098e06de fixed widget tests by including the library as a whole 2011-03-19 23:14:46 -07:00
John Bender
ff23f63881 moved the widget tests back under an immediate function 2011-03-19 23:12:55 -07:00
John Bender
3316e559b3 fixed order dependent tests in listview 2011-03-19 22:44:35 -07:00
John Bender
45183c186c fixed listview tests, refactor still necessary for the last test selectors 2011-03-19 22:29:53 -07:00
Kin Blas
2aab30b7a6 Initial changes to allow for cross-domain URLs to be loaded as pages within Phone Gap's web view. I still need to figure out how we're going to set the application URL hash for these cross-domain URLs, and allow for reloading the URL via deep links. 2011-03-18 17:53:06 -07:00
Kin Blas
6b7c82a1dc Updated the scrollupdate trigger call to pass an array for the data. Apparently trigger requires an array as its second argument if you want to pass data to a callback. 2011-03-18 13:37:22 -07:00
Kin Blas
7f8438e966 Merge branch 'master' into fastclick
Conflicts resolved:
	js/jquery.mobile.forms.select.js
2011-03-18 09:15:01 -07:00
Kin Blas
882c27c03f Tweaked the jqdata selector regexp so that it wasn't so greedy. This will allow for multiple jqdata() and other pseudo selectors that use parens withinthe same selector string. 2011-03-18 08:42:24 -07:00
John Bender
4fca8e6d21 removed console 2011-03-17 00:15:29 -07:00
John Bender
2202b0d76c fixed some listview tests, still some that are hanging on complex selectors 2011-03-17 00:14:32 -07:00
John Bender
9f53e4e403 added mobile ns, jqdata was throwing an exception 2011-03-17 00:13:48 -07:00
John Bender
a40a181677 fixed bug in widget that caused them to ignore data attribute as options 2011-03-17 00:06:10 -07:00
John Bender
fe754ed298 fixed first three tests to be independent of order 2011-03-16 23:00:02 -07:00
John Bender
4959548698 fixed init core tests to represent init functionality 2011-03-16 22:31:22 -07:00
Kin Blas
fe8e13c9a9 Added code to deal with touch and mouse event target mismatches. This happens most often when the user touches a link, but his/her finger overlaps the link and areas outside of the link. In this specific case, the browser will generate touch events with a target that is the parent or ancestor of the link, but it will then generate mouse events with a target that is the link itself. We now catch this case and re-enable the mouse bindings so we can dispatch our virtual events appropriately. 2011-03-16 09:30:40 -07:00
John Bender
5349e5876b fixed some failing listview tests 2011-03-16 00:07:26 -07:00
John Bender
4126fbd29b fixed last failing tests after merge in init tests 2011-03-15 23:58:22 -07:00
John Bender
63e8f6bfcb resolved merge conflicts and fixed 2 tests 2011-03-15 23:57:17 -07:00
toddparker
b3cfe8778f Added documentation on how to disable Ajax form submission via data- attribute and gloabl config. 2011-03-15 19:21:27 -04:00
scottjehl
143a8df256 less padding on select menu titles. Credit goes to oiva (Oiva Eskola). Thanks! 2011-03-15 19:04:58 -04:00
scottjehl
09ffa3aa5f Clarified data-ajax=false on forms. Fixes #1134 2011-03-15 18:49:39 -04:00
scottjehl
b9d0349975 Merge remote branch 'origin/master' 2011-03-15 18:23:31 -04:00
scottjehl
4e13021a53 fixed bug where clicking back twice after opening a dialog select was causing the main page to hide. history.back was being called twice in some cases when clicking the custom close button. Fixes #1007 2011-03-15 18:23:24 -04:00
John Resig
42c1271963 Adding in a new :jqdata() selector for filtering data- attributes within the proper jQuery Mobile namespace. 2011-03-15 15:08:02 -04:00
John Resig
6138a57e67 Revert "Adding in a new :jqdata() selector for filtering data- attributes within the proper jQuery Mobile namespace."
This reverts commit da24d27796.
2011-03-15 15:05:22 -04:00
John Resig
da24d27796 Adding in a new :jqdata() selector for filtering data- attributes within the proper jQuery Mobile namespace. 2011-03-15 15:00:20 -04:00
scottjehl
83e7aeb4a5 when the select's options don't match the list item options, it should be rebuilt. Fixes #1240 2011-03-15 12:00:39 -04:00
John Bender
b56626fba1 added type attribute regex tests for the different ways that browsers serialize html 2011-03-14 23:50:20 -07:00
John Bender
cd654a4eae moved page unit tests back under anon function 2011-03-14 23:50:20 -07:00
John Bender
a987adb610 altered type attribute regex per @jblas, moved to 'private' prototype attribute for testing 2011-03-14 23:50:20 -07:00
scottjehl
3275baf64c added demo pages for inset filter lists 2011-03-15 00:08:01 -04:00
scottjehl
12616b310f didn't need the == true test. 2011-03-15 00:07:48 -04:00
hakanson
d16c46a6e9 format search filter for inset lists 2011-03-15 12:05:47 +08:00
scottjehl
6aa7db5fb5 changed the secondary icon color class name to ui-icon-alt instead of ui-icon-black. This will be best when creating custom themes that might use slightly different icon colors. 2011-03-14 23:55:41 -04:00
scottjehl
71ac285d4b Merge remote branch 'origin/master' 2011-03-14 23:47:25 -04:00
scottjehl
bd4e4a7eeb updated the retina sprite targeting to specifically apply to the icons in the sprite, and nothing broader. Credit for this commit goes to Adam Messinger (@adammessinger). Thanks Adam! 2011-03-14 23:47:16 -04:00
adammessinger
2bfdd02a51 Fix for issue #900: buttons with rel attribute set to external don't show active state 2011-03-15 11:30:19 +08:00
scottjehl
7f48419a29 This adds a fallback for navbars that have one item, so they simply fill 100%. Credit for this fix and idea goes to kennedyr (Richard Kennedy), but we changed the naming around a bit. Fixes #1107. Thanks Richard! 2011-03-14 20:26:20 -04:00
Dave Hulbert
11965092bb Fix for #1017 - Listview - remove hover/focus on read-only items 2011-03-15 07:52:11 +08:00
Phil Barnes
b740854ae7 Pass null event param for page _trigger beforehide and beforeshow -- Fixes issue #700 2011-03-15 07:41:32 +08:00
scottjehl
ddcacc1482 changed from ternary to || 2011-03-14 19:34:16 -04:00
scottjehl
330f866143 Merge branch 'bug_733' of https://github.com/eddiemonge/jquery-mobile into eddiemonge-bug_733 2011-03-14 19:31:15 -04:00
ray58750034
a4dc5888d0 add gridlayout test 2011-03-15 07:27:11 +08:00
ray58750034
50c2df122e set min-height of ui-block-* class, so the grid layout still work even some block doesn't contain any content. 2011-03-15 07:27:11 +08:00
scottjehl
6bcfd6f8d8 Merge branch 'bug/1151' of https://github.com/dave1010/jquery-mobile into dave1010-bug/1151 2011-03-14 18:49:57 -04:00
scottjehl
dedb54d15f set native select with custom button to opacity 0 instead of 0.0001. Note: I thought it was 0.0001 for a reason, but this checks out fine in WP7, WebOS, Android,iOS, Chrome, Safari, Firefox 4, Firefox 3.6, Opera Desktop & Mobile, IE 7
IE 8, IE 9, Blackberry 6. Sooo... that covers it. Fixes #1216
2011-03-14 18:44:31 -04:00
Kin Blas
562d89b762 Changes to reduce the number of times we traverse the parent hierarchy looking for virtual bindings when each event handler is called. 2011-03-14 14:25:25 -07:00
Kin Blas
9a431c89a5 Added $.support.eventCapture to detect support for listening for the event capture phase. We need this to disable vmouse touch support for WP7. We may be able to work around the lack of capture support in the near future, but until then, we fallback to just supporting mouse events. 2011-03-14 12:39:03 -07:00
Kin Blas
dbcf4d0373 Merge branch 'master' into fastclick 2011-03-14 11:38:00 -07:00
John Bender
84ac4ebbb2 fixed input type regex for ff. It puts the type attribute at the end of the html string and breaks the trailing space. Checked in ie7 2011-03-14 08:22:44 -07:00
John Bender
8943287c75 Revert "fixed failing slider tests in firefox by adding data-type to type=range inputs"
This reverts commit 6ca79aceb4.
2011-03-14 08:22:44 -07:00
scottjehl
faa01256fa Grouped buttons had extra margins. Fixes #1231 2011-03-14 11:13:47 -04:00
scottjehl
1457942367 Merge remote branch 'origin/master' 2011-03-14 08:29:32 -04:00
scottjehl
2b7a2669ac fixed a var typo. Thanks @mschroeder. 2011-03-14 08:29:17 -04:00
John Bender
6ca79aceb4 fixed failing slider tests in firefox by adding data-type to type=range inputs 2011-03-13 23:40:03 -07:00
John Bender
c629e34e74 fix for broken init test and some whitespace 2011-03-13 23:09:32 -07:00
scottjehl
fc0cd38c4e improved test for meta injects 2011-03-14 00:20:26 -04:00
scottjehl
f69c98caf0 gradeA adjusted to IE7 and up rather than 6 and up ( this still includes Windows Phone 7). Unit test adjusted to match 2011-03-14 00:20:26 -04:00
scottjehl
d08ff23765 fixed up path.clean test so it passes 2011-03-14 00:20:26 -04:00
scottjehl
4c199a5ce6 added unit test for IE version check in Mobile ( doesn't use UA detection like jQuery Core's) 2011-03-14 00:20:26 -04:00
scottjehl
b2ea5e99e5 added comment about missing meta tag 2011-03-14 00:20:26 -04:00
scottjehl
f6a2bd46ec added a unit test for checking if meta viewport tag is not appended if one already exists. 2011-03-14 00:20:26 -04:00
scottjehl
b2222388d7 updated to latest 2011-03-14 00:20:26 -04:00
scottjehl
6ecb99c936 typo in selector for finding meta[viewport] element 2011-03-14 00:20:26 -04:00
scottjehl
3014ab785d fixed the flip switch in Windows Phone 7. Z indexes needed tweaking to accommodate IE. 2011-03-14 00:20:25 -04:00
scottjehl
d3a170db09 moved the IE test to support.js, added a workaround to the listview refresh method to prevent default on mousedown, which makes the tap highlight color look right in Windows Phone 7. Without this workaround, it still works fine, but the entire listview is highlighted when an LI is clicked. 2011-03-14 00:20:25 -04:00
scottjehl
4596769b5e fixed up the dimensions and opacity for nativeMenu selects so they work in Windows Phone and IE 2011-03-14 00:20:25 -04:00
scottjehl
4c42be503d tabindex shouldn't be -1 on nativemenu button 2011-03-14 00:20:25 -04:00
scottjehl
3ffe86bc21 fixed form button appearance in Windows Phone 7 and IE 2011-03-14 00:20:25 -04:00
scottjehl
c1f6057773 switched from inline-block to inline on the divs to get grouped Checkboxes and Radios to stack horizontally in Windows Phone. 2011-03-14 00:20:25 -04:00
scottjehl
7aab355ffb some fixes to make checks and radios work in Windows Phone 7. The labels were not being found through the selector, but finding all labels and then using the filter method seemed to work fine. Other than that, this push includes a little DRY cleanup here and there. 2011-03-14 00:20:24 -04:00
scottjehl
c4685ac14f replace the current path in the url when checking if it's a null # href. This ensures # hrefs won't follow default behavior in IE / Win Phone. 2011-03-14 00:20:24 -04:00
scottjehl
793d03b2e6 adjusted input element replacement regexp to account for non-quoted type attributes when replacing markup. This change lets things work properly in IE, so plugins like the slider now get enhanced. 2011-03-14 00:20:24 -04:00
scottjehl
60d75f008c fixed Ajax navigation in Windows Phone 7. Since all urls are absolute in IE, we need to check if the href has a protocol up front, and if so, later on, make sure we don't prefix it with a base path because it doesn't need one. 2011-03-14 00:20:24 -04:00
scottjehl
8cb9923055 gradeA test was missed in the update. back in now, with IE 6+ enabled. 2011-03-14 00:20:24 -04:00
scottjehl
aa31e01d63 updated to latest core js, with deprecation note 2011-03-14 00:20:24 -04:00
scottjehl
5b1f586cdb added meta back. This is now deprecated for A4 in favor of putting the viewport meta directly in the markup. 2011-03-14 00:20:24 -04:00
scottjehl
bd1f9e1249 changing overflow to visible makes list items stack properly in IE7. This rule was only there for clearfix, so either value should be fine. Tested in iOS/iPad to make sure this did not re-introduce the icon positioning bug. Removed unnecessary zoom as well. 2011-03-14 00:20:24 -04:00
scottjehl
05c48f2c3e moved the CSS shorthand around for a better rgba fallback in IE 2011-03-14 00:20:24 -04:00
scottjehl
dcbe844f5c brought back meta definition. This is now deprecated in A4 2011-03-14 00:20:23 -04:00
scottjehl
b38113950f only inject meta if there isn't already one there. Deprecating support for injected meta in A4. Will likely remove completely at beta. 2011-03-14 00:20:23 -04:00
scottjehl
dfe7cf6593 Added viewport meta elements to the markup of every template and removed the metaViewportContent option from code and docs. IE does not support generated viewport tags. 2011-03-14 00:20:23 -04:00
scottjehl
0d9627d54e Added viewport meta elements to the markup of every template and removed the metaViewportContent option from code and docs. IE does not support generated viewport tags. 2011-03-14 00:20:23 -04:00
scottjehl
1370d5a48e add IE version check to gradeA qualifier. 2011-03-14 00:20:22 -04:00
scottjehl
2879014fb5 Merge branch 'master' of github.com:jquery/jquery-mobile 2011-03-14 00:19:58 -04:00
toddparker
9e29410d0a Added documentation to explain how to use the refresh method on many form elements when you manipulate them. This will hopefully help a lot of people who were confused by this! 2011-03-13 22:16:13 -04:00
scottjehl
043293fd74 Merge remote branch 'origin/master' 2011-03-13 21:59:57 -04:00
scottjehl
0f9eb85240 removed a TODO about changing the changePage function's arg structure. We can revisit this again if it ends up causing problems, but for now, it's not hurting anything and people are already using it. Fixes #1152 2011-03-13 21:59:51 -04:00
toddparker
061fbc4a72 Fixed country names next to flags. Apologies to Norway, Finland and Sweden! Fixes #1156. 2011-03-13 21:58:37 -04:00
scottjehl
80e72addde Merge remote branch 'origin/master' 2011-03-13 17:21:45 -04:00
John Bender
b4bc09e3b3 clarification and whitespace fix 2011-03-12 23:02:11 -08:00
John Bender
a6b14b9cab indentation in select open 2011-03-12 22:58:21 -08:00
John Bender
bc70fedb20 select whitespace cleanup 2011-03-12 22:56:36 -08:00
John Bender
648be47a07 reset location hash in select menu tests 2011-03-12 22:55:48 -08:00
John Bender
e2e8d24b79 Merge branch '1036' of https://github.com/chrsMon/jquery-mobile into chrsMon-1036 2011-03-12 22:52:53 -08:00
John Bender
e3000e2dec added failing test for on screen custom select menu rendering 2011-03-12 22:52:44 -08:00
John Bender
129b586666 tests for url root in params / path.clean Fixes #1039 2011-03-12 14:37:45 -08:00
John Bender
1911dba7d7 small refactor for clean 2011-03-12 14:37:45 -08:00
John Bender
f555a27e34 fix for protocol and host included as params in path.clean 2011-03-12 14:37:45 -08:00
toddparker
183ec771d2 Fixed -msfilter: css rules to use the correct ms-filter: syntax. Not an issue with valencia, only the default theme. Closes #1020 2011-03-12 16:24:48 -05:00
John Bender
8cac1c5777 word boundy added back with proper escape sequence 2011-03-12 12:05:07 -08:00
scottjehl
b1e421f6b6 Merge remote branch 'origin/master' 2011-03-12 11:54:16 -05:00
John Bender
ccea5be445 removed console log 2011-03-12 00:29:26 -08:00
John Bender
94ade0f86e fixed failing data-url regex, bizarri difference in behaviour with Regex objects and literals 2011-03-12 00:10:40 -08:00
John Bender
a33f777952 fixed core unit tests for ns 2011-03-11 22:50:26 -08:00
Kin Blas
b0a667ae44 Fixed typo in my last checkin for converting tap to virtual mouse events. It was preventing tap from actually firing so things like the cancel button link in a search textfield was being followed. 2011-03-11 16:12:58 -08:00
Kin Blas
b00d05b81c Merge branch 'master' into fastclick 2011-03-11 10:33:11 -08:00
Kin Blas
2de7cc5bbc Added vmousecancel to the vevents list so that users can bind to the event. 2011-03-11 10:30:16 -08:00
Dave Hulbert
47b26d9628 Whitespace. Again. 2011-03-10 10:16:42 +00:00
Dave Hulbert
1926787393 Whitespace 2011-03-10 10:11:40 +00:00
Dave Hulbert
fec673dec1 Fix for regular text inputs. Props scottjehl. 2011-03-10 09:39:02 +00:00
John Bender
0aaab77e2b test for forward button dialog skipping 2011-03-10 00:13:53 -08:00
John Bender
a2747915c5 corrected issue with setting forward and back values for changepage closure 2011-03-09 23:27:59 -08:00
John Bender
8803bee3bb fixed zero index bug for directHashChange 2011-03-09 22:55:07 -08:00
John Bender
224c0a90ca removed unnecessary variables in hashchange callback 2011-03-09 22:55:07 -08:00
John Bender
150f0f6c17 moved global hashchange disable check above dialog check 2011-03-09 22:55:06 -08:00
John Bender
c9416a09a7 moved urlHistory refs to this where possible 2011-03-09 22:55:06 -08:00
John Bender
1ad0769862 refactored determining of back or forward and added callbacks for both cases 2011-03-09 22:55:06 -08:00
John Bender
6e64ccf308 moved dialog skipping to the hashchange callback, needs a refactor 2011-03-09 22:53:38 -08:00
scottjehl
ea60207c1b changed custom data method to $.fn.mobileData() and updated plugins that use it. 2011-03-09 23:27:21 -05:00
scottjehl
0bf5ce8a37 set unit test pages namespace to "nstest-" 2011-03-09 23:16:48 -05:00
scottjehl
e46da87031 namespaced the selectors 2011-03-09 22:41:59 -05:00
scottjehl
50655de35c test description change 2011-03-09 22:41:03 -05:00
scottjehl
6418772901 just test description changes 2011-03-09 22:40:49 -05:00
scottjehl
b80d221765 killed the namespace 2011-03-09 22:40:25 -05:00
scottjehl
19f5fd7cae changed the default namespace to "" and updated the docs/demos as such 2011-03-09 22:36:14 -05:00
scottjehl
1e01856f5d updated to use namespace 2011-03-09 21:34:03 -05:00
scottjehl
be0634efb8 fixed typo in class 2011-03-09 21:30:22 -05:00
scottjehl
a74c0c6280 updated init with namespacing 2011-03-09 21:29:07 -05:00
scottjehl
3cae8f8bf0 caught a few more 2011-03-09 21:03:40 -05:00
scottjehl
77ac0f009a a few more non-namespaced attrs to bring over 2011-03-09 21:03:40 -05:00
scottjehl
bc0f1e02f3 better var names 2011-03-09 21:03:40 -05:00
scottjehl
aa0228d5b8 updated doc 2011-03-09 21:03:40 -05:00
scottjehl
9e91fa6752 updated docs with jq namespace, found some more stragglers 2011-03-09 21:03:40 -05:00
scottjehl
237db243dd updated the experiments dir to use data-jq namespaces 2011-03-09 20:59:28 -05:00
scottjehl
d183cc591f applied data-jq- namespacing to all data attributes in docs 2011-03-09 20:53:02 -05:00
scottjehl
cee4c617ba first pass at extending data() to either return a) if no arguments, return non-namespaced versions of any namespaced properties in the data hash, or b) if getting a data property, try getting the namespaced version if the first is undefined. If it's defined, return that instead 2011-03-09 20:49:43 -05:00
scottjehl
c7fe048016 updated to use namespaced data attrs 2011-03-09 20:49:42 -05:00
scottjehl
2e7ee89ec3 updated attr lookups to use namespace 2011-03-09 20:49:42 -05:00
scottjehl
ce34ece257 namespaced data- attrs to $.mobile.ns (defaults to "jq-") throughout the JS 2011-03-09 20:47:44 -05:00
scottjehl
62043a8a2e Merge branch 'master' of github.com:jquery/jquery-mobile 2011-03-09 20:34:54 -05:00
Kin Blas
d612edd126 Fix for Issue 1195 - base href getting incorrectly set to include extra "/"
- Added code to base.set() that strips any leading slash from the path returned from path.get().
2011-03-09 17:23:36 -08:00
Kin Blas
6ca8b9f700 Merge branch 'master' into fastclick 2011-03-09 14:25:58 -08:00
Kin Blas
d2594ec585 Reworked tap/taphold code so that it makes use of vmousecancel to detect when the user has scrolled the page. Also refactored some of the event handler calling code into a function. I'm still not sure why the handler is called directly versus using the jQuery trigger() method which would allow bubbling. 2011-03-09 14:14:53 -08:00
Kin Blas
8dd766dbce Removed experimental setting of the ui-btn-active class on button down. This breaks feedback on checkboxes and radios. 2011-03-09 14:13:26 -08:00
Kin Blas
6414e35cee Convert checkbox/radio and navbar over to virtual mouse events. 2011-03-09 12:37:20 -08:00
Kin Blas
2381bfdeef Remove the ui-btn-down and active class on vmousecancel instead of vmousemove. 2011-03-09 12:35:59 -08:00
toddparker
9bd530b1fa Added a new demo page showing how adding data-role="none" to form elements and buttons will show the default, native control. Added link to this page from the forms index.
Good news - the data-role="none" attribute seems to work great, no issues found.
2011-03-09 15:35:45 -05:00
Kin Blas
ea77d0370d Fix for issue 1207 - Can't revisit the same page after visitin it, hitting the back button and clicking its link
- This was a regression introduced by 20dce2ce. Added check for undefined newActiveIndex so we can tell the difference between the URL not being found, and a zero index.
2011-03-08 10:56:36 -08:00
Kin Blas
96a308cc6b Merge branch 'master' into fastclick 2011-03-08 09:10:07 -08:00
Kin Blas
79c1b1fb69 Convert dialog and button over to using vclick. 2011-03-08 08:52:17 -08:00
Kin Blas
c85a9c3d00 Fix for issue 1198.
- Added the mobile namespace to the pageContainer reference. I think we may have missed this during the sweep when we added the mobile namespace.
2011-03-07 09:27:57 -08:00
scottjehl
644749b004 Merge remote branch 'origin/master' 2011-03-05 13:30:59 -05:00
John Bender
5fd1e70218 test for data-rel back and dialog fix 2011-03-04 23:34:54 -08:00
ahallerblu
291bb306dd find the next entry in the urlstack that isn't a dialog Fixes #1061 2011-03-04 23:34:12 -08:00
John Bender
3b21481cee small simplification of core scrolling tests 2011-03-04 22:25:33 -08:00
John Bender
ea85b5a46f whitespace in init 2011-03-04 22:25:33 -08:00
John Bender
a4a8d859ca small refactor of core to unify call to extend 2011-03-04 22:25:33 -08:00
scottjehl
5403981434 Merge remote branch 'origin/master' 2011-03-04 16:28:07 -05:00
scottjehl
4c8453a15a updated to 1.5.1 from the RC 2011-03-04 16:28:01 -05:00
Dave Hulbert
b4ecf585b2 Fix for #1151 - Form elements aren't full width. Needs testing. 2011-03-04 11:49:03 +00:00
scottjehl
0f3c4efdaa updated version to a4pre 2011-03-04 00:09:37 -05:00
John Bender
433384e150 altered tests to represent init change and added two for the load message customization Fixes #1178 2011-03-03 18:08:47 -08:00
John Bender
608b39ed39 moved loading message after init to account for customization 2011-03-03 18:06:07 -08:00
eddiemonge
2cb7ff0814 Issue: 733; Defaults form submits to GET method when method is not defined to prevent crashing Android's default browser 2011-03-03 17:45:34 -08:00
Mark Bennett
670dde6221 Add missing quote 2011-03-02 13:53:49 -07:00
Kin Blas
dded1be380 Merge branch 'master' into fastclick 2011-03-01 15:45:49 -08:00
Kin Blas
ca3026a341 Switch collapsible over from click to vclick. 2011-03-01 14:07:11 -08:00
Kin Blas
48ab0ec7d6 Prevent inputs and buttons of type="button" from getting the submit click handler added to them. 2011-03-01 14:04:48 -08:00
Kin Blas
b8c73e2599 Merge branch 'master' into fastclick 2011-02-28 09:41:40 -08:00
Martin Kou
df21c701b5 Fixed animationComplete return value bug. 2011-02-27 22:07:34 -08:00
John Bender
09f5719865 moved checkbox tests under immediate function and simplified fixture html 2011-02-27 00:00:14 -08:00
John Bender
58b16a94b6 small refactor to disable check for checkbox radio 2011-02-26 23:59:17 -08:00
Martin Kou
2bb94172cf Fixed checkboxradio disable issue. 2011-02-26 23:55:37 -08:00
John Bender
2abdbf3416 white space in the init core test 2011-02-26 23:29:14 -08:00
John Bender
b246fb48fa tests for data url init default 2011-02-26 23:27:41 -08:00
Bra1n
c828cf1f64 prevent setting the data url on pages where it is already set 2011-02-26 23:25:07 -08:00
John Bender
598668a2a1 removed spurious file 2011-02-26 01:15:04 -08:00
John Bender
86eceb03fc added two helpers and tests for proper url stack history traversal 2011-02-25 23:24:03 -08:00
John Bender
20dce2ce42 small refactor to simplify newActiveIndex tracking 2011-02-25 23:24:03 -08:00
John Bender
86befdeaed removed unused var/global from navigation 2011-02-25 23:24:03 -08:00
Bra1n
6152e8f511 fixed page history direction search for duplicate entries 2011-02-25 23:24:03 -08:00
Kin Blas
3f627acba8 - Added support for a vmouseevent that is triggered when a touch results in the window scrolling.
- Modified the button markup behavior so that it uses the virtual mouse events and adds the ui-btn-active class on vmousedown, and then removes it on vmousemove or vmouseup.
2011-02-25 22:20:04 -08:00
Kin Blas
730dae0fc1 Merge branch 'master' into fastclick 2011-02-25 20:41:09 -08:00
Kin Blas
b4a8222366 Fix for the remainder of issue 991.
- Looks like the "Intelligent Guess" default behavior of the $.ajax() method in jQuery 1.5.1 guesses wrong when attempting to load an HTML file via a file:// URL. It's guessing that it is an XML document, so it ends up passing in the DOM document node to our success callback, instead of the expected HTML as text (responseText), so our callback code does not behave correctly. We can get around this by simply specifying dataType:"html" at the time we make a request.
2011-02-25 18:23:26 -08:00
John Bender
37d22dd105 fixed multiple date picker caused by unscoped selector, thanks to Matt Rosenquist. Fixes #972 2011-02-24 23:05:06 -08:00
John Bender
0691c2284b date picker ui whitepspace 2011-02-24 22:54:17 -08:00
John Bender
497f45ae81 Merge branch 'checkboxradio-typo-bugfix' of https://github.com/martinkou/jquery-mobile into martinkou-checkboxradio-typo-bugfix 2011-02-24 22:22:11 -08:00
Kin Blas
16fe54e3d3 Merge branch 'master' into fastclick 2011-02-24 16:18:14 -08:00
Ernesto Jiménez
eb53dd8f93 Extra testcase to avoid breaking the search filter with dividers expected behaviour in future refactorings 2011-02-24 12:20:21 +00:00
John Bender
338e5cb96a movied variables in listview filter to camel case convention used elsewhere 2011-02-24 00:07:27 -08:00
John Bender
1b32fdde63 fixed failing tests and removed test interdependency 2011-02-24 00:02:00 -08:00
Kin Blas
ec01fd9df9 Merge branch 'master' into fastclick 2011-02-23 23:58:02 -08:00
Kin Blas
3cb884b6d7 Added scrollThreshold and checks for page[XY]Offset changes within handleTouchMove to catch the case where the window scrolls, but the scroll events are not dispatched till after touchend. Note that page[XY]Offset is not updated before touchend on every platform, but it does seem to update on iOS which is where we need it. 2011-02-23 23:53:17 -08:00
Ernesto Jiménez
dae3e2fa74 Proper support for lists with search filter and dividers 2011-02-23 17:42:47 +00:00
Jim Hoskins
cbd890daa6 Changed <ul> to <ol> in html content formattic doc 2011-02-23 01:27:12 +08:00
Jim Hoskins
1b588fa76d Updated grammatical errors in docs
Changed "an" to "a" where appropriate
2011-02-23 01:27:12 +08:00
Kin Blas
6d7bce63b6 Merge branch 'master' into fastclick 2011-02-22 08:57:28 -08:00
John Bender
62bd20adb9 fixed build.xml css order Fixes #1075 2011-02-21 08:55:16 -08:00
Martin Kou
796c8642bd Fixed a typo in checkboxradio which causes JS errors. 2011-02-20 18:32:02 -08:00
John Bender
aacb0751be fixed build.xml to match js/index.php and the Makefile 2011-02-20 18:23:31 -08:00
John Bender
421dc352c0 corrected js test includes and simplified to prevent further breakages 2011-02-20 18:07:17 -08:00
John Bender
2704975095 re arranged tests for mobile init 2011-02-20 18:07:17 -08:00
John Bender
a64a44504b moved page additions after gradeA check in init and removed from core 2011-02-20 18:07:17 -08:00
John Bender
b21531a0ac left gradeA in core, added todo for page element addition refactor 2011-02-20 18:07:17 -08:00
John Bender
891f9b1b07 moved initialization down in the build order, still requires some small refactoring 2011-02-20 18:07:17 -08:00
Kin Blas
de0f12f164 Merge branch 'master' into fastclick 2011-02-18 18:05:38 -08:00
Kin Blas
48389d1ee1 Fixed bad variable name in teardown method of jquery.mobile.vmouse.js. It was causing an error that made one() bindings fail to fire off their handlers.
Modified select and slider code to use virtual events.

Modified tap and taphold code to make use of the virtual events.
2011-02-18 17:39:04 -08:00
scottjehl
b6b7aebe14 null hrefs should just preventDefault and return, rather than returning false. Fixes #1118 2011-02-18 16:46:28 -05:00
scottjehl
00a8082acc updated to jQuery 1.5.1 RC 2011-02-18 16:43:20 -05:00
Kin Blas
c063e1ce65 Changed "click" bindings to "vclick" for listview and anchors. 2011-02-18 12:40:30 -08:00
Kin Blas
807be39d83 Added jquery.mobile.vmouse.js to the list of scripts to include. 2011-02-18 12:38:51 -08:00
Kin Blas
815c8c3631 Moved experiments/fast-click/jquery.mobile.mouse.js to js/jquery.mobile.vmouse.js. 2011-02-18 12:37:02 -08:00
Kin Blas
981ec95d60 Merge branch 'master' into fastclick 2011-02-18 12:32:38 -08:00
scottjehl
670ec15661 switched collapsibles over to tap event. Fixes #1056 2011-02-18 12:43:34 -05:00
Kin Blas
dfdb4850b2 Fixed an infinite loop problem when using $().parent() to crawl up the hierarchy. 2011-02-18 08:51:36 -08:00
Kin Blas
f7d576b1b5 Slight re-write of code to allow for the use of bind(), delegate(), and live(). 2011-02-17 13:53:53 -08:00
Kin Blas
0850558a31 Merge branch 'master' into fastclick 2011-02-17 13:51:02 -08:00
Ashley Streb
767c35c629 Updating docs to specify that the default transition for dialogs is 'pop' 2011-02-16 22:52:44 -08:00
John Bender
709d12e4d6 resolved conflict for default dialog transition to pop 2011-02-16 22:52:14 -08:00
John Bender
47a98f09c8 test for thumb styling with listview('refresh') 2011-02-16 22:35:48 -08:00
unknown
ee1a8c1977 listview thumb styling via listview('refresh'). Fixes 947 2011-02-16 22:25:37 -08:00
John Bender
61b7b2e002 removed unnecessary var declaration 2011-02-16 19:55:01 -08:00
Ernesto Jiménez
9aa1a38a32 Reviewing the code realised that this var was implicitly declared as global. 2011-02-16 22:22:28 +00:00
John Bender
8ea018147c removed old test pages for navigation and one unneeded test 2011-02-15 23:01:22 -08:00
John Bender
bec975ad3a added tests for data url regexs 2011-02-15 22:59:54 -08:00
John Bender
3759f87173 reverted to regex method of retrieving the data-url from ajax loaded content to guarantee base is set, regex's courtesy of jblas 2011-02-15 22:24:15 -08:00
tschaub
899e9581e9 P free hamster. 2011-02-16 05:55:21 +08:00
Kin Blas
b2ca132fb9 Merge branch 'master' into fastclick 2011-02-15 13:47:04 -08:00
Kin Blas
dc0608d244 - Fixed some jslint warnings.
- Fixed "event" typo in the mouse click cancel callback.
2011-02-15 10:20:21 -08:00
John Bender
b1c8621309 small tweak to wait for page load in navigation tests 2011-02-14 23:34:48 -08:00
John Bender
05e7bbac45 fixed broken listview test in chrome and dialog test redirect 2011-02-14 23:19:56 -08:00
John Bender
f301018c1c added an extra parameter to data url element to match reported issue in pull request 2011-02-14 17:33:06 -08:00
John Bender
47d4a1fb0a refactor/simplification of fix for broken regex matching data url in ajax loaded pages 2011-02-14 17:25:23 -08:00
John Bender
5a23721a92 whitespace fix for navigation 2011-02-14 17:23:25 -08:00
Ernesto Jiménez
09213738f3 Regular expression / data-url="(.*)"/ doesn't stop at the end of the attribute
but the last quotes in the HTML.

I have replaced wildcard . with [^"] to fetch only the attribute content.
2011-02-14 16:33:58 +00:00
chrsMon
bbee2fdb2b Fixes issue #1036 partially offscreen rendering of select menu
https://github.com/jquery/jquery-mobile/issues/issue/1036

The css styles the select menu with a width of 80% with a max-width of
350px. This fix checks if width of select menu is less than max-width.
If that is the case the select menu is centered on screen. If not it
checks if the rigth or left side of the select menu are outside the
viewport and if so moves the select menu inside the viewport with a 30px
tolerance.
2011-02-13 21:11:53 +01:00
Kin Blas
d40868370a Removed obsolete file jquery.mobile.click.js. 2011-02-11 15:07:23 -08:00
Kin Blas
4acba083f2 Merge branch 'master' into fastclick 2011-02-11 15:04:41 -08:00
Kin Blas
6ebf6b78f6 Added support for a click block list. 2011-02-11 15:03:36 -08:00
John Bender
265f6d9ca8 switch instances of ok to same for test failure clarity 2011-02-10 23:24:49 -08:00
John Bender
743c6c9d9c fixed broken listview test and added a bunch of semicolons 2011-02-10 23:01:30 -08:00
Michael O'Hearn
554bb1e7e3 fixed a typo 2011-02-10 22:04:15 -08:00
Kin Blas
b5d417a9bb Added a reset timer for unblocking the mouse event handlers. This was necessary because Blackberry does not dispatch a touchend event if the touch resulted in a scroll of the page. 2011-02-10 17:10:39 -08:00
Kin Blas
9968c02351 Checkpoint checkin.
- Added support for dispatching virtual events from touch based events.
- Now we copy over the x/y values from original events on to the virtual ones.
- We still need to figure out how to cancel the mouse events that fire after the touchend, and do some clean up in the cases where a scroll happens which prevents some mouse/touch events from being generated, like on Blackberry OS 6.
2011-02-10 14:04:21 -08:00
Kin Blas
518f2175f1 Initial checkin of jquery.mobile.mouse.js. This version doesn't handle touch events yet. 2011-02-09 23:57:29 -08:00
Kin Blas
c8c5830e09 Merge branch 'master' into fastclick 2011-02-09 23:51:49 -08:00
Kin Blas
b696bda01b Cleaning up a bunch of jslint errors and warnings. 2011-02-08 13:13:59 -08:00
John Bender
3ca20f8362 resolved small conflict in test fixtures 2011-02-07 22:33:49 -08:00
Kin Blas
1c9414d030 Fix for issue #997 - Syntax Error (line 1711) alpha 3
- Escaped the slash characters inside the brackets of the href regexp.
2011-02-07 11:43:55 -08:00
John Bender
2a1935caf5 Revert "added autoInitialize documentation"
This reverts commit 7da26e1974.
2011-02-07 08:11:57 -08:00
John Bender
089f2b9753 rewrapped the media core tests in an immediate function 2011-02-06 23:25:03 -08:00
John Bender
65513add72 fixed media core failing tests 2011-02-06 23:24:09 -08:00
John Bender
5d7938cb4e minor indentation issue and mocking to fix test failures 2011-02-06 23:06:33 -08:00
John Bender
d4fd6d06dc rewrapped event core tests in immediate function 2011-02-06 22:58:25 -08:00
John Bender
487e04af02 removed useless test in for dialogs added simple replacement 2011-02-06 22:55:29 -08:00
John Bender
099dfbd610 Merge branch 'master' of https://github.com/TrippingTheBits/jquery-mobile into TrippingTheBits-master 2011-02-06 21:44:35 -08:00
John Bender
a025c0bffc backed out autoInitialize moving to feature request backlog 2011-02-06 21:18:51 -08:00
John Bender
cbd1eb7ac9 moved page and dialog styling to qunit css to remove repition and make sure that its consistent across pages 2011-02-05 21:22:50 -08:00
Ryan
ee56af59af Added data-dividertheme to docs. 2011-02-05 20:08:23 -05:00
Alex Kovar
910c4d43f0 fixed small display glitch on navigation tests 2011-02-05 14:39:11 -06:00
Alex Kovar
d970c20e4c fixed error when from is undefined 2011-02-05 14:03:31 -06:00
Alex Kovar
79929949db fix issue with failed page load not releasing page transition lock 2011-02-05 14:00:31 -06:00
scottjehl
fb9c7d03b3 Merge remote branch 'origin/master' 2011-02-04 12:45:34 -05:00
scottjehl
98842a337c critical bug fix for C-Grade support. Ensures page is not hidden on C-Grade browsers. Fixes #975 2011-02-04 12:45:26 -05:00
toddparker
d91d83887e Re-compressed the 18px icons to dramatically reduce bandwidth - 150k+ to 4k. Fireworks - what were you thinking last night? 2011-02-04 11:25:50 -05:00
scottjehl
89cb6d455f typos in page template urls. 2011-02-04 10:13:56 -05:00
jeresig
ac519ba754 Simplifying the build script some more. 2011-02-04 09:38:21 -05:00
scottjehl
a1867eef58 found a dead link that managed to take down our multipage demo. 2011-02-04 08:08:32 -05:00
John Resig
950784e70f Make some tweaks to the deploy script. 2011-02-03 18:57:53 -05:00
John Resig
24d324c443 Tagging the 1.0a3 release. 2011-02-03 18:39:48 -05:00
toddparker
c618ef4251 Added bg color for demo pages 2011-02-03 18:38:51 -05:00
toddparker
6c63bc699b Merge remote branch 'origin/master' 2011-02-03 18:34:55 -05:00
toddparker
0aeb20b180 home button fixes 2011-02-03 18:34:35 -05:00
scottjehl
8dc5d0d79e fixed a regression in some android 2.2 devices where checkboxes were toggling on and off on every click. Fixes #935 as well. 2011-02-03 18:28:32 -05:00
scottjehl
0745af1292 typo in code example. Fixes #966 2011-02-03 17:49:58 -05:00
toddparker
2423c3cb59 Device image 2011-02-03 17:31:56 -05:00
toddparker
fb1b5c0c5f Merge remote branch 'origin/master' 2011-02-03 17:30:14 -05:00
toddparker
9806cdc221 Added a home link to all pages and changed the header bar theme swatch to b globally 2011-02-03 17:29:48 -05:00
scottjehl
d123334ef0 Merge remote branch 'origin/master' 2011-02-03 17:22:34 -05:00
scottjehl
bd79c32c9a Page min-height was being calculated with JS and it was far too tall. This moves the values into CSS with values that are aimed towards iPhone (as this is addressing an iPhone transitions issue with the address bar show/hide). 2011-02-03 17:22:23 -05:00
John Resig
ba159afc88 Upgraded YUI Compressor to 2.4.4. 2011-02-03 17:03:03 -05:00
toddparker
c61704146e Removed experimental section with API browser because it's outdated 2011-02-03 16:37:43 -05:00
toddparker
d79d0e3c45 Updated sample page templates and docs to mobile a3 and jquery 1.5 2011-02-03 16:36:21 -05:00
toddparker
28e1187b08 Added 1px extra padding to icon only buttons. Adjusted offset for clear button on search inputs accordingly. 2011-02-03 15:04:15 -05:00
toddparker
4cb2eab62b Icon source PSD 2011-02-03 14:17:28 -05:00
toddparker
1db7cfb360 New high-res logo with better compression 2011-02-03 14:17:06 -05:00
toddparker
6e50626914 Alpha 3 flag 2011-02-03 14:09:55 -05:00
toddparker
3f87c8f34e Updated Valencia with new icons 2011-02-03 14:09:40 -05:00
toddparker
928562dd92 Created demo buttons for the new home and search icons 2011-02-03 13:38:25 -05:00
toddparker
8b728d8df7 Re-named the ui-icon-search used on search inputs to ui-icon-searchinput so I modified the script for search input to reflect this change 2011-02-03 13:38:07 -05:00
toddparker
59b7d74026 Added new home and search icon classes. Re-named the ui-icon-search used on search inputs to ui-icon-searchinput 2011-02-03 13:37:39 -05:00
toddparker
cd14e8f3fd Added new home and search icons to sprite. 2011-02-03 13:37:06 -05:00
toddparker
4f761d1fd0 Removie site AI, not needed in Git. 2011-02-03 10:00:35 -05:00
toddparker
985cc19934 Added h2 to intro page 2011-02-03 08:17:18 -05:00
toddparker
9e95212789 Added firefox mobile to the list of supported browers for alpha 3. 2011-02-03 08:15:14 -05:00
toddparker
faf36d02a1 Fixed broken footer example, added a few more color variations. 2011-02-03 08:11:57 -05:00
scottjehl
1c49c96b6c added data-rel back attrs to dialog sample buttons 2011-02-03 02:59:30 -05:00
scottjehl
16c743ac39 In android 2.1 and 1.6, the split button anchor needed to be a sibling of the overall row button div in the LI. It seems this may be due to the event handlers bound to the div button, but I'm not entirely sure that's it. Either way, this workaround is straightforward and does not introduce issues in other browsers, so aside from the additional overhead involved in re-appending the links to the LIs, this fix is good to go. Fixes #874 2011-02-03 02:57:59 -05:00
John Bender
a79799e3b3 added step tests for keypress, removed data-step attribute check in favor of html5 range step attribute 2011-02-02 23:46:20 -08:00
John Bender
3a24aa4de6 Merge branch 'external-clear' of https://github.com/ajkovar/jquery-mobile into ajkovar-external-clear 2011-02-02 23:15:58 -08:00
John Bender
7da26e1974 added autoInitialize documentation 2011-02-02 23:03:07 -08:00
John Bender
8bfb687d2c whitespace in core tests 2011-02-02 22:39:55 -08:00
scottjehl
67987925b4 property should not be defined in $.mobile. 2011-02-02 20:02:04 -05:00
Alex Kovar
e3a5dd5b09 fixed base undefined error in firefox 2011-02-02 13:10:40 -06:00
Alex Kovar
9970d76a02 remove extra timeout 2011-02-02 12:59:01 -06:00
Alex Kovar
2754087fc7 externalize $.mobile.urlHistory.clear function 2011-02-02 12:58:27 -06:00
scottjehl
b464b1bcec added a workaround for the selectmenu plugin's nativeMenu in Opera. Opera browsers improperly support opacity on select elements, either hiding the menu button but not its text (in Mini), or hiding the text but not the button. Either way, it makes our hidden-select trick look really bad, or unusable. This workaround adds a class to the select in Opera, and makes the native menu visible. In the case of a false positive, that's not a bad outcome. Fixes #897 2011-02-02 12:04:18 -05:00
scottjehl
110ba9e98e remove active button class on touchmove. This could technically use some tolerance, but it goes back to active if the select ends up opening, so I think it's fine as is, without adding more logic. Credit goes to @davibe for the change. 2011-02-02 01:41:07 -05:00
Davide Bertola
08b17e71cb Make button look pressed on touchstart event 2011-02-02 14:28:58 +08:00
John Bender
107fc25838 minor simplification to the on ready init 2011-02-01 22:04:05 -08:00
John Bender
0a7bdfd632 whitespace in mobile core 2011-02-01 22:04:05 -08:00
unknown
9caaa9cfde Added ability to control if $.mobile will automatically load first page/pages on dom ready using $.mobile.autoInitialize. 2011-02-01 22:04:05 -08:00
scottjehl
675deb1282 Merge remote branch 'origin/master' 2011-02-02 00:59:59 -05:00
scottjehl
c3b6e86e61 added a test to make sure the select element is inside the div-based button when native option is true 2011-02-02 00:59:54 -05:00
scottjehl
12b4506a0b removed a test for a case that didn't seem to be desirable, and was not currently true 2011-02-02 00:59:18 -05:00
scottjehl
2ff400bc98 fixed a test for div buttons in native select menus 2011-02-02 00:57:34 -05:00
scottjehl
746420de40 removed test as it was looking for markup that are no longer exists when the native select menu option is true 2011-02-02 00:41:25 -05:00
scottjehl
2061b5bc2b setting opacity to slightly greater than 0 fixes native selects in Firefox Mobile. At this point, the critical issues mentioned in 897 appear to be resolved. Fixes #897. 2011-02-02 00:36:41 -05:00
John Bender
4ddc5c7dd5 Merge branch 'changepagefix' of https://github.com/ajkovar/jquery-mobile into ajkovar-changepagefix 2011-02-01 21:36:24 -08:00
scottjehl
a763bade42 whitespace only 2011-02-02 00:33:53 -05:00
scottjehl
4a6ec54472 no default prevention is needed in native mode, as button is a div rather than an anchor. Also bound to change to remove the active class, which makes the native menu version's button state behave better in Opera Mobile 10.1 2011-02-02 00:25:12 -05:00
scottjehl
4023e1bf68 select menus also need blurring on transition. 2011-02-02 00:11:16 -05:00
scottjehl
cfceeced2e wrapped if condition order 2011-02-02 00:02:59 -05:00
toddparker
d76234b397 Content tweaks for form theme page, fixed a few broken links 2011-02-01 22:55:10 -05:00
toddparker
1644bca45b Added data-role="button" attributes to links because these were rendering as links only. Added link to form theming page. 2011-02-01 22:38:22 -05:00
toddparker
cd17ceda97 Updated the status of alpha 3 borwser support page 2011-02-01 22:30:45 -05:00
toddparker
4faa48288f Merge remote branch 'origin/master' 2011-02-01 22:04:53 -05:00
scottjehl
91ee3fbfca Merge remote branch 'origin/master' 2011-02-01 21:45:33 -05:00
Jesse Streb
e15ce80702 moved the setTimeout within the transition to be in the success handler of the ajax response. We now wrap the transitionPages that we call after injecting the new page into the DOM within the setTimeout which fixes the same issue but limits to pages that are injected into the DOM and makes it more clear why we have the setTimeout 2011-02-01 21:44:23 -05:00
scottjehl
0648247260 further shielding of non-native actions from native menus, and styled select within a parent div rather than anchor, when native is used. 2011-02-01 21:03:41 -05:00
scottjehl
36301b70bf optimizations to prevent unnecessary overhead of menu markup creation or manipulation when native select option is true. 2011-02-01 20:49:07 -05:00
Kin Blas
179061a4c9 Fix for Issue #678 - Select list offset above top of screen.
- Wait for the "silentscroll" event before setting focus. This avoids the "feature" where the browser will automatically offset rendering of a container to make sure whatever has focus is visible.
2011-02-01 17:14:15 -08:00
scottjehl
18f349bf37 make sure non-created pages are hidden. Fixes #946 2011-02-01 20:03:49 -05:00
scottjehl
70f4acdd04 selectmenu: moved the list building logic over to use an arrays and joins to speed things up. 2011-02-01 19:28:30 -05:00
scottjehl
698f7fd255 updated attribute for new option name 2011-02-01 15:50:40 -05:00
Alex Kovar
5b4dc3ab4a fixes for jquery.mobile.navigation.js to accommodate asynchronous changePage 2011-02-01 14:08:20 -06:00
Alex Kovar
eed66df3da testDone instead of testStart 2011-02-01 14:08:19 -06:00
Alex Kovar
d4c8c3cee2 fix for $.mobile.urlHistory test 2011-02-01 14:08:19 -06:00
Alex Kovar
aea4bfabfc fix for path.get test 2011-02-01 14:08:19 -06:00
Alex Kovar
1eed03cf0c Fixed issue with simultaneous page transitions. Closes gh-856
Conflicts:

	js/jquery.mobile.navigation.js
	tests/unit/navigation/navigation_transitions.js
2011-02-01 14:07:17 -06:00
scottjehl
aad8ac174a Removed the extra ways to set nativeMenu option in select plugin. Now like other plugins, the option is both available through the plugin's options (nativeMenu) or through a data-attribute (data-native-menu), which is automated through the camelcase option name. Unit tests updated 2011-02-01 13:27:35 -05:00
scottjehl
3f938fd2f9 fixed bug where a preset data-url was being prefixed by the base url, rather than replacing the whole hash. Fixes #591 2011-02-01 12:32:02 -05:00
scottjehl
6855363375 changing this selector to be more specific prevents an error in IE 7 (and win mobile). Support is coming :) 2011-02-01 11:53:32 -05:00
scottjehl
5e6e6019eb updated to jQuery 1.5 2011-02-01 11:37:00 -05:00
scottjehl
ae8964f7de fixed a bug in the class syntax 2011-02-01 10:41:46 -05:00
scottjehl
4930a42873 moved over to our class-based media query 2011-02-01 10:40:18 -05:00
John Bender
992fba1e7c fix for core tests. Note: pages can only be one level below the mobile viewport or bad things happen 2011-01-31 23:09:36 -08:00
scottjehl
e0d419d001 updated some docs pages to mention data-ajax="false" attribute on links. 2011-02-01 01:20:47 -05:00
Mark Schuette
f640646877 added the ability to use the default behavior of links with data-ajax=false 2011-02-01 14:13:04 +08:00
scottjehl
0572757af3 updated docs to describe new listview li-level data-theme option 2011-02-01 01:07:17 -05:00
chrisvire
d3376b7b5c Allow for data-theme attribute on list item 2011-02-01 14:03:36 +08:00
scottjehl
a5c8f86d10 links with no href attribute will not throw an error when clicked. Fixes #932 2011-02-01 01:01:41 -05:00
scottjehl
e00f007792 missed a name change in the unit test 2011-02-01 00:52:31 -05:00
scottjehl
da1c615c8a inset listviews with a single item will get appropriate visual treatment. Fixes #469 2011-02-01 00:37:24 -05:00
scottjehl
eb2845d1dc fixed one additional back button condition mentioned in issue #930 where the back button is added to a page that is directly linked with no hash. All navigation tests passing. https://github.com/jquery/jquery-mobile/issues/issue/930 2011-02-01 00:32:59 -05:00
scottjehl
6eefb23406 changed the name of urlHistory.listeningEnabled to urlHistory.ignoreNextHashChange. The name more accurately reflects the purpose of this internal toggle. Unit tests included. Also Fixes #930 2011-01-31 23:56:56 -05:00
scottjehl
92f863d062 typo in test description 2011-01-31 23:49:30 -05:00
scottjehl
4c4ccbd971 removed the position plugin script references 2011-01-31 23:48:13 -05:00
scottjehl
35b1df81e7 changePage was firing more than once because hash listening was not disabled long enough to prevent listening of the resulting async hashchange event after setting location.hash. This change makes urlHistory.listeningEnabled act as an internal toggle (as it used to), so it is only meant for ignoring a single hashchange event. A future change might be appropriate to change its name to something more like "ignoreNextHashChange".
Unit test included.

Fixes #930
2011-01-31 23:47:01 -05:00
scottjehl
3162428558 added hashListeningEnabled global flag. This is meant as a global config option for end users to disable hashchange listening (as opposed to urlHistory.listeningEnabled, which is an internal toggle). Unit test included. Fixes #748 2011-01-31 23:25:36 -05:00
scottjehl
3b5b615451 whitespace and code style 2011-01-31 22:43:17 -05:00
scottjehl
c11bdcca0d Merge remote branch 'origin/master' 2011-01-31 22:11:32 -05:00
scottjehl
a51adb98c4 updated the readme with more helpful information 2011-01-31 22:11:28 -05:00
Jesse Streb
34260225a7 Removing height: 120% as it appears to have caused unnecessary flickering and by setting the min-height of each page creation is unnecessary. 2011-01-31 21:42:38 -05:00
scottjehl
d509404b72 Merge remote branch 'origin/master'
Conflicts:
	js/jquery.mobile.navigation.js
2011-01-31 17:33:25 -05:00
scottjehl
b3a8230638 This commit includes simplifications to the hashchange event handling & changePage logic, which results in a few bug fixes and removal of some previous limitations. Details:
- jquery.mobile.core.js  no longer creates pages from every page and dialog in the DOM automatically at domready. Instead, pages are created as they are referenced via changePage, which can speed up pageload in multi-page documents, and means local "dialogs" referenced via data-rel="dialog" no longer need a data-role="dialog" attribute when served.

- in changePage, "from" is now allowed to be undefined. This simplifies the logic involved in showing the first page, which never had a "from" page, and previously needed a custom pageChange workaround to accommodate that.

- The pageshow event is no longer used as a callback for returning false and preventing the $.mobile.activePage from being set to the newly shown page. In other words, a page always becomes $.mobile.activePage once its shown now (the only reason this was optional before was because of a dialog restriction that's no longer true)

- the hashchange event logic for showing a particular page is now greatly simplified. It either shows the page referenced in location.hash, or if there's no hash it changes to the first page in the dom. This means every pageshow (including the first one) now uses pageChange internally.

- the hashchange event listener is no longer disabled when ajaxEnabled == false. Doing this before prevented local non-ajax page navigation from working properly. To disable hashchange listening, use $.mobile.urlHistory.listeningEnabled. We might consider defining (or moving) this on the $.mobile hash later as well for easier access.

- The internal var $.mobile.startPage is now $.mobile.firstPage, because it's not necessarily the page you started on, but merely a reference to the first "page" in the dom.

- Back buttons are auto-added to every page after the first one you first visit (this includes generated pages, such as those in a multipage document or nested listviews). Keep in mind that a "back" button does not take the place of a standard "home" link, and when building an app with jQuery Mobile, it's good to make use of both (particularly on deep-linked pages). Fixes #908
2011-01-31 17:05:57 -05:00
scottjehl
f842b46474 added data-rel attrs to close buttons 2011-01-31 17:05:41 -05:00
scottjehl
44806bcf58 added a dialog to the demo 2011-01-31 16:51:20 -05:00
scottjehl
b112b6ea84 updated doc version # 2011-01-31 16:45:41 -05:00
toddparker
9337a3acc9 Deleting design files. 2011-01-31 11:05:44 -05:00
toddparker
3420389be8 Removing some design source files from Git b/c it's slowing down the repo. 2011-01-31 10:57:00 -05:00
John Bender
591593dd49 misplaced semicolon 2011-01-31 00:13:01 -08:00
John Bender
770ff8edfb added test to check that changePage is called when a embedded page is referenced and rel=external is defined 2011-01-31 00:01:17 -08:00
adammessinger
cb4f540645 Fixes #900 - buttons with rel attribute set to external don't show active state 2011-01-30 23:43:53 -08:00
John Bender
8b5f083974 whitespace and missing semicolon in setTimeout for non webkit animationComplete 2011-01-30 22:03:30 -08:00
Alex Kovar
4830ac9e9b tweak for animationComplete 2011-01-30 23:00:51 -06:00
Alex Kovar
62af59983f made $.fn.animationComplete behave more consistently between webkit/non-webkit. Closes gh-918 2011-01-30 17:06:33 -06:00
scottjehl
c470278a62 added data-direction to "back" link in content, in case the deep-linked page is opened first. 2011-01-30 16:54:33 -05:00
scottjehl
c0585948bb set a max width on the datepicker for desktop preview 2011-01-30 15:57:47 -05:00
scottjehl
2f9d1bce33 position loading message either center screen (if scrollTop supported), above active clicked button (if defined), or 100px off the top. Fixes #892 2011-01-30 13:34:45 -05:00
John Bender
badefe1ee1 whitespace and missing semicolon fix 2011-01-30 00:19:15 -08:00
John Bender
202ed5ff2c corrected failing tests in navigation 2011-01-29 22:50:48 -08:00
scottjehl
db422561f7 Merge remote branch 'origin/master' 2011-01-29 10:30:53 -05:00
scottjehl
29fbc9c3c5 removed the Position plugin and modified selectmenu to position its menu without it. Removes off about 3-4kb after minify. 2011-01-29 07:15:40 -08:00
scottjehl
58cb69788c bound slider drag event handling to touch and mouse events, which allows us to support Opera Mobile and others. Fixes #852 2011-01-28 15:47:03 -08:00
Kin Blas
f738dcbbcc More work-in-progress changes. 2011-01-28 15:39:51 -08:00
scottjehl
b4c8e2f98e moved search input clear buttons over to "tap" event 2011-01-28 15:20:56 -08:00
toddparker
b919b2af5b Cut down file size by removing extra screenshots 2011-01-28 18:06:22 -05:00
toddparker
d6ee8138bc Added all the design source files for the mobile widgets, icons and site 2011-01-28 17:52:59 -05:00
scottjehl
1b72203096 checks and radios no longer check when a scroll starts on top of them. Fixes #893 2011-01-28 14:39:58 -08:00
scottjehl
b10c5c04c2 don't destroy dialogs on close. Now same-page dialogs can be reopened after close, and selects don't need to unbind dialog change events to override the destroy. 2011-01-28 14:30:24 -08:00
Kin Blas
a4a18c9934 Merge branch 'master' into fastclick 2011-01-28 13:05:05 -08:00
Kin Blas
3c6cce2322 Checking in the start of an experimental plugin for speeding up click events while retaining the firing order of mouse events. 2011-01-28 13:04:18 -08:00
adammessinger
1585f7d729 Fix for issue #890: missing -moz-linear-gradient parameters in theme CSS 2011-01-29 00:16:25 +08:00
John Bender
e35952346f whitespace correction for docs 2011-01-27 23:48:06 -08:00
John Bender
2dfa09bcf7 updated docs to include $.mobile.nativeSelectMenus 2011-01-27 23:42:56 -08:00
John Bender
e5fd56985c added global native select configuration, docs to follow. Also corrected selector error when reloading a lib in tests 2011-01-27 23:20:57 -08:00
John Bender
1afb3a08f0 whitespace corrections in core 2011-01-27 22:53:17 -08:00
John Bender
3197f7e61a corrected a duplicate id which was causing the two similarly identified selects to have doubled menu page header titles 2011-01-27 22:50:40 -08:00
John Bender
d1ab6bb027 fixed broken select menu test 2011-01-27 22:44:23 -08:00
toddparker
5b7201ef48 Added documentation and demos for the new data-native="true" option that speeds up performance of selects by using the browser's native menu (thanks John Bender!) 2011-01-27 13:40:20 -05:00
John Bender
b1d356bfd7 Merge branch 'nativeselectmenu' 2011-01-27 09:50:40 -08:00
Jesse Streb
d3077b491c [455] Am now setting the min-height of a page so that the address bar can always be hidden on a silent scroll. This helps our transitions feel smoother as the page does not jump down if the page is not taller then 100% of the window. On orientation change we also update this value. 2011-01-27 12:28:04 -05:00
Jesse Streb
378fb51225 [#455] For the transitions we now have overflow: hidden in order to limit the flickering. We always scroll to the top before we start our transitions in order to make it scroll. The CSS changed to have overflow: hidden during transitions and have a height that is larger enough to keep the address bar hidden. 2011-01-27 12:28:04 -05:00
scottjehl
e2c66fad49 Merge remote branch 'origin/master' 2011-01-26 22:15:10 -08:00
John Bender
d94e25acd6 merge from origin selectmenu fixes 2011-01-26 21:35:00 -08:00
John Bender
b81248f238 fixed android select menu failure with a delay. I'm doubtful that this is the best solution to the problem but the cause was the click being passed through to the screen or the select menu itself a split second after opening. Open to alternatives. Fixes #873 2011-01-26 21:20:40 -08:00
scottjehl
3ade4e3448 removed outlines on active, focus states in favor of theme hover states 2011-01-26 22:46:06 -05:00
scottjehl
df05143371 edited some nav model info - needs filling out, but outdated info is removed now at least 2011-01-26 22:44:32 -05:00
scottjehl
9a492d06fd allow form data to be passed to $.mobile.changePage as a query string or object. 2011-01-26 22:04:36 -05:00
scottjehl
61bee4e276 fixed issue with select menus not opening again after you close them. 2011-01-26 21:02:08 -05:00
scottjehl
7ba7315e27 added markup example to datepicker documentation 2011-01-26 20:53:13 -05:00
scottjehl
b50d6a74c2 improved datepicker usage instructions and linked it up from the forms index under "experimental" 2011-01-26 20:48:25 -05:00
scottjehl
4e0d54a629 refactored Maggie's datepicker edits so that they overwrite & extend the UI's datepicker plugin and automatically convert type=date inputs to datepickers when the scripts are included. These changes make the datepicker plugin good enough to offer as an optional extension to jQuery Mobile (but not include it in the build by default, as it needs to be rewritten first - far too heavy to include unless you need it!). 2011-01-26 20:28:52 -05:00
scottjehl
c91ca3a129 removed an old demo 2011-01-26 20:23:10 -05:00
scottjehl
32a0d2fa4c unit test - initial page should have no back button 2011-01-26 18:57:34 -05:00
scottjehl
d1976fa265 removed click handler on back button - used data-rel='back' instead. 2011-01-26 18:57:14 -05:00
scottjehl
423e6fb276 added complete test coverage for $.mobile.urlHistory methods and properties 2011-01-26 18:51:22 -05:00
scottjehl
6a1cbc0953 added unit tests for path.isRelative. Test coverage for $.mobile.path is now complete! 2011-01-26 18:07:21 -05:00
scottjehl
3484c401c2 added unit test for path.hasProtocol 2011-01-26 18:02:15 -05:00
scottjehl
20c86f655e combined path.isExternal tests 2011-01-26 17:58:16 -05:00
scottjehl
fa2b1903de only add a back button when there's a history entry to return to. 2011-01-26 17:56:20 -05:00
Kin Blas
63a82967fa Temporary workaround for Issue 785 - jQM text input forces use of iOS auto-correction.
- Added code to enhanceControls() that sets the autocorrect and autocomplete attributes on all inputs of type="text" to "off". This basically disables the use of autocorrection on iOS.

- Modified the code in enhanceControls() to cache the form controls query to reduce the number of times we search for controls in the current page.
2011-01-26 14:31:47 -08:00
scottjehl
700ca984bb finished up some navigation changes. Also added and documented a data-rel="back" attribute, which can be applied to links to enhance them to mimica the browser's back button (good for closing dialogs). In these changes, dialogs now create a history hash entry, and the back button works better for closing dialogs. Also, nested list deep-linking is restored after a recent regression. Tests in Navigation and Listview are passing. Fixes #885. Fixes #866. 2011-01-26 14:38:17 -05:00
scottjehl
2c6cc45ad0 incomplete, but close to fixing the dialog-create-history entry piece. Also includes fix for nested-listview deep linking regression. 2011-01-26 14:27:10 -05:00
scottjehl
c3ed538542 unit test for path.isExternal 2011-01-26 08:41:35 -05:00
scottjehl
1156045e0c unit test for path.stripHash 2011-01-26 08:39:35 -05:00
scottjehl
ca036b1b5e added unit test for path.clean 2011-01-26 08:35:01 -05:00
scottjehl
c3a8630605 unit test for path.makeAbsolute 2011-01-26 08:25:20 -05:00
John Bender
244e46b8ed data-native attribute check for native select menus Fixes #847 2011-01-25 23:12:20 -08:00
John Bender
aa234961cc whitespace correction on rebase fix 2011-01-25 22:50:55 -08:00
scottjehl
0cdf9df11c added option for useNativeMenu. Should be updated so, when set, the custom menu markup is never created. 2011-01-25 22:43:53 -08:00
scottjehl
70d4187f5f added unit test for path.set 2011-01-26 00:11:16 -05:00
scottjehl
078e307a4d fixed a typo in unit test 2011-01-26 00:09:47 -05:00
scottjehl
fe994b7c0c added unit test for path.getFilePath 2011-01-26 00:02:34 -05:00
scottjehl
85a6d878eb removed unit test - seemed incorrect 2011-01-25 23:57:18 -05:00
scottjehl
d9b84f3f60 added a note to docs. Fixes #880 2011-01-25 23:46:09 -05:00
scottjehl
9ed13f86c8 hashchange event handler should still load the first url, even if Ajax is disabled. Fixes #879 2011-01-25 22:39:29 -05:00
scottjehl
b7001d8148 markup cleanup. Fixes #878 2011-01-25 22:24:05 -05:00
John Resig
4445ae3702 Remove support for stopping desk-based platforms, fixes #876. In the future if you wish to stop desks on platforms I recommend a cheap solution to that problem:
http://www.amazon.com/Magic-Sliders-80934-Rubber-Door/dp/B000UVMQ38

If you wish to have support brought back it can only be done so through successfully beating me at iOS Carcassonne. My username is 'jeresig@gmail.com'. Warning: I don't lose.
2011-01-25 16:05:19 -05:00
John Bender
bc473f48a7 comments for added clarity on bindings 2011-01-24 23:55:52 -08:00
John Bender
0cdd401f3a removed commented code from refactor 2011-01-24 23:54:22 -08:00
John Bender
23807769ac refactor off slider to move value retrieval to closure for _create method 2011-01-24 23:53:17 -08:00
John Bender
442e4b19b0 updated slider refresh function with an extra param for preventing validation on its input Fixes #468 2011-01-24 23:38:50 -08:00
scottjehl
3df24fab6d fixed a regression in safari where images wouldn't load properly because base was being set after html was appended. 2011-01-25 00:29:19 -05:00
scottjehl
5d5336d8b0 fixed firefox regression. check if base is set/supported before setting. 2011-01-24 23:56:53 -05:00
scottjehl
0ba9acfc33 added support for URL updating via a preset data-url on the page div when it is sent from the server.
If data-url is set on a page div when it returns from the server, it's value will be used to replace the url in the hash, and as the base url for future requests if it adds additional segments (such as a trailing slash). This will enable developers to work around the limitation of directory links requiring a trailing slash, and will also allow developers to specify a new url after a redirect occurs (such as after a login). Fixes #867
2011-01-24 19:35:45 -05:00
scottjehl
a762a67514 Merge remote branch 'origin/master' 2011-01-24 17:56:36 -05:00
scottjehl
a5b8e42fc1 updated jQuery to 1.5rc1. This update includes Nokia support in jQuery core, which is getting closer in JQM itself. 2011-01-24 17:56:32 -05:00
Dan Croak
de9d31389f added instructions for building your own jQuery Mobile 2011-01-25 05:32:29 +08:00
scottjehl
80b0d9ef4b Merge branch 'master' of github.com:jquery/jquery-mobile 2011-01-24 13:05:04 -05:00
scottjehl
4a9b374eea make sure change events fire whenever custom checks/radios change. 2011-01-24 13:04:41 -05:00
Kin Blas
1dad50e536 Fix for the header/footer positioning problem, mentioned in issue 58, that is caused by the browser url/nav bar scrolling offscreen due to the silentScroll() call triggered when the document is first loaded.
- Modified silentScroll() to trigger a "silentscroll" event. This was necessary because programatically scrolling the window does not generate "scroll" events.

- Got rid of the hideAfterDelay() function that was not used.

- Added startShowTimer() and clearShowTimer() functions.

- Added event handlers for "resize" and "silentscroll" events. This causes headers/footers to be positioned properly as "scroll" and "orientationchange" events cause the visual viewport to resize.

Issues this fix causes:

- On some Android platforms, clicking in textfields/textareas trigger a "resize" event. This causes the footer to show up in the minimized visual viewport, right above the keyboard.
2011-01-24 07:11:19 -08:00
toddparker
821f0d88d5 Merge remote branch 'origin/master' 2011-01-23 23:27:55 -05:00
toddparker
8d922233a8 re-named logo files, created PDF and PNG versions 2011-01-23 23:27:17 -05:00
scottjehl
b8f88000a3 made height tall for better demo 2011-01-23 22:41:14 -05:00
scottjehl
d7cda0094a don't bubble example 2011-01-23 22:36:44 -05:00
scottjehl
fa4fa181df moved to tests dir 2011-01-23 22:36:10 -05:00
scottjehl
977e075ece improved tap event and added a quick event logger page so we can get these neglected events in order. 2011-01-23 19:34:17 -05:00
scottjehl
2e6a396278 added ajaxEnabled option. ajaxLinksEnabled and ajaxFormsEnabled are deprecated and will be removed by 1.0. Fixes #851 2011-01-23 19:03:35 -05:00
scottjehl
2ebf659fbd made sure linking to the same page from within a dialog closes the dialog. 2011-01-23 18:26:48 -05:00
scottjehl
be8eb3d0c6 deprecated data-back attribute on links in favor of data-direction="reverse". Updated docs and relevant demos. 2011-01-23 18:12:46 -05:00
scottjehl
9b57c46349 Refactored urlStack and updated dialog and page plugins to match. jQuery Mobile's internal history now attempts to follow the history menu when urls change from hashchange, even for changes that go multiple steps forward or back. The internal history stack is now pruned based on whether a user goes back and then changes direction, whereas before a back-button click would result in a pop off the history. Instead we now maintain an active index number in the history stack, which allows us to maintain references to transitions that are saved on pages reached through clicking the forward button as well. This fixes #636.
In the process, some other small changes should be noted:
urlStack is now urlHistory, a hash of methods and properties used for history stack management (stack, activeIndex, getActive, getPrev, getNext, addNew, clearForward, and listening Enabled). All these are documented inline and exposed on $.mobile.urlHistory (I'm not sure these will be publicly documented, but just exposed internally for plugins for now).

$.changePage has two argument changes: the "back" argument is now called "reverse"; this results in no change from an end-user standpoint, but reflects the fact that it only reverses the direction of a transition without affecting the internal history stack, and second, a new argument at the end defines whether changePage was called from a hashChange which makes that url open to history menu guessing.
2011-01-23 17:33:36 -05:00
John Bender
c63d570b60 comment correction in core mobile init test 2011-01-22 22:51:11 -08:00
John Bender
538151491c added async test calls to guarantee the correct assertion is being fired 2011-01-22 22:41:59 -08:00
John Bender
e30ece11ac added immediate function to prevent scoping issues in core unit tests 2011-01-22 22:39:32 -08:00
John Bender
b671753039 moved page above core in the makefile, build xml, and manifest under js. Fixes #619 2011-01-22 22:31:16 -08:00
scottjehl
20775a532a Merge remote branch 'origin/master' 2011-01-22 17:48:46 -05:00
scottjehl
6a958ecba2 merge 2011-01-22 17:48:36 -05:00
scottjehl
9e4b0a484c Overhauled path object and exposed it and the base object via $.mobile. Form and Link handlers now use the path methods internally. Unit tests adjusted, but more are needed to fully cover the path and base propeties and methods. Fixes #566. 2011-01-22 17:42:07 -05:00
toddparker
737a487999 Removed a few theme overrides on these pages so they look like the rest of the docs. 2011-01-22 16:36:20 -05:00
toddparker
1e5013cb9b Tweaked swatch C hover style to increase contract to improve navigation with directional controller on Android. 2011-01-22 16:24:44 -05:00
scottjehl
cb2de36865 more outline disabling 2011-01-22 14:46:58 -05:00
scottjehl
2a06226def removed outlines on active states. Left them open on focus. 2011-01-22 14:44:50 -05:00
scottjehl
17663605ce changed up the contrast a bit, particularly on hover/focus. Makes joystick/key navigation easier. Fixes #845 2011-01-22 14:26:58 -05:00
scottjehl
6fb50fd289 use inArray instead of indexOf. Fixes #828 2011-01-22 14:04:04 -05:00
scottjehl
fbb2fc2c60 lengthened timer for Android, and added a check to let through the same event type for double-taps. 2011-01-21 18:29:28 -05:00
scottjehl
aa0a61c407 followup on previous commit. made sure devices with both touch and mouse events work with either input type. Also fixed regression with radio inputs. 2011-01-21 18:13:02 -05:00
scottjehl
38c1c24e5d moved check/uncheck event on label to touchend/mouseup. Fixes #753 2011-01-21 17:45:22 -05:00
scottjehl
a1cb31a2c7 navbar removes active state but doesn't apply new one. Now it does. Useful in js-generated links. Fixes #669 2011-01-21 16:20:33 -05:00
scottjehl
37f9680c0f only the first image should be an icon/thumb. Fixes #699 2011-01-21 15:33:40 -05:00
John Bender
e5d2bf1b66 added target check to $.mobile.isExternalLink 2011-01-20 23:05:37 -08:00
John Bender
b2817375f4 altered innacurate test result message 2011-01-20 22:22:47 -08:00
John Bender
ffafa78e62 added tests for external links in dialogs, small refactor for dialogClickHandler function 2011-01-20 22:20:16 -08:00
scottjehl
52f86f2f9a make sure first textnode of li is used in listview title, regardless of newline chars. Test included. Fixes #715 2011-01-20 17:48:44 -05:00
scottjehl
bfa6f6a3af Merge remote branch 'origin/master' 2011-01-20 16:28:28 -05:00
scottjehl
48b69b7a71 loading message opens above offset of active button, when possible. This makes it visible on devices that don't support scrollTop (webOS, etc) 2011-01-20 16:28:23 -05:00
Kin Blas
e4042266fb Fix for issue 841 - Persistent footers persist even when going to other pages that don't have footers or don't have footers with the same data-id.
This was a regression I caused with my previous checkin. The fix is to simply null out stickyFooter in the pagebeforeshow callback.
2011-01-20 12:51:28 -08:00
Kin Blas
161f5e6ae3 Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually.
This makes our include model match the include model on the CDN, and allows devs to make use of mobileinit for debugging some of the samples since that must be set up after jquery.js, but before jquery-mobile.
2011-01-20 11:26:12 -08:00
John Bender
beb40bcd7f corrected link to multi page template to have rel external per the docs 2011-01-20 00:38:07 -08:00
John Bender
fedb0a7366 added tests for external link function 2011-01-19 23:57:51 -08:00
John Bender
8a5060de13 fixed issue with dialog click handler breaking transitions on external links Fixes #642 2011-01-19 23:48:30 -08:00
John Bender
dcf9a19c31 whitespace issues in mobile core 2011-01-19 21:43:36 -08:00
scottjehl
f85e4c916b small workaround to get media query function to work on Nokia 2011-01-19 16:35:15 -05:00
Kin Blas
02c9264f0d Fix for issue 613 - Jquery Mobile ignores original 'base' tag defined in HTML
- Fixed baseTagTest() in jquery.mobile.support.js, so that it uses any pre-existing base tag for testing. This fixes the bug on Webkit (Safari) where the relative paths for links were being resolved/expressed with the document path instead of the original base path.

- Modified the base code in jquery.mobile.navigation.js so that it uses the initial path of a pre-existing base tag, instead of always using the document path. This means that a document with a URL such as:

    http://foo.com/a/b/c#docs/pages/index.html

That uses a base tag like:

    <base href="http://foo.com/bar/">

Will resolve properly:

    http://foo.com/bar/docs/pages/index.html

so the mobile page gets loaded properly.

- Reduced the path.get() function down to a couple of regexp replace() calls.
2011-01-18 09:18:22 -08:00
John Bender
b9bfa41846 poorly written comment 2011-01-15 23:36:59 -08:00
John Bender
cc307ec902 tests for large select dialog issue 2011-01-15 23:15:17 -08:00
John Bender
f850311935 force previously created dialog for long menus. Fixes #807 2011-01-15 22:47:44 -08:00
John Bender
d4f4d474d1 whitespace cleanup for mobile forms select 2011-01-15 22:44:00 -08:00
Kin Blas
fde3aaaad5 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-01-14 13:40:04 -08:00
Kin Blas
cd344f0440 Fix for Issue 811 - All resolution breakpoint classes added to <html> element, throws off label and form element flow on narrow screens.
- We were firing off our fake orientationchange event before the viewport meta tag is injected. This causes us to get the default document width for the device which is much wider than the actual device-width. We now fire off the event after the dom ready event fires.
2011-01-14 13:37:47 -08:00
maggiewachs
b6ec29a7e5 Fixed bug 676 where the switch toggle (slider) wasn't updating on select change:
https://github.com/jquery/jquery-mobile/issues/labels/5%20-%20Critical#issue/676
2011-01-14 16:06:18 -05:00
scottjehl
7cf5aea8e3 fixed up those busted select menu headers. Fixes #810 2011-01-14 15:49:21 -05:00
scottjehl
3b92410ff3 some additional changes to make scrolling from a select button work ok. 2011-01-14 15:16:03 -05:00
scottjehl
288fe45ff1 added option for useNativeMenu. Should be updated so, when set, the custom menu markup is never created. 2011-01-14 13:02:24 -05:00
Pavel Karoukin
5b4c23b67d add data-url to dialog 'pages' as well 2011-01-14 23:44:25 +08:00
Pavel Karoukin
794adfeca0 Click on form in dialog prevents exit from dialog 2011-01-14 23:44:24 +08:00
scottjehl
87c7b57da9 allow scroll to work when touch start begins on a select button. Fixes #804 2011-01-14 10:35:26 -05:00
Jonathan Hinkle
0413542753 rename selectmenu's exposed "options" to "optionElems" to avoid conflict with existing variable containing configuration options 2011-01-14 22:48:51 +08:00
scottjehl
4b53be8f45 removed hidden overflow rule, which makes page transitions a little cleaner on the desktop, but more importantly, Fixes #446, Fixes #678 2011-01-13 18:08:59 -05:00
toddparker
dbdcffd505 Removed instances of hex color shorthand in filters to fix potential IE issues 2011-01-13 17:46:33 -05:00
scottjehl
adcc106bbe Merge branch 'issue764' of https://github.com/ehynds/jquery-mobile into ehynds-issue764 2011-01-13 16:32:35 -05:00
scottjehl
7cd3d81e5d Merge remote branch 'origin/master' 2011-01-13 16:23:04 -05:00
ehynds
f9c1592bc7 fix extra-wide pages in opera & opera mini 2011-01-12 18:00:53 -05:00
ehynds
9e6a3df6b1 make sure the options cache is updated after a refresh, and that the click handler reads from this cache. 2011-01-12 22:01:50 +08:00
Jesse Streb
924c2c3e9b updated select to no longer wrap the input element as it is already jQuery object. Thanks ehynds. 2011-01-12 08:01:37 +08:00
Jesse Streb
5b238ea1ce https://github.com/jquery/jquery-mobile/issues#issue/578 Updated to use the selector that Scott suggested in order to make checkboxes not dissappear. One issue I noticed is that the page still transitions to the 'new' page even though it is really the same page. I have a fix for this that will post in a separate drop. 2011-01-12 08:01:36 +08:00
D. Elmo Peele
1a21b0581c Avoid triggering a 'tap' event if the event target on touchStop differs from the original touchStart target. 2011-01-12 07:47:17 +08:00
Kin Blas
5617d0c8d3 Merge branch 'delay_duplicateCachedPage' of https://github.com/medovob/jquery-mobile into pull662
Had to fix merge conflicts in:
	js/jquery.mobile.navigation.js
2011-01-11 14:12:07 -08:00
ehynds
95819c8c60 same fix in a few other places 2011-01-12 05:30:56 +08:00
ehynds
b71cc32d78 "this" in this context is already a jquery object 2011-01-12 05:30:56 +08:00
scottjehl
2841c26b85 Merge branch 'fieldcontain_this' of https://github.com/ehynds/jquery-mobile into ehynds-fieldcontain_this 2011-01-11 16:25:34 -05:00
bclinkinbeard
32056c6873 Added type attribute to script tags and fixed footer comment 2011-01-12 03:52:33 +08:00
Louy Alakkad
db1f51aeb2 Button label isn't obvious when data-theme="c" and button is :visited. [#777] 2011-01-12 02:48:13 +08:00
scottjehl
44d6064fb6 Merge branch 'no_enhance_for_hidden' of https://github.com/hynkle/jquery-mobile into hynkle-no_enhance_for_hidden 2011-01-11 13:42:30 -05:00
Kin Blas
8a70cdb3de Initial patch from pull 672 had incorrect check for backbtn data value. Changed it from $this.data("backbtn") === false to $this.data("backbtn") !== false to match the original logic that was in place prior to the patch.
Original patch missed a nobackbtn reference in jquery.mobile.forms.select.js.
2011-01-11 09:34:50 -08:00
Kin Blas
8050fb0d01 Merge branch 'master' of https://github.com/walkingeyerobot/jquery-mobile into pull672 2011-01-11 09:04:32 -08:00
John Bender
96d941ebe9 added the ability to disable ajax forms with data-ajax=false, attribute up for debate, Fixes #519 2011-01-08 23:47:07 -08:00
scottjehl
cc39cbc1f1 Merge branch 'master' of github.com:jquery/jquery-mobile 2011-01-08 09:32:12 -05:00
scottjehl
663c33e7a0 just whitespace. Fixes #181 2011-01-08 09:32:02 -05:00
Jonathan Hinkle
6b799dad71 added 'hidden' to the types of inputs not to be enhanced by textinput 2011-01-07 12:33:59 -05:00
Kin Blas
c910f4b01f Fix for issues:
470 - Multiple Footers when using data-position=fixed and data-id=[someid]

773 - The fixHeaderFooter pagebeforeshow live function is not triggered for the initial page shown

- Removed the findStickyFooter() function.

- Reworked the logic in the pagebeforeshow live function. We now add a ui-sticky-footer class to the sticky footer element. This will guarantee that we find the sticky footer if it already exists. We may at some point want to consider the use of ids on the sticky footers so that we don't have to crawl the entire document.

- Moved the live pagebeforeshow and pageshow calls outside of the DOMReady function so that they get registered as soon as the plugin is loaded. This guarantees that they will be triggered when the core plugin's DOMReady function fires.

- This fix makes issue/pull-request 765 obsolete.
2011-01-07 01:07:22 -08:00
John Bender
2065a1916b moved jstrebs integration tests under the unit folder, made it look a bit like the others, and changed the styling to move pages off the screen 2011-01-06 23:34:05 -08:00
John Bender
4c4b804346 Merge branch 'integration-tests' of https://github.com/jstreb/jquery-mobile into jstreb-integration-tests 2011-01-06 23:03:43 -08:00
Kin Blas
38f09ee66f Sweep through all files to add a trailing slash to <link> tags that include thems/default. This should fix Opera Mobile Issue 763. 2011-01-05 16:19:24 -08:00
Kin Blas
a07fa70b07 Quick fix for issue 763 - Icons and loading image fail to display on Opera Mobile.
This is just a quick check in to the main index.html of the test site to make sure things work. We still need to do a sweep through *ALL* html files and make sure we are including a trailing slash in the themes/default path.
2011-01-05 15:29:17 -08:00
maggiewachs
926982b4f0 Fixed bug 595, where form elements were not properly inheriting the theme. Form controls need to be enhanced after the page containers so they'll pick up on the containers' theme classes. 2011-01-05 11:55:41 -05:00
Jesse Streb
d49deea185 removed our the jasmine tests as they are no longer used 2010-12-31 13:56:06 -05:00
Jesse Streb
1c5034151e removing files that are no longer used 2010-12-31 13:54:35 -05:00
Jesse Streb
ee6184c9bb Fixed issue in which we were changing the location.href to a hardcoded value rather then just the hash. 2010-12-31 13:52:20 -05:00
Jesse Streb
35c2fe8aa5 Ported Jasmine integration tests over to Qunit tests. Kept these in a different folder of integration tests has there purpose is to test at a page level rather then a method by method level. 2010-12-31 13:37:17 -05:00
maggiewachs
60da49c6b9 Updated the datepicker workaround to be functional; also added a few style overrides and events to update the datepicker markup on load and click (necessary because it's redrawn) 2010-12-29 09:36:48 -05:00
ehynds
c8a161a04d same fix in a few other places 2010-12-28 10:15:30 -05:00
ehynds
be51f8abe3 "this" in this context is already a jquery object 2010-12-28 09:06:51 -05:00
John Bender
3a9652c9cc slider switch keyboard access tests Fixes #632 2010-12-26 23:09:11 -08:00
John Bender
06b83ad67a slider switch now keyboard enabled 2010-12-26 17:45:25 -08:00
Jesse Streb
c0d9cad6c8 Fixed issue in which we were changing the location.href to a hardcoded value rather then just the hash. 2010-12-24 08:27:24 -05:00
scottjehl
a37bc5d1b0 fixed double scrollbars when tall selects are present 2010-12-23 15:25:58 -05:00
scottjehl
3fb55aef0b fixed up some duplicate IDs 2010-12-23 14:50:01 -05:00
scottjehl
53392bc7ca Merge branch 'issue_723' of https://github.com/ehynds/jquery-mobile into ehynds-issue_723 2010-12-23 14:34:17 -05:00
ehynds
edfafe0c01 if the close icon in a full-page select is clicked on, fire the selectmenu close handler instead of the dialog close handler 2010-12-23 13:19:34 -05:00
Jesse Streb
015a361eb1 Added integration tests for listviews. These tests mock a users interaction with the various listviews, checking that the page is both enhanced and that the navigation behaves as expected. 2010-12-23 09:51:33 -05:00
scottjehl
e9b076bcc0 Merge branch 'master' of https://github.com/louy/jquery-mobile into louy-master 2010-12-23 09:20:55 -05:00
scottjehl
ce7ff992d6 Merge branch 'docs' of https://github.com/ehynds/jquery-mobile into ehynds-docs 2010-12-23 09:20:17 -05:00
John Bender
fa760da3bd docs updated with information about the slider keys 2010-12-22 23:53:44 -08:00
John Bender
39f4749257 added tests for home and end keys 2010-12-22 23:31:53 -08:00
John Bender
b2d58c1f30 slider keypress tests, comments, and style addition to navigation test page 2010-12-22 23:18:14 -08:00
John Bender
39729becd6 standard keyboard interaction working with slider, tests to come 2010-12-22 22:40:54 -08:00
John Bender
8ec3ae594d added keyCodes, Home and End working for range slider 2010-12-22 16:30:55 -08:00
ehynds
cc0d982c5e documentation for multiple select functionality and list icon theming.
also fixed a CSS specificity bug where the display:block declaration on .ui-li was overriding the display:none declaration for the placeholder class.
2010-12-22 18:11:01 -05:00
Kin Blas
171065a5e1 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2010-12-22 09:59:45 -08:00
Kin Blas
43eeddd1bb Sync up form settings with scrollview defaults.
Fixed a few markup errors.
2010-12-22 09:58:40 -08:00
Louy Alakkad
4dcb65fc7a fixing spaces 2010-12-22 07:53:07 -08:00
Louy Alakkad
59e8ee3137 Matching the jQuery code style guidelines. 2010-12-22 07:52:08 -08:00
scottjehl
fd821b7440 Merge branch 'select_multi' of https://github.com/ehynds/jquery-mobile into ehynds-select_multi 2010-12-22 10:05:40 -05:00
louy
ba99290480 Merge branch 'master' of git://github.com/jquery/jquery-mobile 2010-12-18 16:06:55 +02:00
louy
d435979daf Allow developer to apply themes on checkboxes/radio-buttons. 2010-12-18 15:20:15 +02:00
John Bender
5a7377d6d1 spurious character removed from navigation markup 2010-12-16 19:20:34 -08:00
John Bender
b8babd1003 removed console log and added test for default transition 2010-12-16 19:12:58 -08:00
John Bender
8e30a3dc8a corrected tests message output 2010-12-16 18:27:49 -08:00
John Bender
1497e605d3 test fixes and addition for proper back transitions 2010-12-16 18:26:35 -08:00
John Bender
7ffec259c5 added tests for explicit transition on back 2010-12-16 18:21:46 -08:00
John Bender
67aed1320b prefer explicit transition even when the url is popped of the stack Fixes #627 2010-12-16 18:20:17 -08:00
John Bender
9e21bb9924 small test corrections 2010-12-16 18:20:17 -08:00
Kin Blas
5961818bb3 Fixed a couple of spots that had the following invalid markup:
<pre></code>
2010-12-16 11:15:43 -08:00
Kin Blas
ecf3e8a1f9 Merge remote branch 'origin/master' 2010-12-16 11:11:42 -08:00
Kin Blas
49c9db9c49 Turning on delayedClick by default. <again>
Added triggers for mousedown and mouse up in the delayed case because some of hte jqm components register handlers on those events to set the component states.

Note that the focus() trigger is commented out temporarily. It seems to cause the content within the scrollview clip to scroll to the point where item being focused sits in the flow .. unfortunately this screws up the rendering because we are using CSS3 translate, so the item clicked on is out of view.

Modified sv-test-02.html so that the clone event sets the target property on the fake event.
2010-12-16 11:04:48 -08:00
jzaefferer
b41cfce3cc Also .gitignore combine folder created by Ant build 2010-12-16 10:47:18 +01:00
jzaefferer
b18f3fa4a7 Updated to latest QUnit 2010-12-16 10:38:35 +01:00
jzaefferer
458a56839b Updated unit tests: Drop document-ready block, use #qunit-fixture instead of #main and drop extra styles now provided by QUnit. 2010-12-16 10:34:23 +01:00
Kin Blas
8351f5496b Turn off delayedClickEnabled by default for now. We need to work out some kinks.
Modified sv-test-02.html so that you can dynamically turn on/off the delayedClick behavior.
2010-12-15 11:13:31 -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
58506aeef4 Added code to defer the generation of a "click" event for form elements within a scrollview. This seems to keep form elements working on Android.
Added strict comparisons for strings as pointed out by jonathan in my previous checkin.
2010-12-15 08:06:07 -08:00
jzaefferer
2a66572dca Fixed reference to jquery.ui.position.js in Ant build, now (more) consistent with Makefile 2010-12-15 16:18:39 +01:00
jzaefferer
e70c17d625 Extend nested listviews to accept more then just the title in parent list item. Currently requires predefined anchor to be present, based on discussion in ticket. Extended lists-nested.html to test both variants. Fixes #253 - only text nodes allowed in nested listview 2010-12-15 15:54:13 +01:00
Kin Blas
aa1f94a81f Added support for scrolling via scrollTop/scrollLeft.
Modified sv-test-02.html so that you can dynamically switch the scrolling method used. This will allow us to test the performance of different methods on the different platforms.

Modified scrollview.js so that you can specify @data-scroll-method="translate|position|scroll".
2010-12-14 16:05:52 -08:00
John Bender
39e5e75ca1 fixed test descriptions 2010-12-14 00:11:02 -08:00
John Bender
5114995865 notes on test fixture oddities 2010-12-14 00:05:29 -08:00
John Bender
54ea95a3d8 added negative test case for perspective transition and simple case for transitioning class 2010-12-14 00:05:29 -08:00
Kin Blas
22d4f4f687 Removing some debug code I accidentally commited. 2010-12-13 15:34:19 -08:00
Kin Blas
1b06d3dd32 Changed page title. 2010-12-13 15:22:39 -08:00
Kin Blas
d31f92a649 Modified index so that all tests launch externally so they can pick up the CSS and JS that is specific to that test.
Added a couple of tests that will help us figure out what events need to be handled special to disable native view port scrolling, and what events are necessary for form elements to function properly.
2010-12-13 14:20:14 -08:00
John Bender
56cb1bce38 test replaced with TODO issues with page transition 2010-12-13 10:41:16 -08:00
Mitch Foley
ad757718c4 actually reversing backbtn logic this time. 2010-12-13 11:11:21 -05:00
Mitch Foley
df3bc91f80 renaming nobackbtn to backbtn. 2010-12-13 10:54:26 -05:00
John Bender
95ef08b269 perspective class only added on flip page transition or any transition added to the perspectiveTransitions local var in the transitionPages function Fixes #568 2010-12-13 02:21:40 -08:00
John Bender
c1ba429a9c added ui-btn:visited color white, Fixes #618 2010-12-12 00:41:42 -08:00
scottjehl
9420083a7b quick update to set the base.href back to the starting path, just in case, as some browsers may retain the base href after the element is removed from the DOM. Explained better here: b2add677f0 2010-12-11 13:50:07 -05:00
John Bender
7e0cdbef5e small whitespace correction 2010-12-11 00:56:56 -08:00
John Bender
6f8aada084 orientation support tests for native vs resize 2010-12-11 00:39:27 -08:00
John Bender
7f51d4fcf5 added test for scroll prevention on swipe and move swipe movehandler prevention 2010-12-10 23:59:18 -08:00
Kin Blas
e72809ca49 Added links to tests so folks don't have to type them manually. 2010-12-10 16:07:58 -08:00
Kin Blas
3062199ac6 Some tweaks to kptdobe's patch from:
https://github.com/jquery/jquery-mobile/pull/649

  - Changed hideOnTouchEnabed to touchToggleEnabled.
  - Fixed problem that would allow the toolbars to show on touchstop, if the starting state was "inline" to begin with.
  - Moved the touchToggleEnabled checks in touchstart/touchstop so that they wrap the entire code in the function. We don't want to do any work if we don't need to.
  - Removed the forced hide() call in touchstart.

Added the missing fadeout animation reference inthe fade.in transition rule.
2010-12-10 10:17:16 -08:00
Richard Stutfield
0a87b59a04 Navigation: delay removal of duplicateCachedPage 2010-12-10 12:27:14 +00:00
kptdobe
9c3762978e Allow to disable headers hide on touch behavior 2010-12-09 15:02:45 +01:00
John Bender
553b58567f added protection for nested links to ui-bar selector with tests 2010-12-09 00:16:48 -08:00
John Bender
fc2a405d21 added swipe distance threshold tests and fixed the taphold async test 2010-12-09 00:05:41 -08:00
John Bender
970f46c5e0 header and footer links will now remain unstyled, Fixes #524 2010-12-08 22:16:45 -08:00
ehynds
c982b93794 fixed a bug in single selects where clicking on a selected option would un-select it. this logic should only apply to multiple selects. 2010-12-08 15:45:23 -05:00
Kin Blas
4882c068b0 Modified loadComplete() so that it always fires off the "show" event. The idea here is that calling preventDefault() on a "hide" event shouldn't prevent the "show" event from being dispatched. Calling preventDefault() on the "show" event still prevents the "to" page from becoming the active page.
Removed redundant target delcaration in the <a> live click callback.
2010-12-08 12:40:21 -08:00
ehynds
1d2ef4f606 removed console.log statement 2010-12-08 09:43:24 -05:00
ehynds
43a6a3bb1b refactored header create logic to be consistent with the rest of the widget; fixed bug when using optgroups within a multiple select 2010-12-08 09:41:00 -05:00
John Bender
25c5d2697a basic swipe timing tests 2010-12-07 23:30:02 -08:00
John Bender
0574cd78ef test for tap event not fired when movement is recorded 2010-12-07 20:22:06 -08:00
ehynds
94ac0a88be fix placeholder logic 2010-12-07 18:05:26 -05:00
ehynds
9c1b0f7329 Merge branch 'select_multi' of github.com:ehynds/jquery-mobile 2010-12-07 17:47:26 -05:00
ehynds
2c8c89ba9b Merge remote branch 'upstream/master' 2010-12-07 17:45:33 -05:00
Michael J. Rubinsky
76cc574721 Add note specifying these events need to be called prior to jQuery Mobile execution. 2010-12-08 06:11:01 +08:00
ehynds
9e30e54159 removed extraneous comment 2010-12-07 15:49:54 -05:00
ehynds
8eb553f884 multiple select functionality 2010-12-07 15:45:20 -05:00
ehynds
8286eccabd Merge remote branch 'upstream/master' 2010-12-07 15:26:27 -05:00
scottjehl
80d56e655b Changed page navigation scripting to use data-url attributes instead of IDs for storing page URLs. This fixes a number of issues, most importantly #477, which exposed a conflict between jQuery's selector engine that would result in un-enhanced pages whenever linking between two pages in the same directory.
The shift away from interal ID attribute usage also allows users to bind page events (pagecreate, pagebeforecreate) to a page div by its ID, which was a frequent cause of confusion when it didn't work as expected in former versions of the framework.

Seemingly unrelated: these commits allow you to specify data-role="dialog" in multipage and single page templates. In multipage templates, the role must be on the page (a link with data-rel alone will not work in multi-page). This addresses issue number 464, but may need further testing for obscure scenarios.

Fixes #477 (Pages are not enhanced when linking to a filename without a path)
Fixes #493 (Click the same link twice -> blank page)
Fixes #513 (closing dialog + returning to the same dialog)
Fixes #550 (changePage() not updating hash for internal pages - breaks )
Fixes #464 (Dialogs don't work within multi-pages)
Fixes #633 (Recent change to prevent same-page requests breaks select menu close button)
Fixes #599 (Page ids & page specific events)
Fixes #634 (After a bad page request, base url is not reset to current path)

booya.
2010-12-07 12:05:10 -05:00
scottjehl
008e7e4c37 changed to reference local js,css 2010-12-07 11:33:04 -05:00
scottjehl
91a5b8c098 Changed the way submit buttons work. Now, form input/button elements are appended to a div-based "button", invisibly filling its width and height. The user now interacts directly with the native control, rather than having to trigger a click from another anchor (which formerly prevented some native submit event handling from working).
A workaround is still included to ensure the input's name/value is submitted along with the form when it's not a type=reset, as this is necessary for the button data to appear in the serialized form data.
2010-12-06 11:40:28 -05:00
ehynds
c05272ba7d Merge branch 'master' of github.com:ehynds/jquery-mobile 2010-12-06 08:21:08 -05:00
John Bender
639eaf897e added test for pushing back taphold with touchmove 2010-12-05 22:59:53 -08:00
John Bender
16ed9dc661 added tap hold test 2010-12-05 22:38:49 -08:00
scottjehl
2931fffb91 blur the active/focused element on changepage sooner. Thx @goulvench 2010-12-04 14:46:41 -05:00
scottjehl
74ebc360ca make sure hashchange event never causes additional hash changes to occur when responding with a page change 2010-12-04 13:13:55 -05:00
Jesse Streb
b725ff8f6a https://github.com/jquery/jquery-mobile/issues#issue/493 If changePage is called with to parameter that matches the current page we simply return out of the function 2010-12-04 13:13:55 -05:00
ehynds
8118b77a6a documenting disabled options and optgroup support 2010-12-04 23:29:12 +08:00
ehynds
dc6bf52fff restoring doc 2010-12-04 09:07:59 -05:00
ehynds
31e6c5fe59 Merge remote branch 'upstream/master' 2010-12-04 09:06:11 -05:00
ehynds
bd845b3a17 arg 2010-12-04 09:06:04 -05:00
jzaefferer
45aeb9985b Converter demo: Fix edit mode to generate list; fix Cancel and Add buttons to when adding new conversions 2010-12-04 14:32:14 +01:00
scottjehl
1c5236be6c fixed the themeswitcher 2010-12-03 18:12:44 -05:00
scottjehl
b01478a5e7 make sure forms can submit via ajax AND pass the clicked button's name/value in the serialized data. Fixes #605 2010-12-03 13:08:08 -05:00
Kin Blas
036e3ebd90 Sync up the scrollview code with the jquery-mobile mainline. 2010-12-03 09:46:49 -08:00
scottjehl
e765d21631 documented how to disable the hidePlaceholderMenuItems option in selectmenus 2010-12-03 11:38:47 -05:00
scottjehl
6dce87a2ac hide placeholder options in selectmenu overlays. Fixes #607 2010-12-03 11:32:48 -05:00
ehynds
68150b5bec adding optgroup support. Fixes #567 2010-12-03 10:57:21 -05:00
ehynds
e6b4634937 Merge remote branch 'upstream/master' 2010-12-03 10:50:18 -05:00
ehynds
8062bf0a80 finish merge of select_event_bubbling or whatever i called that branch 2010-12-03 10:47:25 -05:00
scottjehl
c4b333e723 make sure empty options are displayed with expected height. Fixes #572 2010-12-03 10:41:55 -05:00
scottjehl
ca8d9b9fed Merge branch 'select_event_bubbling' of https://github.com/ehynds/jquery-mobile into ehynds-select_event_bubbling
Conflicts:
	js/jquery.mobile.forms.select.js
2010-12-03 10:06:10 -05:00
ehynds
e2eb9e9298 add disabled option support. fixes #350 2010-12-03 22:30:08 +08:00
ehynds
12f011b7cc swap return false for event.preventDefault 2010-12-03 07:40:58 -05:00
scottjehl
e4f55d3c91 fixed datepicker static example 2010-12-02 15:19:53 -05:00
scottjehl
f9e25efeb6 Merge branch 'master' of github.com:jquery/jquery-mobile 2010-12-02 15:19:32 -05:00
Kin Blas
b0896e2e4c Merge remote branch 'origin/master' 2010-12-02 11:43:20 -08:00
Kin Blas
33602a4dfd Implemented view paging for the scrollview. This feature is only enabled for horizontal and vertical scrollviews. To use, pass "xp" or "yp" for the @data-scroll attribute.
Fixed a typo/bug in scrollview.js that was causing the paging bool to be set improperly.

Turned on scrollview paging in scrollview-direction.html.

Items still left to do:

- Code refactoring/cleanup.
- Modify the code so that scroll offsets are stored as positive values. This will make it easier for folks to understand.
2010-12-02 09:47:46 -08:00
Todd Parker
cc2fb7eb42 Actually updated to 1.4.4. Thanks Eric! 2010-12-02 12:27:48 -05:00
Todd Parker
df7de3f54d Updated jq script link to 1.4.4 on both pages. Also used CDN versions on the multi-page template. 2010-12-02 11:43:58 -05: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
63627e529f Fixed some copy/paste typos in the nested sample.
Got rid of some test code in the direction sample.
2010-12-01 14:57:28 -08:00
scottjehl
e70c7d4295 Merge branch 'master' of github.com:jquery/jquery-mobile 2010-12-01 17:07:37 -05:00
scottjehl
69a91d0854 noted docs to-do 2010-12-01 17:05:28 -05:00
Kin Blas
39a9681d55 Implemented support for nested scrollviews, scroll propagation, and direction locking. To make a div scrollable use:
data-scroll="x|y|true"
2010-12-01 14:04:54 -08:00
scottjehl
9423bc199d fixed issue with listview corner rounding when listviews have only a couple items. 2010-12-01 16:35:17 -05:00
scottjehl
ce5ea07780 don't set hash if back is true. Fixes #582 2010-12-01 12:41:27 -05:00
scottjehl
9853fa9252 added a quick google maps example - needs some more love when we have time! 2010-12-01 11:55:35 -05:00
scottjehl
bc09540492 updated example code 2010-12-01 11:11:35 -05:00
scottjehl
54568271d9 pageshow and pagehide now fire after the location hash is updated. Fixes #583 2010-12-01 09:52:07 -05:00
scottjehl
7aafc9b669 documented auto-init (and prevention of auto-init) of form controls 2010-12-01 09:52:07 -05:00
scottjehl
90b469eb9e noted that the option should be set on mobileinit 2010-12-01 09:52:07 -05:00
scottjehl
17f0340a0a improved keepNative option so that it's additive on top of data-role=none and data-role=nojs. 2010-12-01 09:52:07 -05:00
John Bender
bb5d247786 removed console log 2010-11-30 23:10:41 -08:00
John Bender
5a89066e98 setup function fully tested 2010-11-30 23:08:06 -08:00
John Bender
b2905ee08c started event.special.scrollstart.setup tests 2010-11-30 22:57:49 -08:00
John Bender
c27122040a removed page div from event index html 2010-11-30 19:48:38 -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
scottjehl
efe4c38ad4 added the keepNative option to page plugin, which defaults to this selector "[data-role='none'], .ui-nojs". Add the attribute data-role="none" to any form control or anchor and it will not be auto-enhanced. Thx @pharaoh for the syntax suggestion. Fixes #544, Fixes #528, Fixes #529 2010-11-30 18:18:53 -05:00
scottjehl
5486f8e9e1 fixed typos 2010-11-30 10:20:20 -05:00
John Bender
c20b589686 added test for trigger inside new event closure 2010-11-29 23:47:38 -08:00
John Bender
524008f5f3 started mobile.event unit tests 2010-11-29 23:41:29 -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
scottjehl
419787affe make sure submit button name/value is submitted with form values. Fixes #551 2010-11-29 10:09:26 -05:00
John Bender
891c09b32a added to todo for silent scroll on window load test 2010-11-29 22:32:26 +08:00
John Bender
3df0060827 document ready tests are finished 2010-11-29 22:32:26 +08:00
John Bender
2913104d4f added tests for silent scoll y position parameter 2010-11-29 22:32:25 +08:00
John Bender
7314fff15f added silentScroll tests for mobile.core 2010-11-29 22:32:25 +08:00
jzaefferer
93ac6f9b05 Converter experiment: Fix theme for search field 2010-11-26 15:23:22 +01:00
scottjehl
d56380fc22 refactor of jquery.mobile.core.js. Moved all of the page navigation model related scripting into jquery.mobile.navigation.js. This includes event handling for click, submit, and hashchange, all of the base tag management, path management, active link class handling, etc. All existing core tests are passing, and all demos work as expected. More tests are needed in core, and this refactor should make those tests easier to write. 2010-11-25 06:13:51 -05:00
John Bender
726166a5ee removed unfinished page tests stubs 2010-11-25 17:10:02 +08:00
John Bender
b55e9c6eec removed core hash tag testing (still evaluating), fixed coretests based on new refactor 2010-11-25 17:10:00 +08:00
John Bender
6816d2a793 added getPathDir tests 2010-11-25 17:10:00 +08:00
John Bender
bfb0f4e403 small refactor for mobile view port tests 2010-11-25 17:09:59 +08:00
John Bender
a569bff05a meta view port selector testing 2010-11-25 17:09:59 +08:00
John Bender
923c262bb5 fixed test description 2010-11-25 17:09:59 +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
John Bender
31e6d6879b added loading dialog testing 2010-11-23 21:08:13 +08:00
John Bender
eb19f53c26 added test for grade a check 2010-11-23 21:08:13 +08:00
John Bender
caf84f6663 moved module declaration to actual module files to be consistent with reload based tests 2010-11-23 21:08:12 +08:00
John Bender
0a023fa46a started core testing 2010-11-23 21:08:12 +08:00
John Bender
a11a387e8b small refactor to cache script tag for lib reload 2010-11-23 21:08:11 +08:00
John Bender
521777dcb7 added reload lib helper, moved support core over 2010-11-23 21:08:11 +08:00
John Bender
4bec9b1ae2 added file protocol helper 2010-11-23 21:08:11 +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
John Bender
8725b2dcc5 added todos for refactoring hanging functions into mockable methods 2010-11-23 05:04:35 +08:00
John Bender
0fe922b748 removed unnecessary query wrap 2010-11-23 05:04:35 +08:00
John Bender
370d745bf3 added tests for mobile.support, still working on mocking for property check on body styles 2010-11-23 05:04:34 +08:00
John Bender
d94b2c536b added tests for basic support attributes 2010-11-23 05:04:33 +08:00
scottjehl
3cb0e3c2d0 fixed typo in propExists. thx @johnbender 2010-11-22 15:48:14 -05:00
scottjehl
d61ea68bfd tweaks to the demo css, markup 2010-11-22 12:30:32 -05:00
scottjehl
416cf38de5 fixed some bugs in the demo 2010-11-22 11:50:19 -05:00
scottjehl
47ca4d5962 removed unnecessary print from demo 2010-11-21 21:55:14 -05:00
scottjehl
0884d87709 half built demo - more to do 2010-11-21 21:51:26 -05:00
scottjehl
a0596434bc moved the ID creation string escape function from core to listview. No other plugins use it. 2010-11-19 23:21:16 -05:00
scottjehl
ba5fea7f1e removed theme option from fieldcontain. ish didn't make no sense 2010-11-19 22:52:05 -05:00
scottjehl
93179f9a3d updated comment about license to match other jQuery projects - MIT "or" GPL 2010-11-19 22:47:47 -05:00
scottjehl
110b095eb5 fixed typo 2010-11-19 22:11:41 -05:00
scottjehl
6711e11e97 made sure collapsible doesn't cause the address bar to show up on ios when clicked. Fixes #500 2010-11-19 21:32:17 -05:00
scottjehl
2ed21499d1 made sure address bar doesn't appear when opening select menu 2010-11-19 21:28:38 -05:00
scottjehl
d1c839613d made sure corners are removed on list items that used to be first or last when new items are appended. Fixes #400 2010-11-19 21:07:34 -05:00
scottjehl
a731e48e68 made sure select button gets active button class while open 2010-11-19 19:19:51 -05:00
scottjehl
76f5c26624 cleaned up css styles - ui-selectmenu instead of ui-listview 2010-11-19 19:15:48 -05:00
scottjehl
ed82d39824 removed inner text shadow on ios text inputs 2010-11-19 18:15:34 -05:00
scottjehl
364405e72e updated refs to core file 2010-11-19 17:40:02 -05:00
scottjehl
b2e306c667 removed theme coloring for selectmenu screen when in overlay mode. 2010-11-19 17:32:09 -05:00
scottjehl
b56939faf7 updated selectmenu to use position plugin for overlay version 2010-11-19 17:31:20 -05:00
scottjehl
23ea598b83 added jquery ui position plugin 2010-11-19 17:30:22 -05:00
John Bender
d0cca83be8 tests for default resolution break points, some missing semicolons, and element reference in each loop 2010-11-19 01:20:55 -08:00
John Bender
19cf97465c add tests for orientation change 2010-11-19 01:13:00 -08:00
John Bender
d9f94ea4cd started testing on document ready for media and removed unnecessary expects 2010-11-19 00:51:05 -08:00
John Bender
232926fb85 test for many class additions with many resolution breakpoints 2010-11-19 00:41:14 -08:00
John Bender
622eba46e6 alternate html tag class case for breakpoints 2010-11-19 00:38:41 -08:00
John Bender
e5f9028ea7 first media query break point class addition test 2010-11-19 00:34:44 -08:00
John Bender
8724132d16 small tweak to teardown and setup 2010-11-19 00:01:36 -08:00
John Bender
96d0973b6f added setup and teardown for stubbed methods, added module definition to widget core tests 2010-11-18 23:47:40 -08:00
John Bender
5f59a3908b added negative case for basic absolute position test 2010-11-18 23:38:54 -08:00
John Bender
319e3054cd added media core tests 2010-11-18 23:35:44 -08:00
John Bender
330dc18dbb removed unnecessary script tag from widget unit test page 2010-11-18 22:54:52 -08:00
John Bender
4d510e4b31 small whitespace correction 2010-11-18 22:05:10 -08:00
John Bender
a314d904c2 test description corrections 2010-11-18 22:05:10 -08:00
John Bender
f170be2a03 minor white space issue 2010-11-18 22:05:10 -08:00
John Bender
3834f56d35 added two more negative case tests 2010-11-18 22:05:10 -08:00
John Bender
04a29ba83b first tests for widget core added 2010-11-18 22:05:10 -08:00
scottjehl
f56fe84245 fixed a docs typo 2010-11-18 22:56:40 -05:00
scottjehl
ea8545928e shifted the order a little 2010-11-18 22:52:35 -05:00
scottjehl
9ff89b7115 renamed jquery.mobile.js jquery.mobile.core.js. updated build files, etc to match 2010-11-18 22:50:33 -05:00
scottjehl
08e6e2f603 added quick documentation for degradeInputs 2010-11-18 22:40:18 -05:00
scottjehl
c636b774ab updated docs to include new button methods 2010-11-18 22:18:20 -05:00
scottjehl
c8654bfcfc updated docs to include new slider methods 2010-11-18 22:18:20 -05:00
scottjehl
909a0d0f08 removed transitions property from the configuration and updated docs to match. 2010-11-18 22:18:20 -05:00
Kin Blas
dbdfd23541 Initial checkin of experimental support for momentum scrolling. We'd really like native browser support for sub-page scrolling, but until then, we need something.
This version supports simulated scrolling via the CSS3 transform property by default, but also supports an option for positioning the old-fashioned way with top and left properties.

Still some code clean-up to do, but folks can start playing with it.

Some items/issues left to look into:

- Experiment with event delegation so we can implement nested scrollviews.
- Implement scroll direction locking.
- Decide whether to conditionally inject clip/view markup.
- Decide on final ui class names.
- Decide on how scrolling behavior is actually invoked. (data-* attribute or class)
- Decide on final set of notifications we'll need to fire off.
- Add an API so that scroll position can be adjusted after a resize/orientation change.
- Documentation that describes potential problems with performance, memory usage, etc, and workarounds.
2010-11-18 15:12:27 -08:00
Leon Brocard
42d20b4b08 Update a few remaining links from 1.0a1 to 1.0a2 2010-11-18 22:40:10 +08:00
scottjehl
e7269f4df2 moved orientationchange event trigger over to media js file. Cleaned up event bindings where orientation and breakpoint classes are applied. 2010-11-17 11:55:15 -05:00
scottjehl
82c48b2311 sorted breakpoints ascending after addition 2010-11-17 11:55:15 -05:00
scottjehl
2ade27bdcf removed old manifest files - index.php is now used in their place. 2010-11-17 11:55:15 -05:00
scottjehl
28a10ec74d Moved all of the media query and responsive design related scripting to jquery.mobile.media.js. This plugin can run independent of mobile core, with the exception that it does bind to orientationchange, which is defined in the events js. Fixes #388 2010-11-17 11:55:15 -05:00
Todd Parker
d7becdc728 Merge branch 'master' of github.com:jquery/jquery-mobile 2010-11-17 11:00:53 -05:00
Todd Parker
bf0a32f540 Updated docs from $.changePage() to $.mobile.changePage(). Fixes #488 2010-11-17 11:00:40 -05:00
scottjehl
5e90786374 added enable and disable methods to form buttons 2010-11-17 10:27:35 -05:00
Yuki KODAMA
2dea6cd721 implemented 'refresh' method for slider widget 2010-11-17 19:34:46 +09:00
Yuki KODAMA
d1e37647b8 added 'enable' and 'disable' methods to slider widget 2010-11-17 19:34:08 +09:00
Yuki KODAMA
b7b63f526e fixed docs for flip toggle switch widget 2010-11-17 19:33:07 +09:00
Yuki KODAMA
b93f5d200d fixed docs for slider widgets 2010-11-17 19:32:31 +09:00
scottjehl
061edecac1 added z-index rules to ensure label sits on top of input, regardless of source order. 2010-11-16 17:17:19 -05:00
scottjehl
2b226d05ce make sure pop'd page is defined before using. 2010-11-16 12:18:42 -05:00
Richard Stutfield
6603c84ef5 remove empty line 2010-11-16 22:56:49 +08:00
Richard Stutfield
d7a9d832db Fix form submit within a dialog. 2010-11-16 22:56:48 +08:00
Richard Stutfield
791f7aa61e Dialog: fixed links not working in dialogs. Fixed #448 - Dialog: clicking link in dialog closes dialog and doesn't do anything else 2010-11-16 22:56:48 +08:00
kptdobe
c413b2f86f fixed doc: missing/invalid HTML tags and wrong paths 2010-11-16 22:42:02 +08:00
kptdobe
15e8fa11a5 fixed doc homepage wrong paths 2010-11-16 22:42:02 +08:00
scottjehl
bffff87441 changed docs for live event => bind event 2010-11-12 15:46:00 -05:00
scottjehl
0cf915eb4b updated version 2010-11-12 08:27:33 -05:00
scottjehl
d692504c26 Merge branch 'master' of github.com:jquery/jquery-mobile 2010-11-12 08:25:58 -05:00
scottjehl
cf2fc6434e added docs for media query function 2010-11-11 21:50:39 -05:00
scottjehl
14b4c9a167 moved $.media function over to $.mobile object 2010-11-11 21:45:17 -05:00
scottjehl
e89ebc126e Input types can now degrade to alternate types, instead of text. First such example is type=range degrades to type=number. Fixes issue #415, Fixes #404 2010-11-11 21:43:01 -05:00
883 changed files with 77663 additions and 38630 deletions

6
.gitignore vendored
View file

@ -5,3 +5,9 @@
.DS_Store
cache/
combined/
combine/
compiled/
tmp/
*.swp
.gitignore
tests/speed/stats/stats.db

View file

@ -1,10 +0,0 @@
#thx askapache.com
<FilesMatch "\.(php|html|htm|js|css)$">
FileETag None
<IfModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</IfModule>
</FilesMatch>

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.

260
Makefile Executable file → Normal file
View file

@ -1,105 +1,189 @@
# Helper Variables
# The command to replace the @VERSION in the files with the actual version
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 */"
VER = $(shell cat version.txt)
SED_VER = sed "s/@VERSION/${VER}/"
# The output folder for the finished files
OUTPUT = compiled
DIR = jquery.mobile-${VER}
MAX = ${DIR}.js
MIN = ${DIR}.min.js
CSS = ${DIR}.css
CSSMIN = ${DIR}.min.css
# 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}
FILES = js/jquery.ui.widget.js \
js/jquery.mobile.widget.js \
js/jquery.mobile.support.js \
js/jquery.mobile.event.js \
js/jquery.mobile.hashchange.js \
js/jquery.mobile.page.js \
js/jquery.mobile.fixHeaderFooter.js \
js/jquery.mobile.forms.checkboxradio.js \
js/jquery.mobile.forms.textinput.js \
js/jquery.mobile.forms.select.js \
js/jquery.mobile.buttonMarkup.js \
js/jquery.mobile.forms.button.js \
js/jquery.mobile.forms.slider.js \
js/jquery.mobile.collapsible.js \
js/jquery.mobile.controlGroup.js \
js/jquery.mobile.fieldContain.js \
js/jquery.mobile.listview.js \
js/jquery.mobile.listview.filter.js \
js/jquery.mobile.dialog.js \
js/jquery.mobile.navbar.js \
js/jquery.mobile.grid.js \
js/jquery.mobile.js
# The CSS theme being used
THEME = default
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
RUN_JS = @@java -XX:ReservedCodeCacheSize=64m -classpath build/js.jar:build/google-compiler-20111003.jar org.mozilla.javascript.tools.shell.Main
all: mobile min css cssmin
clean:
@@rm -rf ${DIR}*
css:
@@head -8 js/jquery.mobile.js | ${SED_VER} > ${CSS}
@@cat ${CSSFILES} >> ${CSS}
# Build Targets
cssmin: css
@@head -8 js/jquery.mobile.js | ${SED_VER} > ${CSSMIN}
@@java -jar build/yuicompressor-2.4.2.jar --type css ${CSS} >> ${CSSMIN}
# When no build target is specified, all gets ran
all: init css js zip notify
mobile:
@@head -8 js/jquery.mobile.js | ${SED_VER} > ${MAX}
@@cat ${FILES} >> ${MAX}
min: mobile
@@head -8 js/jquery.mobile.js | ${SED_VER} > ${MIN}
@@java -jar build/google-compiler-20100917.jar --js ${MAX} --warning_level QUIET --js_output_file ${MIN}.tmp
@@cat ${MIN}.tmp >> ${MIN}
@@rm -f ${MIN}.tmp
# Build and minify the CSS files
css: init
# 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.
# -------------------------------------------------
zip: clean min cssmin
@@mkdir -p ${DIR}
@@cp ${DIR}*.js ${DIR}/
@@cp ${DIR}*.css ${DIR}/
@@cp -R themes/default/images ${DIR}/
@@zip -r ${DIR}.zip ${DIR}
# Used by the jQuery team to deploy a build to the CDN
deploy: zip
# Deploy to CDN
@@mv ${DIR} ${VER}
@@cp ${DIR}.zip ${VER}/
@@scp -r ${VER} jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
@@mv ${VER} ${DIR}
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
# -------------------------------------------------
# Deploy Demos
@@mkdir -p ${VER}
@@cp -r index.html themes experiments docs ${VER}/
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|"text/javascript" src="../../../js|"text/javascript" src="js|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|"text/javascript" src="../../js|"text/javascript" src="js|g' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|"text/javascript" src="../js|"text/javascript" src="js|g' {} \;
# 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}
@@rm -rf tmp
@@mkdir -p ${OUTPUT}
# -------------------------------------------------
@@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|<script type="text/javascript" src="js/all|<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script><script type="text/javascript" src="js/all|' {} \;
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="js/all"|src="http://code.jquery.com/mobile/${VER}/${DIR}.min.js"|g' {} \;
# 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
# -------------------------------------------------
# Output a message saying the process is complete
notify: init
@@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
# -------------------------------------------------
# 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
# -------------------------------------------------
# -------------------------------------------------
# -------------------------------------------------
# -------------------------------------------------
#
# For jQuery Team Use Only
#
# -------------------------------------------------
# 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/
# -------------------------------------------------
# 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}
# -------------------------------------------------
@@scp -r ${VER} jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/

114
README.md
View file

@ -1,19 +1,107 @@
Early stage development for the jQuery Mobile UI Framework.
Code is subject to change dramatically!
jQuery Mobile Framework
=======================
[Official Site: http://jquerymobile.com](http://jquerymobile.com)
Usage
=====
[Demos and Documentation](http://jquerymobile.com/test/)
Early documentation: https://github.com/jquery/jquery-mobile/wiki/_pages
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):
For now, I've set things up with a little combinator script to concat all the css and js files into one request and gzip. (js/ and themes/default)
You'll need to point your local apache & php webserver at this root directory in order to preview things.
git clone git://github.com/jquery/jquery-mobile.git
cd jquery-mobile
make
If you don't currently have a webserver running locally, a 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.
An 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.
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.
Whenever this configuration becomes inconvenient, we can remove it, obviously it's not meant to stay!
How to build a self-contained version of the Docs/Demos
=======================================================
Once you have your own cloned repo on your computer:
- when adding a js or css file, add it to the manifest in its directory and it'll be included in the request
- As far as JS files go, jQuery.mobile.js is the starting point.
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:
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 [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).
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.
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.
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)
You need the following Apache 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,63 +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.button.css,
jquery.mobile.collapsible.css,
jquery.mobile.controlgroup.css,
jquery.mobile.core.css,
jquery.mobile.dialog.css,
jquery.mobile.forms.checkboxradio.css,
jquery.mobile.forms.fieldcontain.css,
jquery.mobile.forms.select.css,
jquery.mobile.forms.slider.css,
jquery.mobile.forms.textinput.css,
jquery.mobile.grids.css,
jquery.mobile.headerfooter.css,
jquery.mobile.listview.css,
jquery.mobile.navbar.css,
jquery.mobile.theme.css,
jquery.mobile.transitions.css"/>
<property name="js-sources" value="jquery.js,
jquery.mobile.buttonMarkup.js,
jquery.mobile.collapsible.js,
jquery.mobile.controlGroup.js,
jquery.mobile.dialog.js,
jquery.mobile.event.js,
jquery.mobile.fieldContain.js,
jquery.mobile.fixHeaderFooter.js,
jquery.mobile.forms.ajaxform.js,
jquery.mobile.forms.button.js,
jquery.mobile.forms.checkboxradio.js,
jquery.mobile.forms.select.js,
jquery.mobile.forms.slider.js,
jquery.mobile.forms.textinput.js,
jquery.mobile.grid.js,
jquery.mobile.hashchange.js,
jquery.mobile.js,
jquery.mobile.listview.filter.js,
jquery.mobile.listview.js,
jquery.mobile.navbar.js,
jquery.mobile.page.js,
jquery.mobile.support.js,
jquery.mobile.widget.js,
jquery.ui.widget.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,18 +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 = '';
reset($elements);
while (list(,$element) = each($elements)) {
$contents .= "\n\n" . file_get_contents($element);
// Loop through the files adding them to a string
foreach ( $files as $file ) {
$contents .= file_get_contents($file). "\n\n";
}
header("Content-Type: " . $type);
header("Content-Length: " . strlen($contents));
// Set the content type, filesize and an expiration so its not cached
header('Content-Type: ' . $type);
header('Content-Length: ' . strlen($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 a:focus { 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; height: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; position: relative; }
.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: 1px 0px 1px 2px; 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; left: -9999px; }
.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: 0; }
.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:-99999px; }
.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,19 +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 { margin: 0 -5px 0 0; display: inline-block; }
.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; }
@ -23,5 +20,9 @@
.ui-controlgroup .ui-btn-icon-notext .ui-btn-inner { padding: 5px 6px 5px 5px; }
*/
.min-width-480px .ui-controlgroup-label { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
.min-width-480px .ui-controlgroup-controls { width: 60%; display: inline-block; }
@media all and (min-width: 450px){
.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,13 +1,10 @@
/*
* 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; }
.ui-checkbox .ui-btn, .ui-radio .ui-btn { margin: 0; text-align: left; }
.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; }
.ui-checkbox .ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-btn-icon-left .ui-btn-inner { padding-left: 45px; }
.ui-checkbox .ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; }
.ui-checkbox .ui-icon, .ui-radio .ui-icon { top: 1.1em; }
.ui-checkbox .ui-btn-icon-left .ui-icon, .ui-radio .ui-btn-icon-left .ui-icon {left: 15px; }
.ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon {right: 15px; }
/* input, label positioning */
.ui-checkbox input,.ui-radio input { position:absolute; left:20px; top:50%; width: 10px; height: 10px; margin:-5px 0 0 0; outline: 0 !important; }
.ui-checkbox input,.ui-radio input { position:absolute; left:20px; top:50%; width: 10px; height: 10px; margin:-5px 0 0 0; outline: 0 !important; z-index: 1; }

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

@ -0,0 +1,42 @@
.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 { 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; }
.ui-select .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; }
.ui-select .ui-btn-icon-right .ui-icon { right: 15px; }
/* labels */
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; overflow: hidden; }
.ui-select .ui-btn-text { text-overflow: ellipsis; }
.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; }
.ui-selectmenu-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 99; }
.ui-screen-hidden, .ui-selectmenu-list .ui-li .ui-icon { display: none; }
.ui-selectmenu-list .ui-li .ui-icon { display: block; }
.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){
.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 */
.ui-selectmenu .ui-header h1:after { content: '.'; visibility: hidden; }

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

@ -0,0 +1,22 @@
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: 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; 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: -13px; }
.ui-input-search .ui-input-clear-hidden { display: none; }
/* orientation adjustments - incomplete!*/
@media all and (min-width: 450px){
.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,12 +1,9 @@
/*
* 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; }
.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;}
/* grid solo: 100 - single item fallback */
.ui-grid-solo .ui-block-a { width: 100%; float: none; }
/* grid a: 50/50 */
.ui-grid-a .ui-block-a, .ui-grid-a .ui-block-b { width: 50%; }
@ -22,4 +19,4 @@
/* grid d: 20/20/20/20/20 */
.ui-grid-d .ui-block-a, .ui-grid-d .ui-block-b, .ui-grid-d .ui-block-c, .ui-grid-d .ui-block-d, .ui-grid-d .ui-block-e { width: 20%; }
.ui-grid-d .ui-block-a { clear: left; }
.ui-grid-d .ui-block-a { clear: left; }

View file

@ -0,0 +1,51 @@
.ui-listview { margin: 0; counter-reset: listnumbering; }
.ui-content .ui-listview { margin: -15px; }
.ui-content .ui-listview-inset { margin: 1em 0; }
.ui-listview, .ui-li { list-style:none; padding:0; }
.ui-li, .ui-li.ui-field-contain { display: block; margin:0; position: relative; overflow: visible; text-align: left; border-width: 0; border-top-width: 1px; }
.ui-li .ui-btn-text a.ui-link-inherit { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.ui-li-divider, .ui-li-static { padding: .5em 15px; font-size: 14px; font-weight: bold; }
.ui-li-divider { counter-reset: listnumbering; }
ol.ui-listview .ui-link-inherit:before, ol.ui-listview .ui-li-static:before, .ui-li-dec { font-size: .8em; display: inline-block; padding-right: .3em; font-weight: normal;counter-increment: listnumbering; content: counter(listnumbering) ". "; }
ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid chance of duplication */
.ui-listview-inset .ui-li { border-right-width: 1px; border-left-width: 1px; }
.ui-li:last-child, .ui-li.ui-field-contain:last-child { border-bottom-width: 1px; }
.ui-li>.ui-btn-inner { display: block; position: relative; padding: 0; }
.ui-li .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li { padding: .7em 15px .7em 15px; display: block; }
.ui-li-has-thumb .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-thumb { min-height: 60px; padding-left: 100px; }
.ui-li-has-icon .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-icon { min-height: 20px; padding-left: 40px; }
.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-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){
.ui-li-aside { width: 45%; }
}
.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-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; 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; }
.ui-listview-filter-inset { margin: -15px -5px -15px -5px; background: transparent; }
.ui-li.ui-screen-hidden{display:none;}
/* Odd iPad positioning issue. */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
.ui-li .ui-btn-text { overflow: visible; }
}

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: -99999px; top: -99999px; }
.ui-navbar li .ui-btn, .ui-navbar .ui-navbar-toggle .ui-btn { display: block; font-size: 12px; text-align: center; margin: 0; outline: none; border-right-width: 0; }
.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; 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,
@ -23,4 +18,4 @@
.ui-navbar-expanded .ui-btn-icon-bottom .ui-btn-inner { padding: 15px 5px 45px; text-align: center; }
.ui-navbar-expanded .ui-btn-icon-bottom .ui-icon { bottom: 15px; }
.ui-navbar-expanded li .ui-btn .ui-btn-inner { min-height: 2.5em; }
.ui-navbar-expanded .ui-navbar-noicons .ui-btn .ui-btn-inner { padding-top: 1.8em; padding-bottom: 1.9em; }
.ui-navbar-expanded .ui-navbar-noicons .ui-btn .ui-btn-inner { padding-top: 1.8em; padding-bottom: 1.9em; }

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,11 +1,3 @@
/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
* Note: Code is in draft form and is subject to change
*/
/*####################################################################################################################################
A
@ -18,25 +10,23 @@
background: #e99515;
color: #fff;
text-shadow: 0 -1px 0px #94440F;
background-image: -moz-linear-gradient(top,
#e9a015,
#e98a15);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #e9a015),
color-stop(1, #e98a15));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#e9a015', EndColorStr='#e98a15')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#e9a015), to(#e98a15)); /* Saf4+, Chrome */
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: -moz-linear-gradient(top,
#ea9e0c,
#e68510);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #ea9e0c),
color-stop(1, #e68510));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#ea9e0c', EndColorStr='#e68510')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#ea9e0c), to(#e68510)); /* Saf4+, Chrome */
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;
@ -45,13 +35,12 @@
border: 1px solid #b77504;
background: #ed9730;
color: #fff;
background-image: -moz-linear-gradient(top,
#edab30,
#ed9730);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #edab30),
color-stop(1, #ed9730));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#edab30', EndColorStr='#ed9730')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#edab30), to(#ed9730)); /* Saf4+, Chrome */
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;
@ -60,13 +49,12 @@
border: 1px solid #BD610D;
background: #BA6E11;
color: #fff;
background-image: -moz-linear-gradient(top,
#BA8011,
#BA6E11);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #BA8011),
color-stop(1, #BA6E11));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#BA8011', EndColorStr='#BA6E11')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#BA8011), to(#BA6E11)); /* Saf4+, Chrome */
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,
@ -91,25 +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: -moz-linear-gradient(top,
#333 0%,
#333 5%,
#444 15%,
#444 60%,
#222 100%);
background-image: -webkit-gradient(linear, center top, center bottom,
color-stop(0, #333),
color-stop(5%, #333),
color-stop(15%, #444),
color-stop(60%, #444),
color-stop(1, #222));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#333333', EndColorStr='#222222')";
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(#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,
@ -138,25 +120,23 @@
background: #333333;
color: #fff;
text-shadow: 0 -1px 0px #111;
background-image: -moz-linear-gradient(top,
#555555,
#333333);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #555555),
color-stop(1, #333333));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#555555', EndColorStr='#333333')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#555), to(#333)); /* Saf4+, Chrome */
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: -moz-linear-gradient(top,
#5E5E5E,
#393939);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #5E5E5E),
color-stop(1, #393939));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#5E5E5E', EndColorStr='#393939')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#5E5E5E), to(#393939)); /* Saf4+, Chrome */
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;
@ -165,13 +145,12 @@
border: 1px solid #232323;
background: #494949;
color: #fff;
background-image: -moz-linear-gradient(top,
#6E6E6E,
#494949);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #6E6E6E),
color-stop(1, #494949));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#6E6E6E', EndColorStr='#494949')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#6E6E6E), to(#494949)); /* Saf4+, Chrome */
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 {
@ -181,13 +160,12 @@
border: 1px solid #232323;
background: #292929;
color: #fff;
background-image: -moz-linear-gradient(top,
#4E4E4E,
#292929);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #4E4E4E),
color-stop(1, #292929));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#4E4E4E', EndColorStr='#292929')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#4E4E4E), to(#292929)); /* Saf4+, Chrome */
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;
@ -215,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;
@ -249,13 +228,12 @@
background: #e5e5e5;
color: #111;
text-shadow: 0 1px 0px #fff;
background-image: -moz-linear-gradient(top,
#eeeeee,
#e5e5e5);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #eeeeee),
color-stop(1, #e5e5e5));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee', EndColorStr='#e5e5e5')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#e5e5e5)); /* Saf4+, Chrome */
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,
@ -277,13 +255,12 @@
border: 1px solid #ccc;
background: #e5e5e5;
color: #444;
background-image: -moz-linear-gradient(top,
#eeeeee,
#e5e5e5);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #eeeeee),
color-stop(1, #e5e5e5));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee', EndColorStr='#e5e5e5')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#e5e5e5)); /* Saf4+, Chrome */
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;
@ -292,13 +269,12 @@
border: 1px solid #ccc;
background: #f5f5f5;
color: #222;
background-image: -moz-linear-gradient(top,
#ffffff,
#f5f5f5);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #ffffff),
color-stop(1, #f5f5f5));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#f5f5f5')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f5f5f5)); /* Saf4+, Chrome */
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;
@ -307,18 +283,18 @@
border: 1px solid #ccc;
background: #d5d5d5;
color: #111;
background-image: -moz-linear-gradient(top,
#dddddd,
#d5d5d5);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #dddddd),
color-stop(1, #d5d5d5));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#dddddd', EndColorStr='#d5d5d5')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#d5d5d5)); /* Saf4+, Chrome */
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;
@ -351,19 +327,12 @@
background: #cbcbcb;
color: #666;
text-shadow: 0 1px 0px #fff;
background-image: -moz-linear-gradient(top,
#ddd 0%,
#ccc 5%,
#bbb 15%,
#ddd 95%,
#ccc 100%);
background-image: -webkit-gradient(linear, center top, center bottom,
color-stop(0, #ddd),
color-stop(5%, #ccc),
color-stop(15%, #bbb),
color-stop(95%, #ddd),
color-stop(1, #ccc));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#aaaaaa', EndColorStr='#e5e5e5')";
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(#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,
@ -384,13 +353,12 @@
border: 1px solid #c5c5c5;
background: #ddd;
color: #666;
background-image: -moz-linear-gradient(top,
#d5d5d5,
#dddddd);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #d5d5d5),
color-stop(1, #dddddd));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#d5d5d5', EndColorStr='#dddddd')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#d5d5d5), to(#ddd)); /* Saf4+, Chrome */
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;
@ -399,13 +367,12 @@
border: 1px solid #aaa;
background: #c5c5c5;
color: #666;
background-image: -moz-linear-gradient(top,
#c5c5c5,
#cccccc);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #c5c5c5),
color-stop(1, #cccccc));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#c5c5c5', EndColorStr='#cccccc')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#c5c5c5), to(#ccc)); /* Saf4+, Chrome */
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;
@ -414,13 +381,12 @@
border: 1px solid #999;
background: #b5b5b5;
color: #444;
background-image: -moz-linear-gradient(top,
#b5b5b5,
#bbbbbb);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #b5b5b5),
color-stop(1, #bbbbbb));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#b5b5b5', EndColorStr='#bbbbbb')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#b5b5b5), to(#bbb)); /* Saf4+, Chrome */
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;
@ -444,20 +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: -moz-linear-gradient(top,
#ffffff 0%,
#f5f5f5 15%,
#eeeeee 100%);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #ffffff),
color-stop(15%, #f5f5f5),
color-stop(1, #eeeeee));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#f5f5f5', EndColorStr='#eeeeee')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(15%, #f5f5f5), to(#eee)); /* Saf4+, Chrome */
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;
@ -484,17 +448,12 @@
background: #dedede;
color: #000;
text-shadow: 0 1px 0px #fff;
background-image: -moz-linear-gradient(top,
#ffffff 0%,
#cccccc 50%,
#b5b5b5 50%,
#eeeeee 100%);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #ffffff),
color-stop(.5, #cccccc),
color-stop(.5, #b5b5b5),
color-stop(1, #eeeeee));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff',EndColorStr='#b5b5b5')";
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(#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,
@ -515,17 +474,12 @@
background: #dfdfdf;
color: #333;
text-shadow: 0 1px 0px #fff;
background-image: -moz-linear-gradient(top,
#f5f5f5 0%,
#cccccc 50%,
#b5b5b5 50%,
#f5f5f5 100%);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #f5f5f5),
color-stop(.5, #cccccc),
color-stop(.5, #b5b5b5),
color-stop(1, #f5f5f5));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#f5f5f5', EndColorStr='#b5b5b5')";
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(#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;
@ -535,17 +489,12 @@
background: #e5e5e5;
color: #333;
text-shadow: 0 1px 0px #fff;
background-image: -moz-linear-gradient(top,
#ffffff 0%,
#dddddd 50%,
#cccccc 50%,
#ffffff 100%);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #ffffff),
color-stop(.5, #dddddd),
color-stop(.5, #cccccc),
color-stop(1, #ffffff));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#cccccc')";
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(#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;
@ -554,17 +503,12 @@
border: 1px solid #888;
background: #ccc;
color: #333;
background-image: -moz-linear-gradient(top,
#dddddd 0%,
#cccccc 50%,
#bbbbbb 50%,
#dddddd 100%);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #dddddd),
color-stop(.5, #cccccc),
color-stop(.5, #bbbbbb),
color-stop(1, #dddddd));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#dddddd', EndColorStr='#bbbbbb')";
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(#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;
@ -578,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;
@ -618,16 +563,15 @@ a.ui-link-inherit {
cursor: pointer;
text-decoration: none;
border: 1px solid #FFBC19;
background: #4596ce;
background: #FFBC19;
color: #222;
text-shadow: 0 1px 0px #eee;
background-image: -moz-linear-gradient(top,
#FFDC52,
#FFBC19);
background-image: -webkit-gradient(linear,left top,left bottom,
color-stop(0, #FFDC52),
color-stop(1, #FFBC19));
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#FFDC52', EndColorStr='#FFBC19')";
background-image: -webkit-gradient(linear, left top, left bottom, from(#FFDC52), to(#FFBC19)); /* Saf4+, Chrome */
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;
@ -701,109 +645,168 @@ a.ui-link-inherit {
/* Interaction Cues
----------------------------------*/
.ui-disabled {
cursor: default !important;
opacity: .3;
}
.ui-disabled, .ui-disabled a {
cursor: default !important;
}
/* Icons
----------------------------------*/
/* .ui-icon { background-position: 50% 50%; background-repeat: no-repeat; background-color: #fff; background-color: rgba(0,0,0,.4); -moz-border-radius: 9px; -webkit-border-radius: 9px; border-radius: 9px; } */
-----------------------------------------------------------------------------------------------------------*/
.ui-icon {
background-image: url(images/icons-18-white.png);
background-repeat: no-repeat;
background-color: #666;
background-color: rgba(0,0,0,.4);
-moz-border-radius: 9px;
-webkit-border-radius: 9px;
border-radius: 9px;
}
.ui-icon-disc {
background-color: #666;
background-color: rgba(0,0,0,.3);
-moz-border-radius: 9px;
-webkit-border-radius: 9px;
border-radius: 9px;
background: #666;
background: rgba(0,0,0,.4);
background-image: url(images/icons-18-white.png);
background-repeat: no-repeat;
-moz-border-radius: 9px;
-webkit-border-radius: 9px;
border-radius: 9px;
}
/* alt color */
.ui-icon-black {
background-image: url(images/icons-18-black.png);
}
.ui-icon-black-disc {
background-color: #fff;
background-color: rgba(255,255,255,.3);
-moz-border-radius: 9px;
-webkit-border-radius: 9px;
border-radius: 9px;
/* Alt icon color
-----------------------------------------------------------------------------------------------------------*/
.ui-icon-alt {
background: #fff;
background: rgba(255,255,255,.3);
background-image: url(images/icons-18-black.png);
background-repeat: no-repeat;
}
/* retina */
@media screen and (-webkit-min-device-pixel-ratio: 2), screen and (max--moz-device-pixel-ratio: 2) {
.ui-icon {
background-size: 558px 18px;
background-image: url(images/icons-36-white.png);
}
.ui-icon-black {
background-image: url(images/icons-36-black.png);
}
/* HD/"retina" sprite
-----------------------------------------------------------------------------------------------------------*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-resolution: 240dpi) {
.ui-icon-plus, .ui-icon-minus, .ui-icon-delete, .ui-icon-arrow-r,
.ui-icon-arrow-l, .ui-icon-arrow-u, .ui-icon-arrow-d, .ui-icon-check,
.ui-icon-gear, .ui-icon-refresh, .ui-icon-forward, .ui-icon-back,
.ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-search,
.ui-icon-checkbox-off, .ui-icon-checkbox-on, .ui-icon-radio-off, .ui-icon-radio-on {
background-image: url(images/icons-36-white.png);
-moz-background-size: 776px 18px;
-o-background-size: 776px 18px;
-webkit-background-size: 776px 18px;
background-size: 776px 18px;
}
.ui-icon-alt {
background-image: url(images/icons-36-black.png);
}
}
/*plus minus*/
.ui-icon-plus { background-position: -0 0; }
.ui-icon-minus { background-position: -36px 0; }
/* plus minus */
.ui-icon-plus {
background-position: -0 50%;
}
.ui-icon-minus {
background-position: -36px 50%;
}
/* delete/close */
.ui-icon-delete { background-position: -72px 0; }
/*arrows*/
.ui-icon-arrow-r { background-position: -108px 0; }
.ui-icon-arrow-l { background-position: -144px 0; }
.ui-icon-arrow-u { background-position: -180px 0; }
.ui-icon-arrow-d { background-position: -216px 0; }
.ui-icon-check { background-position: -252px 0; }
.ui-icon-gear { background-position: -288px 0; }
.ui-icon-refresh { background-position: -324px 0; }
.ui-icon-forward { background-position: -360px 0; }
.ui-icon-back { background-position: -396px 0; }
.ui-icon-grid { background-position: -432px 0; }
.ui-icon-star { background-position: -468px 0; }
.ui-icon-alert { background-position: -504px 0; }
.ui-icon-info { background-position: -540px 0; }
/*checks,radios*/
.ui-icon-checkbox-off,
.ui-icon-checkbox-on,
.ui-icon-radio-off,
.ui-icon-radio-on {
background-color: transparent;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
background-size: 20px 20px;
.ui-icon-delete {
background-position: -72px 50%;
}
.ui-icon-checkbox-off { background-image: url(images/form-check-off.png); }
.ui-icon-checkbox-on { background-image: url(images/form-check-on.png); }
.ui-icon-radio-off { background-image: url(images/form-radio-off.png); }
.ui-icon-radio-on { background-image: url(images/form-radio-on.png); }
/* arrows */
.ui-icon-arrow-r {
background-position: -108px 50%;
}
.ui-icon-arrow-l {
background-position: -144px 50%;
}
.ui-icon-arrow-u {
background-position: -180px 50%;
}
.ui-icon-arrow-d {
background-position: -216px 50%;
}
.ui-icon-search { background-image: url(images/icon-search-black.png); background-size: 16px 16px; }
/* misc */
.ui-icon-check {
background-position: -252px 50%;
}
.ui-icon-gear {
background-position: -288px 50%;
}
.ui-icon-refresh {
background-position: -324px 50%;
}
.ui-icon-forward {
background-position: -360px 50%;
}
.ui-icon-back {
background-position: -396px 50%;
}
.ui-icon-grid {
background-position: -432px 50%;
}
.ui-icon-star {
background-position: -468px 50%;
}
.ui-icon-alert {
background-position: -504px 50%;
}
.ui-icon-info {
background-position: -540px 50%;
}
.ui-icon-home {
background-position: -576px 50%;
}
.ui-icon-search {
background-position: -612px 50%;
}
.ui-icon-checkbox-off {
background-position: -684px 50%;
}
.ui-icon-checkbox-on {
background-position: -648px 50%;
}
.ui-icon-radio-off {
background-position: -756px 50%;
}
.ui-icon-radio-on {
background-position: -720px 50%;
}
/* checks,radios */
.ui-checkbox .ui-icon {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.ui-icon-checkbox-off,
.ui-icon-radio-off {
background-color: transparent;
}
.ui-checkbox-on .ui-icon,
.ui-radio-on .ui-icon {
background-color: #FFBC19; /* NOTE: this hex should match the active state color. It's repeated here for cascade */
}
.ui-icon-searchfield {
background-image: url(images/icon-search-black.png);
background-size: 16px 16px;
}
/* loading icon */
.ui-icon-loading {
background-image: url(images/ajax-loader.png);
width: 40px;
height: 40px;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border-radius: 20px;
background-size: 35px 35px;
background-image: url(images/ajax-loader.png);
width: 40px;
height: 40px;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border-radius: 20px;
background-size: 35px 35px;
}
/* btn Corner radius */
/* Button corner classes
-----------------------------------------------------------------------------------------------------------*/
.ui-btn-corner-tl {
-moz-border-radius-topleft: 1em;
-webkit-border-top-left-radius: 1em;
@ -869,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 */
@ -912,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;
@ -961,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;
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -1,12 +1,344 @@
.ui-mobile #jqm-home { background: #e5e5e5 url(../images/jqm-sitebg.png) top center repeat-x; }
.ui-mobile #jqm-homeheader { padding: 55px 25px 0; text-align: center }
.ui-mobile #jqm-homeheader h1 { margin: 0 0 10px; }
.ui-mobile #jqm-homeheader p { margin: 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; top: 0; right: 0; }
.ui-mobile .jqm-themeswitcher { clear: both; margin: 20px 0 0; }
/* jqm docs css
h2 { margin-top:1.5em; }
Beware: lots of last-minute CSS going on in here
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: -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%; }
dt code, dd code { font-size:1.3em; line-height:150%; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
#jqm-homeheader img { width: 235px; }
img { max-width: 100%; }
.ui-header .jqm-home { top:0.65em; }
nav { margin: 0; }
p.intro {
font-size: .96em;
line-height: 1.3;
border-top: 1px solid #75ae18;
border-bottom: 0;
background: none;
margin: 1.5em 0;
padding: 1.5em 15px 0;
}
p.intro strong {
color: #558e08;
}
.footer-docs {
padding: 5px 0;
}
.footer-docs p {
float: left;
margin-left:15px;
font-weight: normal;
font-size: .9em;
}
.type-interior .content-secondary {
border-right: 0;
border-left: 0;
margin: 10px -15px 0;
background: #fff;
border-top: 1px solid #ccc;
}
.type-home .ui-content {
margin-top: 5px;
}
.type-interior .ui-content {
padding-bottom: 0;
}
.content-secondary .ui-collapsible {
padding: 0 15px 10px;
}
.content-secondary .ui-collapsible-content {
padding: 0;
background: none;
border-bottom: none;
}
.content-secondary .ui-listview {
margin: 0;
}
/* new API additions */
dt {
margin: 35px 0 15px 0;
background-color:#ddd;
font-weight:normal;
}
dt code {
display:inline-block;
font-weight:bold;
color:#56A00E;
padding:3px 7px;
margin-right:10px;
background-color:#fff;
}
dd {
margin-bottom:10px;
}
dd .default { font-weight:bold; }
dd pre {
margin:0 0 0 0;
}
dd code { font-weight: normal; }
dd pre code {
margin:0;
border:none;
font-weight:normal;
font-size:100%;
background-color:transparent;
}
dd h4 { margin:15px 0 0 0; }
.localnav {
margin:0 0 20px 0;
overflow:hidden;
}
.localnav li {
float:left;
}
.localnav .ui-btn-inner {
padding: .6em 10px;
font-size:80%;
}
/* F bar theme - just for the docs overview headers */
.ui-bar-f {
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(#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 {
color: #fff;
}
.ui-bar-f .ui-link {
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;
}
/* docs site layout */
@media all and (min-width: 650px){
.jqm-home {
position: absolute;
left: 10px;
top: 0;
}
.type-home .ui-content {
margin-top: 5px;
}
.ui-mobile #jqm-homeheader {
max-width: 340px;
}
.ui-mobile .jqm-themeswitcher {
float: right;
}
p.intro {
margin: 2em 0;
}
.type-home .ui-content,
.type-interior .ui-content {
padding: 0;
background: url(../images/px-ccc.gif) 50% 0 repeat-y;
}
.type-interior .ui-content {
background-position: 45%;
overflow: hidden;
}
.content-secondary {
text-align: left;
float: left;
width: 45%;
background: none;
}
.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;
}
.ui-mobile #jqm-homeheader {
padding: 0;
}
.content-primary {
width: 45%;
float: right;
margin-top: 30px;
margin-right: 1%;
padding-right: 1%;
}
.content-primary ul:first-child {
margin-top: 0;
}
.content-secondary h2 {
position: absolute;
left: -9999px;
}
.type-interior .content-primary {
padding: 1.5em 6% 3em 0;
margin: 0;
}
/* fix up the collapsibles - expanded on desktop */
.content-secondary .ui-collapsible-heading {
display: none;
}
.content-secondary .ui-collapsible-contain {
margin:0;
}
.content-secondary .ui-collapsible-content {
display: block;
margin: 0;
padding: 0;
}
.type-interior .content-secondary .ui-li-divider {
padding-top: 1em;
padding-bottom: 1em;
}
.type-interior .content-secondary {
margin: 0;
padding: 0;
}
}
@media all and (min-width: 750px){
.type-home .ui-content,
.type-interior .ui-content {
background-position: 39%;
}
.content-secondary {
width: 34%;
}
.content-primary {
width: 56%;
padding-right: 1%;
}
.type-interior .ui-content {
background-position: 34%;
}
}
@media all and (min-width: 1200px){
.type-home .ui-content{
background-position: 38.5%;
}
.type-interior .ui-content {
background-position: 30%;
}
.content-secondary {
width: 30%;
padding-right:6%;
margin: 30px 0 20px 5%;
}
.type-interior .content-secondary {
margin: 0;
padding: 0;
}
.content-primary {
width: 50%;
margin-right: 5%;
padding-right: 3%;
}
.type-interior .content-primary {
width: 60%;
}
}

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.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -2,14 +2,14 @@
$.fn.addSourceLink = function(style){
return $(this).each(function(){
var link = $('<a href="#" data-inline="true">View Source</a>'),
var link = $('<a href="#" data-'+ $.mobile.ns +'inline="true">View Source</a>'),
src = src = $('<div></div>').append( $(this).clone() ).html(),
page = $( "<div data-role='dialog' data-theme='a'>" +
"<div data-role='header' data-theme='b'>" +
"<a href='#' class='ui-btn-left' data-icon='delete' data-iconpos='notext'>Close</a>"+
page = $( "<div data-"+ $.mobile.ns +"role='dialog' data-"+ $.mobile.ns +"theme='a'>" +
"<div data-"+ $.mobile.ns +"role='header' data-"+ $.mobile.ns +"theme='b'>" +
"<a href='#' class='ui-btn-left' data-"+ $.mobile.ns +"icon='delete' data-"+ $.mobile.ns +"iconpos='notext'>Close</a>"+
"<div class='ui-title'>jQuery Mobile Source Excerpt</div>"+
"</div>"+
"<div data-role='content'></div>"+
"<div data-"+ $.mobile.ns +"role='content'></div>"+
"</div>" )
.appendTo( "body" )
.page();
@ -21,7 +21,7 @@ $.fn.addSourceLink = function(style){
})
.click(function(){
var codeblock = $('<pre><code></code></pre>');
src = src.replace(/&/gmi, '&amp;').replace(/"/gmi, '&quot;').replace(/>/gmi, '&gt;').replace(/</gmi, '&lt;').replace('data-jqm-source="true"','');
src = src.replace(/&/gmi, '&amp;').replace(/"/gmi, '&quot;').replace(/>/gmi, '&gt;').replace(/</gmi, '&lt;').replace('data-'+ $.mobile.ns +'source="true"','');
codeblock.find('code').append(src);
var activePage = $(this).parents('.ui-page-active');
@ -38,5 +38,5 @@ $.fn.addSourceLink = function(style){
//set up view source links
$('div').live('pagebeforecreate',function(){
$(this).find('[data-jqm-source="true"]').addSourceLink();
$(this).find('[data-'+ $.mobile.ns +'source="true"]').addSourceLink();
});

View file

@ -1,19 +1,60 @@
//set up the theme switcher on the homepage
$('div').live('pagecreate',function(event){
if( !$(this).is('.ui-dialog')){
$('<a href="#">Switch theme</a>')
.buttonMarkup({
'icon':'gear',
'inline': true,
'shadow': false,
'theme': 'd'
})
.appendTo( $(this).find('.ui-content') )
.wrap('<div class="jqm-themeswitcher">')
.click(function(){
$.themeswitcher();
return false;
});
}
event.stopPropagation();
});
//>>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");
});
});
// 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 );
});
});
});
}
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
});
//>>excludeEnd("jqmBuildExclude");

View file

@ -1,21 +1,28 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Docs - Intro</title>
<link rel="stylesheet" href="../../themes/default" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Accessibility</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script type="text/javascript" src="../../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">
<div data-role="page" class="type-interior">
<div data-role="header">
<div data-role="header" data-theme="f">
<h1>Accessibility</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>Accessibility</h2>
<p>jQuery Mobile is built upon standard, semantic HTML, allowing pages to be accessible to the broadest range of devices possible. For A-Grade browsers, many of the components in jQuery Mobile leverage techniques such as focus management, keyboard navigation, and HTML attributes specified in the W3C's <a href="http://www.w3.org/TR/wai-aria/">WAI-ARIA</a> specification.</p>
@ -24,7 +31,33 @@
<p>While our accessibility implementation is currently a work in progress, we aim to provide a fully accessible suite of components for version 1.0.</p>
</div>
<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><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>
</ul>
</div>
</div>
</div><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>

View file

@ -1,42 +1,74 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Docs - Intro</title>
<link rel="stylesheet" href="../../themes/default" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Features</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script type="text/javascript" src="../../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">
<div data-role="page" class="type-interior">
<div data-role="header">
<h1>Features</h1>
<div data-role="header" data-theme="f">
<h1>Features</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>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 platforms</strong> - iOS, Android, Blackberry, Palm WebOS, Nokia/Symbian, Windows Mobile, bada, MeeGo with baseline support for all devices that understand HTML</li>
<li><strong>Lightweight size</strong> (12k 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 deskstop 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>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>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>New events</strong> streamline the process of supporting touch, mouse, and cursor focus-based user input methods with a simple API. </li>
<li><strong>New plugins</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>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>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>
</div>
<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><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>
</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>
</html>

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,24 +1,30 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<title>jQuery UI Mobile Framework - Documentation</title>
<link rel="stylesheet" href="../../themes/default" />
<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="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script type="text/javascript" src="../../js/"></script>
</head>
<body>
<div data-role="page" data-theme="b">
<div data-role="header" data-position="inline">
<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>About 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">
<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
<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>
@ -28,4 +34,4 @@
</div>
</body>
</html>
</html>

View file

@ -1,36 +1,67 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<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 type="text/javascript" src="../../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">
<div data-role="page" class="type-interior">
<div data-role="header">
<div data-role="header" data-theme="f">
<h1>Introduction</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>jQuerys mobile strategy can be summarized simply: Delivering top-of-the-line JavaScript in a unified User Interface that works across the most-used smartphone web browsers and tablet form factors.</p>
<h2>jQuery Mobile Overview</h2>
<p>jQuerys mobile strategy can be summarized simply: A unified user interface system that works seamlessly across all popular mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation. Focused on a lightweight codebase built on progressive enhancement with a flexible, easily themeable design.</p>
<p>The critical difference with our approach is the <a href="platforms.html">wide variety of mobile platforms were targeting</a> with jQuery Mobile. Weve been working hard at bringing jQuery support to all mobile browsers that are sufficiently-capable and have at least a nominal amount of market share. In this way, were treating mobile web browsers exactly how we treat desktop web browsers.</p>
<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" 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>
</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>

View file

@ -1,44 +1,99 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Docs - Intro</title>
<link rel="stylesheet" href="../../themes/default" />
<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="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script type="text/javascript" src="../../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">
<div data-role="page" class="type-interior">
<div data-role="header">
<div data-role="header" data-theme="f">
<h1>Supported platforms</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>Supported platforms</h2>
<p>For the alpha release, the following devices have been tested and should have a fairly solid jQuery Mobile experience. That being said, there are still a fair amount of bugs and performance improvements to be tackled before the 1.0 release in January. </p>
<div class="content-primary">
<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>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>Apple iOS: iPhone, iPod Touch, iPad (all versions)</li>
<li>Android: all devices (all versions)</li>
<li>Blackberry Torch (version 6)</li>
<li>Palm WebOS Pre, Pixi</li>
<li>Nokia N900 (in progress)</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>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>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>
<p>Older versions of Blackberry, Nokia/Symbian, and Windows Mobile may work but we're still seeing JavaScript errors and rendering bugs that need to be tracked down. We don't yet have phones to test Windows Mobile 7, bada, or MeeGo but these will be added as soon as we can get devices.</p>
<p>Since jQuery Mobile is built on the jQuery core, all pages should also work great on most recent versions of desktop browsers too - Firefox, Chrome, Safari, Internet Explorer, Opera, etc.</p>
<p><a href="http://jquerymobile.com/gbs/" rel="external"><strong>View supported browser matrix</strong> on jQuery Mobile</a></p>
</div>
<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><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>
</ul>
</div>
</div>
</div><!-- /content -->
</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

@ -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,112 +1,511 @@
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Docs - Events</title>
<link rel="stylesheet" href="../../themes/default" />
<meta charset="utf-8">
<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 type="text/javascript" src="../../js/"></script>
</head>
<body>
<div data-role="page">
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
</head>
<body>
<div data-role="header">
<div data-role="page" class="type-interior">
<div data-role="header" data-theme="f">
<h1>Events</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>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 <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>Triggers when a horizontal drag of 30px or more (and less than 20px vertically) occurs within 1 second duration.</dd>
<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>
<li><code>scrollSupressionThreshold</code> (default: 10px) More than this horizontal displacement, and we will suppress scrolling</li>
<li><code>durationThreshold</code> (default: 1000ms) More time than this, and it isnt a swipe</li>
<li><code>horizontalDistanceThreshold</code> (default: 30px) Swipe horizontal displacement must be more than this.</li>
<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>
<dd>Triggers when a scroll begins. Note that iOS devices freeze DOM manipulation during scroll, queuing them to apply when the scroll finishes. We're currently investigating ways to allow DOM manipulations to apply before a scroll starts.</dd>
<dl>
</dl>
<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>
<pre>
<code>
$('div').live('pageshow',function(event, ui){
alert('This page was just hidden: '+ ui.prevPage);
<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('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>
</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>Triggered on the page being initialized, before initialization occurs.</dd>
<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!' );
});
</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){
// manipulate this page before its widgets are auto-initialized
});
</code></pre>
</dd>
<dt><code>pagecreate</code></dt>
<dd>Triggered on the page being initialized, after initialization occurs.</dd>
</dl>
<p>Note that by binding to <code>pagebeforecreate</code> and returning <code>false</code>, you can prevent the page plugin from making its manipulations.</p>
<div class="ui-body ui-body-e">
<p><strong>Note on Page IDs: </strong> Page elements in jQuery Mobile utilize the <code>ID</code> attribute for storing the location from which they came. When you place an <code>ID</code> attribute on a page that is brought into jQuery Mobile's single-page environment through Ajax, jQuery Mobile wraps that page with a new "page" <code>div</code> element, preserving any CSS references to your <code>ID</code>. However, this means that your <code>ID</code> attribute is no longer on the "page" element, so you must keep this in mind when binding to page events (<code>pagebeforecreate</code>, <code>pagecreate</code>, etc). To avoid issues, try using a class if possible. </p>
</div>
<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( 'pageinit',function(event){
alert( 'This page was just enhanced by jQuery Mobile!' );
});
</code></pre>
</dd>
</dl>
<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>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 -->
</div><!--/content-secondary -->
<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 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/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>
</html>

View file

@ -1,27 +1,33 @@
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Docs - Configuring default settings</title>
<link rel="stylesheet" href="../../themes/default" />
<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="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script type="text/javascript" src="../../js/"></script>
</head>
<body>
<div data-role="page">
<script data-main="../../js/jquery.mobile.docs" src="../../external/requirejs/require.js"></script>
<script src="../../js/jquery.js"></script>
</head>
<body>
<div data-role="header">
<div data-role="page" class="type-interior">
<div data-role="header" data-theme="f">
<h1>Configuring Defaults</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>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(){
@ -29,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>
@ -38,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(){
@ -51,64 +57,117 @@ $(document).bind("mobileinit", function(){
});
</code>
</pre>
<p>...or by setting them individually:</p>
<pre>
<code>
$(document).live("mobileinit", function(){
$(document).bind("mobileinit", function(){
<strong>$.mobile.foo = bar;</strong>
});
</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>subPageUrlKey (<em>string</em>, default: "ui-page"):</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>
.ui-mobile [data-<strong>mynamespace-</strong>role=page], .ui-mobile [data-<strong>mynamespace-</strong>role=dialog], .ui-page { ...
</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 <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>nonHistorySelectors (<em>string</em>, default: "dialog"):</dt>
<dd>Anchor links with a data-rel attribute value, or pages with a data-role value, that match these selectors will not be trackable in history (they won't update the location.hash and won't be bookmarkable).</dd>
<dt>activePageClass (<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>activeBtnClass (<em>string</em>, default: "ui-page-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>ajaxLinksEnabled (<em>boolean</em>, default: true):</dt>
<dd>jQuery Mobile will automatically handle link clicks through Ajax, when possible.</dd>
<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>ajaxFormsEnabled (<em>boolean</em>, default: true):</dt>
<dd>jQuery Mobile will automatically handle form submissions through Ajax, when possible.</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>
<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>transitions (<em>array</em>, default: ['slide', 'slideup', 'slidedown', 'pop', 'flip', 'fade']):</dt>
<dd>Available CSS transitions in the CSS.</dd>
<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>defaultTransition (<em>string</em>, default: 'slide'):</dt>
<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>loadingMessage (<em>string</em>, default: "loading"):</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: 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>
<dd>Set the text that appears when a page is loading. If set to false, the message will not appear at all.</dd>
<dt>metaViewportContent (<em>string</em>, default: "width=device-width, minimum-scale=1, maximum-scale=1"):</dt>
<dd>Configure the auto-generated meta viewport tag's content attribute. If false, no meta tag will be appended to the DOM.</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>gradeA (<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 -->
</div><!--/content-secondary -->
<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 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/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>
</html>

View file

@ -1,28 +1,32 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<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 type="text/javascript" src="../../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" data-theme="b">
<div data-role="page" class="type-index">
<div data-role="header" data-position="inline">
<div data-role="header" data-theme="f">
<h1>API</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">
<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="f">
<li data-role="list-divider">API</li>
<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>
@ -30,4 +34,4 @@
</div>
</body>
</html>
</html>

View file

@ -1,28 +1,36 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<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 type="text/javascript" src="../../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">
<div data-role="page" class="type-interior">
<div data-role="header">
<div data-role="header" data-theme="f">
<h1>Responsive Layout Helpers</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>Media Query Helper Classes</h2>
<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>
<h3>Orientation Classes </h3>
<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 {
@ -35,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 {
@ -71,9 +79,51 @@ $.mobile.addResolutionBreakpoints(1200);
$.mobile.addResolutionBreakpoints([1200, 1440]);
</code>
</pre>
<h3>Running Media Queries</h3>
<p>jQuery Mobile provides a function that allows you to test whether a particular CSS Media Query applies. Simple call <code>$.mobile.media()</code> and pass a media type or query. If the browser supports that type or query, and it currently applies, the function will return true. If not, it'll return false.</p>
<pre>
<code>
//test for screen media type
$.mobile.media("screen");
//test a min-width media query
$.mobile.media("screen and (min-width: 480px)");
//test for iOS retina display
$.mobile.media("screen and (-webkit-min-device-pixel-ratio: 2)");
</code>
</pre>
</div><!--/content-secondary -->
<div class="content-secondary">
</div><!-- /content -->
<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/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><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>
</div><!-- /page -->
</body>

View file

@ -1,46 +1,78 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<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 type="text/javascript" src="../../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">
<div data-role="page" class="type-interior">
<div data-role="header">
<div data-role="header" data-theme="f">
<h1>Methods</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>jQuery Mobile exposes several methods and properties on the $.mobile object for use in your applications.</p>
<p>jQuery Mobile exposes several methods and properties on the $.mobile object for use in your applications.</p>
<dl>
<dt><code>$.mobile.changePage</code> (<em>method</em>)</dt>
<dd>Programmatically change from one page to another. This method is used internally for transitions that occur as a result of clicking a link or submitting a form, when those features are enabled.</dd>
<dd>Programmatically change from one page to another. This method is used internally for the page loading and transitioning that occurs as a result of clicking a link or submitting a form, when those features are enabled.</dd>
<dd>
<dl>
<dt>Arguments</dt>
<dd><code>to</code>
<ul>
<li>String, url to transition to (<code>"about/us.html"</code>)</li>
<li>jQuery object (<code>$("#about")</code>)</li>
<li>Array specifying two page references [from,to] for transitioning from a known page. From is otherwise assumed to be the current page in view (or $.mobile.activePage ).</li>
<li>Object for sending form data. (<code>{to: url, data: serialized form data, type: "get" or "post"}</code></li>
</ul>
</dd>
<dt><code>&#183;</code> Arguments</dt>
<dd><code>to</code> (<em>string or object</em>, required)
<ul>
<li>String: Absolute or relative URL. (&quot;about/us.html&quot;)</li>
<li>Object: jQuery collection object. (<code>$("#about")</code>)</li>
</ul>
</dd>
<dd><code>transition</code> (<em>string</em>, examples: "pop", "slide"," "none")</dd>
<dd><code>back</code> (<em>boolean</em>, default: false). True will cause a reverse-direction transition.</dd>
<dd><code>changeHash</code> (<em>boolean</em>, default: true). Update the hash to the to page's URL when page change is complete.</dd>
<dd><code>options</code> (<em>object</em>, optional)
<ul>
<li>Properties:
<ul>
<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>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><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>
</dd>
</dl>
</dd>
@ -48,51 +80,434 @@
<pre>
<code>
<strong>//transition to the "about us" page with a slideup transition</strong>
$.mobile.changePage("about/us.html", "slideup");
$.mobile.changePage( "about/us.html", { transition: "slideup"} );
<strong>//transition to the "search results" page, using data from a form with an ID of "search"" </strong>
$.mobile.changePage({
url: "searchresults.php",
type: "get",
$.mobile.changePage( "searchresults.php", {
type: "post",
data: $("form#search").serialize()
});
<strong>//transition to the "confirm" page with a "pop" transition without tracking it in history </strong>
$.mobile.changePage("../alerts/confirm.html", "pop", false, false);
$.mobile.changePage( "../alerts/confirm.html", {
transition: "pop",
reverse: false,
changeHash: false
});
</code>
</pre>
</dd>
<dt><code>$.mobile.pageLoading</code> (<em>method</em>)</dt>
<dd>Show or hide the page loading message, which is configurable via $.mobile.loadingMessage.</dd>
<dt><code>$.mobile.loadPage</code> (<em>method</em>)</dt>
<dd>Load an external page, enhance its content, and insert it into the DOM. This method is called internally by the changePage() function when its first argument is a URL. This function does not affect the current active page so it can be used to load pages in the background. The function returns a deferred promise object that gets resolved after the page has been enhanced and inserted into the document.</dd>
<dd>
<dl>
<dt>Arguments:</dt>
<dd><code>Done</code> (<em>boolean</em>, defaults to false, meaning loading has started). True will hide the loading message.</dd>
<dt><code>&#183;</code> Arguments</dt>
<dd><code>url</code> (<em>string or object</em>, required) A relative or absolute URL.</dd>
<dd><code>options</code> (<em>object</em>, optional)
<ul>
<li>Properties:
<ul>
<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>
</ul>
</li>
</ul>
</dd>
</dl>
</dd>
<dd>Examples:
<pre>
<code>
<strong>//cue the page loader</strong>
$.mobile.pageLoading();
<strong>//load the "about us" page into the DOM</strong>
$.mobile.loadPage( "about/us.html" );
<strong>//hide the page loader</strong>
$.mobile.pageLoading( true );
<strong>//load a "search results" page, using data from a form with an ID of "search"" </strong>
$.mobile.loadPage( "searchresults.php", {
type: "post",
data: $("form#search").serialize()
});
</code>
</pre>
</dd>
<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>
</dd>
<dt><code>$.mobile.showPageLoadingMsg</code> (<em></em>)</dt>
<dd>Show the page loading message, which is configurable via $.mobile.loadingMessage.</dd>
<dd>Example:
<pre>
<code>
<strong>//cue the page loader</strong>
$.mobile.showPageLoadingMsg();
</code>
</pre>
</dd>
<dt><code>$.mobile.hidePageLoadingMsg</code> (<em></em>)</dt>
<dd>Hide the page loading message, which is configurable via $.mobile.loadingMessage.</dd>
<dd>Example:
<pre>
<code>
<strong>//cue the page loader</strong>
$.mobile.hidePageLoadingMsg();
</code>
</pre>
</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>
<dd>
<dl>
<dt><code>&#183;</code> Arguments</dt>
<dd><code>url</code> (<em>string</em>, required) A relative or absolute URL.</dd>
<dt><code>&#183;</code> Return Value</dt>
<dd>
<p>This function returns an object that contains the various components of the URL as strings. The properties on the object mimic the browser's location object:</p>
<dl>
<dt><code>hash</code></dt>
<dd>The fragment conponent of the URL, including the leading '#' character.</dd>
<dt><code>host</code></dt>
<dd>The host and port number of the URL.</dd>
<dt><code>hostname</code></dt>
<dd>The name of the host within the URL.</dd>
<dt><code>href</code></dt>
<dd>The original URL that was parsed.</dd>
<dt><code>pathname</code></dt>
<dd>The path of the file or directory referenced by the URL.</dd>
<dt><code>port</code></dt>
<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>
<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>
<dl>
<dt><code>authority</code></dt>
<dd>The username, password, and host components of the URL</dd>
<dt><code>directory</code></dt>
<dd>The directory component of the pathname, minus any filename.</dd>
<dt><code>domain</code></dt>
<dd>The protocol and authority components of the URL.</dd>
<dt><code>filename</code></dt>
<dd>The filename within the pathname component, minus the directory.</dd>
<dt><code>hrefNoHash</code></dt>
<dd>The original URL minus the fragment (hash) components.</dd>
<dt><code>hrefNoSearch</code></dt>
<dd>The original URL minus the query (search) and fragment (hash) components.</dd>
<dt><code>password</code></dt>
<dd>The password contained within the authority component.</dd>
<dt><code>username</code></dt>
<dd>The username contained within the authority component.</dd>
</dl>
</dd>
</dl>
</dd>
<dd>Examples:
<pre>
<code>
<strong>// Parsing the Url below results an object that is returned with the
// following properties:
//
// obj.href: http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234&amp;type=unread#msg-content
// obj.hrefNoHash: http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234&amp;type=unread
// obj.hrefNoSearch: http://jblas:password@mycompany.com:8080/mail/inbox
// obj.domain: http://jblas:password@mycompany.com:8080
// obj.protocol: http:
// obj.authority: jblas:password@mycompany.com:8080
// obj.username: jblas
// obj.password: password
// obj.host: mycompany.com:8080
// obj.hostname: mycompany.com
// obj.port: 8080
// obj.pathname: /mail/inbox
// obj.directory: /mail/
// obj.filename: inbox
// obj.search: ?msg=1234&amp;type=unread
// obj.hash: #msg-content</strong>
var obj = $.mobile.path.parseUrl("http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234");
</code>
</pre>
</dd>
<dt><code>$.mobile.path.makePathAbsolute</code> (<em>method</em>)</dt>
<dd>Utility method for converting a relative file or directory path into an absolute path.</dd>
<dd>
<dl>
<dt><code>&#183;</code> Arguments</dt>
<dd><code>relPath</code> (<em>string</em>, required) A relative file or directory path.</dd>
<dd><code>absPath</code> (<em>string</em>, required) An absolute file or relative path to resolve against.</dd>
<dt><code>&#183;</code> Return Value</dt>
<dd>This function returns a string that is an absolute version of the relative path passed in.</dd>
</dl>
</dd>
<dd>Examples:
<pre>
<code>
<strong>// Returns: /a/b/c/file.html</strong>
var absPath = $.mobile.path.makePathAbsolute("file.html", "/a/b/c/bar.html");
<strong>// Returns: /a/foo/file.html</strong>
var absPath = $.mobile.path.makePathAbsolute("../../foo/file.html", "/a/b/c/bar.html");
</code>
</pre>
</dd>
<dt><code>$.mobile.path.makeUrlAbsolute</code> (<em>method</em>)</dt>
<dd>Utility method for converting a relative URL to an absolute URL.</dd>
<dd>
<dl>
<dt>Arguments</dt>
<dd><code>relUrl</code> (<em>string</em>, required) A relative URL.</dd>
<dd><code>absUrl</code> (<em>string</em>, required) An absolute URL to resolve against.</dd>
<dt>Return Value</dt>
<dd>This function returns a string that is an absolute version of the relative URL passed in.</dd>
</dl>
</dd>
<dd>Examples:
<pre>
<code>
<strong>// Returns: http://foo.com/a/b/c/file.html</strong>
var absUrl = $.mobile.path.makeUrlAbsolute("file.html", "http://foo.com/a/b/c/test.html");
<strong>// Returns: http://foo.com/a/foo/file.html</strong>
var absUrl = $.mobile.path.makeUrlAbsolute("../../foo/file.html", "http://foo.com/a/b/c/test.html");
<strong>// Returns: http://foo.com/bar/file.html</strong>
var absUrl = $.mobile.path.makeUrlAbsolute("//foo.com/bar/file.html", "http://foo.com/a/b/c/test.html");
<strong>// Returns: http://foo.com/a/b/c/test.html?a=1&amp;b=2</strong>
var absUrl = $.mobile.path.makeUrlAbsolute("?a=1&amp;b=2", "http://foo.com/a/b/c/test.html");
<strong>// Returns: http://foo.com/a/b/c/test.html#bar</strong>
var absUrl = $.mobile.path.makeUrlAbsolute("#bar", "http://foo.com/a/b/c/test.html");
</code>
</pre>
</dd>
<dt><code>$.mobile.path.isSameDomain</code> (<em>method</em>)</dt>
<dd>Utility method for comparing the domain of 2 URLs.</dd>
<dd>
<dl>
<dt><code>&#183;</code> Arguments</dt>
<dd><code>url1</code> (<em>string</em>, required) A relative URL.</dd>
<dd><code>url2</code> (<em>string</em>, required) An absolute URL to resolve against.</dd>
<dt>Return Value</dt>
<dd>This function returns a boolean true if the domains match, false if they don't.</dd>
</dl>
</dd>
<dd>Examples:
<pre>
<code>
<strong>// Returns: true</strong>
var same = $.mobile.path.isSameDomain("http://foo.com/a/file.html", "http://foo.com/a/b/c/test.html");
<strong>// Returns: false</strong>
var same = $.mobile.path.isSameDomain("file://foo.com/a/file.html", "http://foo.com/a/b/c/test.html");
<strong>// Returns: false</strong>
var same = $.mobile.path.isSameDomain("https://foo.com/a/file.html", "http://foo.com/a/b/c/test.html");
<strong>// Returns: false</strong>
var same = $.mobile.path.isSameDomain("http://foo.com/a/file.html", "http://bar.com/a/b/c/test.html");
</code>
</pre>
</dd>
<dt><code>$.mobile.path.isRelativeUrl</code> (<em>method</em>)</dt>
<dd>Utility method for determining if a URL is a relative variant.</dd>
<dd>
<dl>
<dt><code>&#183;</code> Arguments</dt>
<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 relative, false if it is absolute.</dd>
</dl>
</dd>
<dd>Examples:
<pre>
<code>
<strong>// Returns: false</strong>
var isRel = $.mobile.path.isRelativeUrl("http://foo.com/a/file.html");
<strong>// Returns: true</strong>
var isRel = $.mobile.path.isRelativeUrl("//foo.com/a/file.html");
<strong>// Returns: true</strong>
var isRel = $.mobile.path.isRelativeUrl("/a/file.html");
<strong>// Returns: true</strong>
var isRel = $.mobile.path.isRelativeUrl("file.html");
<strong>// Returns: true</strong>
var isRel = $.mobile.path.isRelativeUrl("?a=1&amp;b=2");
<strong>// Returns: true</strong>
var isRel = $.mobile.path.isRelativeUrl("#foo");
</code>
</pre>
</dd>
<dt><code>$.mobile.path.isAbsoluteUrl</code> (<em>method</em>)</dt>
<dd>Utility method for determining if a URL is absolute.</dd>
<dd>
<dl>
<dt><code>&#183;</code> Arguments</dt>
<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 not.</dd>
</dl>
</dd>
<dd>Examples:
<pre>
<code>
<strong>// Returns: true</strong>
var isAbs = $.mobile.path.isAbsoluteUrl("http://foo.com/a/file.html");
<strong>// Returns: false</strong>
var isAbs = $.mobile.path.isAbsoluteUrl("//foo.com/a/file.html");
<strong>// Returns: false</strong>
var isAbs = $.mobile.path.isAbsoluteUrl("/a/file.html");
<strong>// Returns: false</strong>
var isAbs = $.mobile.path.isAbsoluteUrl("file.html");
<strong>// Returns: false</strong>
var isAbs = $.mobile.path.isAbsoluteUrl("?a=1&amp;b=2");
<strong>// Returns: false</strong>
var isAbs = $.mobile.path.isAbsoluteUrl("#foo");
</code>
</pre>
</dd>
<dt><code>$.mobile.base</code> (<em>methods, properties</em>)</dt>
<dd>Utilities for working with generated base element. TODO: document as public API is finalized.</dd>
<dt><code>$.mobile.silentScroll</code> (<em>method</em>)</dt>
<dd>Scroll to a particular Y position without triggering scroll event listeners.</dd>
<dd>
<dl>
<dt>Arguments:</dt>
<dt><code>&#183;</code> Arguments:</dt>
<dd><code>yPos</code> (<em>number</em>, defaults to 0). Pass any number to scroll to that Y location.</dd>
</dl>
</dd>
@ -107,25 +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>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>//scroll to Y 100px</strong>
$.mobile.silentScroll(100);
</code>
</pre>
</dd>
@ -136,7 +533,31 @@ $.mobile.silentScroll(100);
</dl>
</div><!-- /content -->
</div><!--/content-secondary -->
<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 data-theme="a"><a href="../../docs/api/methods.html">Methods &amp; Utilities</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><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>
</div><!-- /page -->

View file

@ -1,22 +1,27 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<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 type="text/javascript" src="../../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">
<div data-role="page" class="type-interior">
<div data-role="header">
<div data-role="header" data-theme="f">
<h1>Themes</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">
<div class="content-primary">
<h2>Theming overview</h2>
<p>Every layout and widget in jQuery Mobile is designed around a new object-oriented CSS framework that makes it possible to apply a complete unified visual design Theme to sites and applications. The theming system is similar to the ThemeRoller system in jQuery UI, but adds a few important improvements:</p>
@ -29,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>
@ -45,14 +53,14 @@
<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>
<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>
@ -60,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>
@ -90,10 +98,11 @@
</div>
<div class="ui-bar ui-bar-a">
<div data-role="controlgroup" data-type="horizontal" >
<a href="#" data-inline="true">Button</a><a href="#" data-inline="true">Button</a><a href="#" data-inline="true">Button</a>
<a href="#" data-role="button" data-inline="true">Button</a><a href="#" data-role="button" data-inline="true">Button</a><a href="#" data-role="button" data-inline="true">Button</a>
</div><!-- /controlgroup -->
</div>
<p>Learn more about <a href="../content/content-themes.html">content theming</a>.</p>
@ -148,52 +157,52 @@
<p>This default behavior makes it easy to ripple a theme change through a page by setting a theme swatch on a parent because you know the buttons will maintain the same relative visual weight across themes. Since form elements use the button styles, they will also adapt to their parent container too. </p>
<p>If you want to add visual emphasis to a button and help it stand out visually from its parent toolbar, an alternate swatch color can be set by adding a <code>data-theme="a"</code> to the anchor. Once an alternate swatch color is set on a button in the markup, the framework won't override that color if the parent theme is changed, because you made a conscious decision to set it.</p>
<p>If you want to add visual emphasis to a button and help it stand out visually from its parent toolbar, an alternate swatch color can be set by adding a <code> data-theme="a"</code> to the anchor. Once an alternate swatch color is set on a button in the markup, the framework won't override that color if the parent theme is changed, because you made a conscious decision to set it.</p>
<div class="swatch-bars">
<div data-role="header" data-theme="a" class="ui-bar" data-nobackbtn="true">
<div data-role="header" data-theme="a" class="ui-bar" >
<div><!-- wrapper div to have control over butttons -->
<a href="index.html" data-icon="arrow-l" data-theme="a">A</a>
<a href="index.html" data-icon="arrow-l" data-theme="b">B</a>
<a href="index.html" data-icon="arrow-l" data-theme="c">C</a>
<a href="index.html" data-icon="arrow-l" data-theme="d">D</a>
<a href="index.html" data-icon="arrow-l" data-theme="e">E</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="a">A</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="b">B</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="c">C</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="d">D</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="e">E</a>
</div>
</div>
<div data-role="header" data-theme="b" class="ui-bar" data-nobackbtn="true">
<div data-role="header" data-theme="b" class="ui-bar" >
<div><!-- wrapper div to have control over butttons -->
<a href="index.html" data-icon="arrow-l" data-theme="a">A</a>
<a href="index.html" data-icon="arrow-l" data-theme="b">B</a>
<a href="index.html" data-icon="arrow-l" data-theme="c">C</a>
<a href="index.html" data-icon="arrow-l" data-theme="d">D</a>
<a href="index.html" data-icon="arrow-l" data-theme="e">E</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="a">A</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="b">B</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="c">C</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="d">D</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="e">E</a>
</div>
</div>
<div data-role="header" data-theme="c" class="ui-bar" data-nobackbtn="true">
<div data-role="header" data-theme="c" class="ui-bar" >
<div><!-- wrapper div to have control over butttons -->
<a href="index.html" data-icon="arrow-l" data-theme="a">A</a>
<a href="index.html" data-icon="arrow-l" data-theme="b">B</a>
<a href="index.html" data-icon="arrow-l" data-theme="c">C</a>
<a href="index.html" data-icon="arrow-l" data-theme="d">D</a>
<a href="index.html" data-icon="arrow-l" data-theme="e">E</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="a">A</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="b">B</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="c">C</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="d">D</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="e">E</a>
</div>
</div>
<div data-role="header" data-theme="d" class="ui-bar" data-nobackbtn="true">
<div data-role="header" data-theme="d" class="ui-bar" >
<div><!-- wrapper div to have control over butttons -->
<a href="index.html" data-icon="arrow-l" data-theme="a">A</a>
<a href="index.html" data-icon="arrow-l" data-theme="b">B</a>
<a href="index.html" data-icon="arrow-l" data-theme="c">C</a>
<a href="index.html" data-icon="arrow-l" data-theme="d">D</a>
<a href="index.html" data-icon="arrow-l" data-theme="e">E</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="a">A</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="b">B</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="c">C</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="d">D</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="e">E</a>
</div>
</div>
<div data-role="header" data-theme="e" class="ui-bar" data-nobackbtn="true">
<div data-role="header" data-theme="e" class="ui-bar" >
<div><!-- wrapper div to have control over butttons -->
<a href="index.html" data-icon="arrow-l" data-theme="a">A</a>
<a href="index.html" data-icon="arrow-l" data-theme="b">B</a>
<a href="index.html" data-icon="arrow-l" data-theme="c">C</a>
<a href="index.html" data-icon="arrow-l" data-theme="d">D</a>
<a href="index.html" data-icon="arrow-l" data-theme="e">E</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="a">A</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="b">B</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="c">C</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="d">D</a>
<a href="index.html" data-role="button" data-icon="arrow-l" data-theme="e">E</a>
</div>
</div>
@ -216,20 +225,64 @@
<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>
<li><a href="../toolbars/bars-themes.html">Toolbar theming</a></li>
<li><a href="../content/content-themes.html">Content theming</a></li>
<li><a href="../buttons/buttons-themes.html">Button theming</a></li>
<li><a href="../lists/lists-themes.html">List theming</a></li>
<li><a href="../forms/forms-themes.html">Form theming</a></li>
<li><a href="../lists/lists-themes.html">List theming</a></li>
</ul>
</div><!-- end content -->
</div><!--/content-secondary -->
</div><!-- end page -->
<div class="content-secondary ui-body-d">
<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><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>
</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,18 +1,22 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<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 type="text/javascript" src="../../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">
<div data-role="page" class="type-interior">
<div data-role="header">
<div data-role="header" data-theme="f">
<h1>Button API</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">

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,30 +1,35 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Docs - Buttons</title>
<link rel="stylesheet" href="../../themes/default" />
<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="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script type="text/javascript" src="../../js/"></script>
<script type="text/javascript" src="../docs/docs.js"></script>
</head>
<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">
<div data-role="page" class="type-interior">
<div data-role="header">
<div data-role="header" data-theme="f">
<h1>Grouped buttons</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">
<p>Occasionally, you may want to visually group a set of buttons together to form a single block that looks contained like a navigation component. To get this effect, wrap a set of buttons in a container with the <code>data-role="controlgroup"</code> attribute &mdash; the framework will create a vertical button group, remove all margins and drop shadows between the buttons, and only round the first and last buttons of the set to create the effect that they are grouped together. </p>
<div class="content-primary">
<p>Occasionally, you may want to visually group a set of buttons together to form a single block that looks contained like a navigation component. To get this effect, wrap a set of buttons in a container with the <code> data-role="controlgroup"</code> attribute &mdash; the framework will create a vertical button group, remove all margins and drop shadows between the buttons, and only round the first and last buttons of the set to create the effect that they are grouped together. </p>
<pre><code>
&lt;div data-role=&quot;controlgroup&quot;&gt;
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot;&gt;Yes&lt;/a&gt;
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot;&gt;No&lt;/a&gt;
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot;&gt;Maybe&lt;/a&gt;
&lt;/div&gt;
</pre></code>
</code></pre>
<p>By default, grouped buttons are presented as a vertical list:</p>
@ -45,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>
@ -58,9 +62,33 @@
</div>
</div><!--/content-primary -->
<div class="content-secondary">
</div><!-- /content -->
<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 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>
<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>

View file

@ -1,31 +1,35 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Docs - Buttons</title>
<link rel="stylesheet" href="../../themes/default" />
<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="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script type="text/javascript" src="../../js/"></script>
<script type="text/javascript" src="../docs/docs.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">
<div data-role="page" class="type-interior">
<div data-role="header">
<div data-role="header" data-theme="f">
<h1>Button icons</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>Adding Icons to Buttons</h2>
<p>The jQuery Mobile framework includes a selected set of icons most often needed for mobile apps. To minimize download size, jQuery Mobile includes a single white icon sprite, and automatically adds a semi-transparent black circle behind the icon to ensure that it has good contrast on any background color.</p>
<p>An icon can be added to a button by adding a <code>data-icon</code> attribute on the anchor specifying the icon to display. For example, the following markup:</p>
<p>An icon can be added to a button by adding a <code> data-icon</code> attribute on the anchor specifying the icon to display. For example, the following markup:</p>
<code>
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot; <strong>data-icon=&quot;delete&quot;</strong>&gt;Delete&lt;/a&gt;
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot; <strong> data-icon=&quot;delete&quot;</strong>&gt;Delete&lt;/a&gt;
</code>
<p>Creates this button with an icon:</p>
@ -33,7 +37,7 @@
<h2>Icon set</h2>
<p>The following <code>data-icon</code> attributes can be referenced to create the icons shown below:</p>
<p>The following <code> data-icon</code> attributes can be referenced to create the icons shown below:</p>
<p><strong>Left arrow</strong> - data-icon="arrow-l"</p>
<a href="index.html" data-role="button" data-icon="arrow-l">My button</a>
@ -67,15 +71,17 @@
<a href="index.html" data-role="button" data-icon="alert">My button</a>
<p><strong>Info</strong> - data-icon="info"</p>
<a href="index.html" data-role="button" data-icon="info">My button</a>
<p><strong>Home</strong> - data-icon="home"</p>
<a href="index.html" data-role="button" data-icon="home">My button</a>
<p><strong>Search</strong> - data-icon="search"</p>
<a href="index.html" data-role="button" data-icon="search">My button</a>
<h2>Icon positioning</h2>
<p>By default, all icons in buttons are placed to the left of the button text. </p>
<a href="index.html" data-role="button" data-icon="delete" data-iconpos="left">Delete</a>
<p>This default may be overridden using the <code>data-iconpos</code> attribute to set the icon to the right, above (top) or below (bottom) the text. For example, the markup:</p>
<p>This default may be overridden using the <code> data-iconpos</code> attribute to set the icon to the right, above (top) or below (bottom) the text. For example, the markup:</p>
<code>
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot; data-icon=&quot;delete&quot;<strong> data-iconpos=&quot;right&quot;</strong>&gt;Delete&lt;/a&gt;
@ -84,13 +90,13 @@
<p>Creates this button with right-aligned icon:</p>
<a href="index.html" data-role="button" data-icon="delete" data-iconpos="right">Delete</a>
<p>Icons can also be positioned above the text by specifying <code>data-iconpos="top"</code></p>
<p>Icons can also be positioned above the text by specifying <code> data-iconpos="top"</code></p>
<a href="index.html" data-role="button" data-icon="delete" data-iconpos="top">Delete</a>
<p>Or icons can also be positioned below the text by specifying <code>data-iconpos="bottom"</code></p>
<p>Or icons can also be positioned below the text by specifying <code> data-iconpos="bottom"</code></p>
<a href="index.html" data-role="button" data-icon="delete" data-iconpos="bottom">Delete</a>
<p>You can also create an icon-only button, by setting the <code>data-iconpos</code> attribute to <code>notext</code>. The button plugin will hide the text on-screen, but add it as a <code>title</code> attribute on the link to provide context for screen readers and devices that support tooltips. For example, replacing <code>data-iconpos="right"</code> on the previous example with <code>data-iconpos="notext"</code>:</p>
<p>You can also create an icon-only button, by setting the <code> data-iconpos</code> attribute to <code>notext</code>. The button plugin will hide the text on-screen, but add it as a <code>title</code> attribute on the link to provide context for screen readers and devices that support tooltips. For example, replacing <code> data-iconpos="right"</code> on the previous example with <code> data-iconpos="notext"</code>:</p>
<code>
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot; data-icon=&quot;delete&quot;<strong> data-iconpos=&quot;notext&quot;</strong>&gt;Delete&lt;/a&gt;
@ -100,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>
@ -125,6 +147,8 @@
<a href="index.html" data-role="button" data-icon="star" data-iconpos="notext" data-theme="a" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="alert" data-iconpos="notext" data-theme="a" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="info" data-iconpos="notext" data-theme="a" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="home" data-iconpos="notext" data-theme="a" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="search" data-iconpos="notext" data-theme="a" data-inline="true">My button</a>
</div>
<!-- B themed -->
@ -146,6 +170,8 @@
<a href="index.html" data-role="button" data-icon="star" data-iconpos="notext" data-theme="b" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="alert" data-iconpos="notext" data-theme="b" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="info" data-iconpos="notext" data-theme="b" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="home" data-iconpos="notext" data-theme="b" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="search" data-iconpos="notext" data-theme="b" data-inline="true">My button</a>
</div>
<!-- C themed -->
@ -167,10 +193,38 @@
<a href="index.html" data-role="button" data-icon="star" data-iconpos="notext" data-theme="c" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="alert" data-iconpos="notext" data-theme="c" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="info" data-iconpos="notext" data-theme="c" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="home" data-iconpos="notext" data-theme="c" data-inline="true">My button</a>
<a href="index.html" data-role="button" data-icon="search" data-iconpos="notext" data-theme="c" data-inline="true">My button</a>
</div>
</div><!-- /content -->
</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><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>
<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>
</html>

View file

@ -1,43 +1,45 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Docs - Buttons</title>
<link rel="stylesheet" href="../../themes/default" />
<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="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script type="text/javascript" src="../../js/"></script>
<script type="text/javascript" src="../docs/docs.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">
<div data-role="page" class="type-interior">
<div data-role="header">
<div data-role="header" data-theme="f">
<h1>Inline buttons</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>By default, all buttons in the body content are styled as block-level element so they fill the width of the screen:</p>
<a href="index.html" data-role="button">Button</a>
<p>However, if you want a more compact button that is only as wide as the text and icons inside, add the <code>data-inline="true"</code> attribute to the button:</p>
<p>However, if you want a more compact button that is only as wide as the text and icons inside, add the <code> data-inline="true"</code> attribute to the button:</p>
<a href="index.html" data-role="button" data-inline="true">Button</a>
<p>If you have multiple buttons that should sit side-by-side on the same line, wrap the buttons in a container that has a <code>data-inline="true"</code> attribute. This will style the buttons to be the width of their content and float the buttons so they sit on the same line. </p>
<p>If you have multiple buttons that should sit side-by-side on the same line, add the <code> data-inline="true"</code> attribute to each button. This will style the buttons to be the width of their content and float the buttons so they sit on the same line. </p>
<pre><code>
&lt;div data-inline=&quot;true&quot;&gt;
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot;&gt;Cancel&lt;/a&gt;
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot; data-theme=&quot;b&quot;&gt;Save&lt;/a&gt;
&lt;/div&gt;
</pre></code>
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Cancel&lt;/a&gt;
&lt;a href=&quot;index.html&quot; data-role=&quot;button&quot; data-inline=&quot;true&quot; data-theme=&quot;b&quot;&gt;Save&lt;/a&gt;
</code></pre>
<p>This creates an inline button set:</p>
<p>The result is this:</p>
<a href="index.html" data-role="button" data-inline="true">Cancel</a>
<a href="index.html" data-role="button" data-theme="b" data-inline="true">Save</a>
@ -45,10 +47,34 @@
<p>If you want buttons to sit side-by-side but stretch to fill the width of the screen, you can use the <a href="../content/content-grids.html">content column grids</a> to put normal full-width buttons into 2- or 3-columns.</p>
</div><!-- /content -->
</div><!-- /page -->
</div><!--/content-primary -->
</body>
</html>
<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><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>
<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,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>

80
docs/buttons/buttons-themes.html Executable file → Normal file
View file

@ -1,41 +1,45 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Docs - Buttons</title>
<link rel="stylesheet" href="../../themes/default" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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 type="text/javascript" src="../../js/"></script>
<script type="text/javascript" src="../docs/docs.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">
<div data-role="page" class="type-interior">
<div data-role="header">
<div data-role="header" data-theme="f">
<h1>Theming buttons</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>Theming</h2>
<h2>Theming buttons</h2>
<p>jQuery Mobile has a rich <a href="../themes/index.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 data-role="content" data-theme="a"><h4>A swatch</h4><a href="index.html" data-role="button">Button</a></div>
<div data-role="content" data-theme="b"><h4>B swatch</h4><a href="index.html" data-role="button">Button</a></div>
<div data-role="content" data-theme="c"><h4>C swatch</h4><a href="index.html" data-role="button">Button</a></div>
<div data-role="content" data-theme="d"><h4>D swatch</h4><a href="index.html" data-role="button">Button</a></div>
<div data-role="content" data-theme="e"><h4>E swatch</h4><a href="index.html" data-role="button">Button</a></div>
<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>
<div class="ui-body ui-body-c"><h4>C swatch</h4><a href="index.html" data-role="button">Button</a></div>
<div class="ui-body ui-body-d"><h4>D swatch</h4><a href="index.html" data-role="button">Button</a></div>
<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;
</pre></code>
</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>
@ -46,7 +50,7 @@
<h2>Theme variations</h2>
<p><strong>"a" theme</strong> on container with themed buttons inside</p>
<div data-role="content" data-theme="a">
<div class="ui-body ui-body-a">
<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>
<a href="index.html" data-role="button" data-theme="c" data-icon="arrow-l" data-inline="true">Theme c</a>
@ -55,7 +59,7 @@
</div>
<p><strong>"b" theme</strong> on container with themed buttons inside</p>
<div data-role="content" data-theme="b">
<div class="ui-body ui-body-b">
<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>
<a href="index.html" data-role="button" data-theme="c" data-icon="arrow-l" data-inline="true">Theme c</a>
@ -64,7 +68,7 @@
</div>
<p><strong>"c" theme</strong> on container with themed buttons inside</p>
<div data-role="content" data-theme="c">
<div class="ui-body ui-body-c">
<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>
<a href="index.html" data-role="button" data-theme="c" data-icon="arrow-l" data-inline="true">Theme c</a>
@ -73,7 +77,7 @@
</div>
<p><strong>"d" theme</strong> on container with themed buttons inside</p>
<div data-role="content" data-theme="d">
<div class="ui-body ui-body-d">
<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>
<a href="index.html" data-role="button" data-theme="c" data-icon="arrow-l" data-inline="true">Theme c</a>
@ -81,8 +85,8 @@
<a href="index.html" data-role="button" data-theme="e" data-icon="arrow-l" data-inline="true">Theme e</a>
</div>
<p><strong>"d" theme</strong> on container with themed buttons inside</p>
<div data-role="content" data-theme="e">
<p><strong>"e" theme</strong> on container with themed buttons inside</p>
<div class="ui-body ui-body-e">
<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>
<a href="index.html" data-role="button" data-theme="c" data-icon="arrow-l" data-inline="true">Theme c</a>
@ -90,7 +94,33 @@
<a href="index.html" data-role="button" data-theme="e" data-icon="arrow-l" data-inline="true">Theme e</a>
</div>
</div><!-- /content -->
</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><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 data-theme="a"><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>

View file

@ -1,28 +1,42 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Docs - Lists</title>
<link rel="stylesheet" href="../../themes/default" />
<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="../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script type="text/javascript" src="../../js/"></script>
<script type="text/javascript" src="../docs/docs.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">
<div data-role="page" class="type-interior">
<div data-role="header">
<h1>Button markup options</h1>
<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">
<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>
<div class="content-primary">
<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;
@ -31,27 +45,57 @@
<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 -->
</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>

View file

@ -1,34 +1,40 @@
<!DOCTYPE html>
<html>
<html class="ui-mobile-rendering">
<head>
<meta charset="utf-8" />
<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 type="text/javascript" src="../../js/"></script>
<script type="text/javascript" src="../docs/docs.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" data-theme="b">
<div data-role="page" class="type-index">
<div data-role="header" data-theme="b">
<div data-role="header" data-theme="f">
<h1>Buttons</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">
<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-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="api-buttons.html">API documentation</a></li>-->
</ul>
</div><!-- /ui-body wrapper -->
</div><!-- /page -->
<p>Buttons are core widgets in jQuery Mobile, and are used within a wide range of other plugins.</p>
</body>
</html>
<ul data-role="listview" data-inset="true">
<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>
<li><a href="buttons-themes.html">Theming buttons</a></li>
</ul>
</div>
</div><!-- /content -->
</div><!-- /page -->
</body>
</html>

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>

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