Commit graph

5213 commits

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