Commit graph

2193 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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