Commit graph

2182 commits

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