Commit graph

2182 commits

Author SHA1 Message Date
Mat Marquis
f7d59da646 Updated 3d transform test to accomodate FF10. 2012-01-11 16:28:08 -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
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
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
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
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
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
Mat Marquis
0b80c12778 Updated page transition scripting/support test to allow for Firefox. 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
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
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
fd236692ea lowercased 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
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
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
scottjehl
10a65c9d78 brought back the height settings, and fixed a typo between addClass and removeClass 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
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
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
b820de1afc removed code to set css3transitionhandler as the default 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
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
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
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
0b1829967d obviate the need for stub definition of define when using vanilla /js require 2012-01-04 14:21:57 -08:00
John Bender
22504c7613 switch to explicit false check to avoid undefined issues 2012-01-04 13:14:43 -08:00
John Bender
95073892f0 Merge branch 'amd' 2012-01-04 12:24:33 -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
Mat Marquis
f5794cf7c8 Fixing navigation bug caused by dialog markup changes. 2012-01-04 11:27:52 -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
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
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
Jake Boone
13cb24e586 Remove ui-btn-down class on scrollstart 2011-12-29 11:13:54 -05: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
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
Gabriel Schulhof
3b22bbf9fb [custom select] Use $(window).width() and not window.innerWidth - same for height 2011-12-23 16:09:50 +02:00
Ghislain Seguin
bd6eaba5e8 Changed $.extend to be non destructive 2011-12-22 17:31:50 -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
Ghislain Seguin
a5d56000d4 Added dep on buttonMarkup 2011-12-22 09:48:51 -08:00
Ghislain Seguin
3f05a5e12c Named the module for testability 2011-12-21 16:41:27 -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
4f6e082875 Added dep on grid 2011-12-21 11:54:00 -08:00
John Bender
621348b05b fix bug to allow pagebeforecreate bindings to prevent enhancement 2011-12-20 16:58:23 -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
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
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
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
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
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
Ghislain Seguin
754cc81115 Specified more dependencies 2011-12-15 13:07:55 -08:00
John Bender
c7e1bf0c14 update jquery to 1.7.1 Fixes #2965, #3267 2011-12-15 10:35:53 -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
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
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
c49eac6e67 added commentary on selector perf and whitespace 2011-12-09 12:36:19 -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
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
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
John Bender
cbaa42d63c default emptry string val to 0 on refresh Fixes #3029 2011-12-05 15:38:25 -08:00
Marcus Lunzenauer
98b6ea3fb4 fix list item pruning while filtering 2011-12-02 11:57:55 +01: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
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
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
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
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
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
Jake Boone
1e669734c3 Spelling correction in jquery.mobile.fixHeaderFooter.js. 2011-12-01 15:33:18 -05:00
Eugen Bolz
27f49f0dcf Slider: use also option text as title 2011-11-29 08:35:18 +01: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
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
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
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
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
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
3d17a69d8b Merge pull request #3010 from gseguin/issue-2905
Decoupled collapsible and collapsible set
2011-11-17 09:35:05 -08: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
f016c2dc21 Ensures that dialogs’ content elements _do_ inherit the overall page theme. 2011-11-16 15:25:00 -05: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
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
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
jblas@adobe.com
db2782b564 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-14 09:45:21 -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
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
jakeboone02
9040f56c53 Fix comments 2011-11-12 10:26:20 -05:00
Mat Marquis
b2106887d8 Merge remote-tracking branch 'upstream/master' 2011-11-11 18:54:48 -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
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
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
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
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
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
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
Ghislain Seguin
c2436806f4 Removed double setting of ui-body- class on collapsible content 2011-11-10 09:54:58 -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
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
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
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
John Bender
3fdb12600e Merge pull request #2994 from eddiemonge/5535e24c46c95f16b437c0ebec8c19094caf18a7
License Changes
2011-11-09 15:27:25 -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
3f52c482d0 account for css load in initial document load and page transition with text area autogrow 2011-11-09 11:35:21 -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
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
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
94c2651244 Merge pull request #2959 from garann/158a65c1fd7f34afb6f157921a1604f6e3159a29
Store title of initial page
2011-11-08 13:38:29 -08:00
jblas@adobe.com
b198f57276 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-11-08 11:21:01 -08: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
Ghislain Seguin
8dcef4493d Fix for #2954 2011-11-07 21:02:28 -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
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
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
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
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
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
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
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
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
John Bender
010e93152d Merge pull request #2899 from jpfiset/master
Fix for issue #2897
2011-11-01 09:44:43 -07:00