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
Josh Dean
a23f0d3a0e
Update to buttonMarkup to use appropriate data selector
2012-01-19 09:20:05 -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
1d1b601947
Merge pull request #3451 from eddiemonge/caching
...
Show me the cache
2012-01-18 13:59:36 -08: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
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
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
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
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
d2fa7e214a
Added meta info to jQuery Core file.
2012-01-13 17:31:35 -05: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
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
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
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
2f99c8a9b5
use existing elem instead of creating a new one.
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
1ad31620ed
Added dependency on jquery.mobile.transitions
2012-01-13 17:32:26 +07:00
Ghislain Seguin
e64c02de8e
Added dependency on jquery
2012-01-13 17:32:25 +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
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
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
Ghislain Seguin
810696b2ba
AMDized transition code
2012-01-13 17:30:51 +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
eac0b7d3c7
class name was body instead of overlay. Fixed
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
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
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
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
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
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
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
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
Mat Marquis
2f088cb2e3
Updated page transition scripting/support test to allow for Firefox.
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
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
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
86e059465a
lowercased
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
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
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
scottjehl
4bc2bb8616
brought back the height settings, and fixed a typo between addClass and removeClass
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
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
b46b4220dc
removed code to set css3transitionhandler as the default
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
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
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
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
0c006605d1
obviate the need for stub definition of define when using vanilla /js require
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
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