Mat Marquis
a92e2c8b50
Added “mini” form widget options, optional background on slider widgets.
2012-01-28 14:03:30 -05:00
Mat Marquis
dc2760025c
Moved function to outside each loop, to prevent it from being redefined each time the controlgroup widget is called.
2012-01-24 18:09:22 -05:00
scottjehl
40c400d657
Merge remote branch 'origin/master'
2012-01-24 17:34:20 +07:00
scottjehl
f9d7ff95a7
removed unused function in tests
2012-01-24 17:31:07 +07:00
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
4e2c8ef2a3
added unit tests for prevent focus zoom option
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
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
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
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