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
Ghislain Seguin
229d50e872
Remove unnecessary order! plugins
2012-01-20 09:36:04 -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
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
scottjehl
e7cc245ee1
renamed files to plugin name
2012-01-13 19:53:13 +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
John Bender
799c0b6b5b
ensure defaultTransitionHandler is defined after the navigation has been loaded
2012-01-13 17:25:53 +07:00
John Bender
18f4d3d5e0
fix improperly camel cased module references
2012-01-13 17:24:50 +07:00
Ghislain Seguin
fdc51cfdfb
Fixed casing
2012-01-13 17:24:50 +07:00
Ghislain Seguin
c6e49f7b07
Discovered r.js' pragmas use them instead of the hacky solution provided by amd-stripper.js
2012-01-13 17:24:49 +07:00
Ghislain Seguin
fe537db42d
use define instead of require
...
use order plugin for init (not ideal)
2012-01-13 17:21:26 +07:00
Ghislain Seguin
dbe10647d2
Actually need order! plugin for controlgroup at least
2012-01-13 17:21:26 +07:00
Ghislain Seguin
a39240924d
Added collapsibleSet
2012-01-13 17:20:43 +07:00
Ghislain Seguin
c771ef1f6b
Main AMD module
2012-01-13 17:20:23 +07:00
scottjehl
9ff89b7115
renamed jquery.mobile.js jquery.mobile.core.js. updated build files, etc to match
2010-11-18 22:50:33 -05:00
scottjehl
909a0d0f08
removed transitions property from the configuration and updated docs to match.
2010-11-18 22:18:20 -05:00
scottjehl
e7269f4df2
moved orientationchange event trigger over to media js file. Cleaned up event bindings where orientation and breakpoint classes are applied.
2010-11-17 11:55:15 -05:00
scottjehl
28a10ec74d
Moved all of the media query and responsive design related scripting to jquery.mobile.media.js. This plugin can run independent of mobile core, with the exception that it does bind to orientationchange, which is defined in the events js. Fixes #388
2010-11-17 11:55:15 -05:00
scottjehl
2b226d05ce
make sure pop'd page is defined before using.
2010-11-16 12:18:42 -05:00
John Resig
573db6ab28
Just compare the nodes directly to each other.
2010-11-11 19:38:20 -05:00
John Resig
c9a34f1da2
Add versioning information to the headers of the CSS and JS files.
2010-11-11 17:02:45 -05:00
scottjehl
b7b553da84
missed a few files in that last commit.
2010-11-11 15:08:48 -05:00
scottjehl
055bf14e3f
moved changePage, pageLoading, and silentScroll methods to $.mobile obj.
2010-11-11 15:03:40 -05:00
scottjehl
30c8a4cd5e
removed $.mobile.headExtras - useless
2010-11-11 13:38:05 -05:00
scottjehl
25327445e0
null rather than undefined. woops
2010-11-11 13:33:19 -05:00
scottjehl
f3c9716b52
extend rather than define
2010-11-11 11:28:02 -05:00
scottjehl
a24196e550
dolla dolla bills y'all.
...
Fixes #126 , Fixes #346
2010-11-11 10:50:28 -05:00
scottjehl
b1bded6dde
changed hideBrowserChrome function to "silentScroll". Scrolls to a particular location while disabling scroll event listening.
...
Function accepts a Y positioning argument, or defaults to 0 if undefined.
Now page transitions cache their previous scroll position when leaving, and that position will be remembered when revisting that page.
This change also includes a fix for webOS to use this new feature and set the previous scroll to the location of the clicked selectmenu (so after using the select, it'll scroll back to its location, even though webOS doesn't support scrolltop)
Fixes #355
2010-11-10 19:06:57 -05:00
scottjehl
ad2c894a74
Target attrs trigger now open a new window. Fixes #427
2010-11-10 18:12:18 -05:00
scottjehl
f03e59b0b3
exposed $.mobile.updateHash to allow plugins to update the hash without triggering hashchange (when closing a dialog from back button for instance)
2010-11-09 19:08:57 -05:00
scottjehl
44d78d4853
changed so that nonHistorySelectors looks for both data-rel and data-role, meaning hash changes won't trigger hashchange handlers when dialogs are open
2010-11-09 18:58:09 -05:00
scottjehl
58aa705391
updated comment
2010-11-09 16:08:15 -05:00
D. Elmo Peele
97cc95dd0d
Allow 'none' as a transition value.
2010-11-09 23:17:16 +08:00
scottjehl
39c4b7b53b
prepend to head immediately, instead of in a chunk later on
2010-11-08 19:26:30 -05:00
scottjehl
4b058096cf
scoped to window
2010-11-08 19:23:27 -05:00
scottjehl
4b862bb114
triggered mobileinit event
2010-11-08 19:19:45 -05:00
scottjehl
0bb86f685f
removed extend
2010-11-08 19:17:28 -05:00
scottjehl
32af18d59b
added class ui-mobile-rendering to HTML el during initial build - will be used to prevent fouc
2010-11-07 15:20:35 -05:00
scottjehl
a405eda53f
moved up top
2010-11-07 15:18:28 -05:00
scottjehl
facef32f3a
changed to event.preventDefault
2010-11-07 15:17:59 -05:00
scottjehl
0972d65e04
prefixed var with $
2010-11-07 15:03:40 -05:00
scottjehl
02e6e5f26b
added $.mobile options: ajaxLinksEnabled, ajaxFormsEnabled. Both default to true.
2010-11-07 14:31:04 -05:00
scottjehl
1f7be112c8
make base options extendable via jQuery.mobile obj.
2010-11-06 16:04:59 -04:00
scottjehl
a1bef030dc
filled out some comment documentation
2010-11-06 15:29:00 -04:00
scottjehl
294daf4008
cleaned up <head> markup insertion logic and added to new options to $.mobile hash:
...
- metaViewportContent: "width=device-width, minimum-scale=1, maximum-scale=1",
- headExtras: undefined
If metaViewportContent is undefined, no viewport meta tag will be added to the dom.
headExtras is undefined by default, but allows for additional markup to be injected into the head element, such as meta tags used for enabling iOS local app features
Also, the <base> tag is defined as $base (undefined if support test is false), so setting its value no longer uses an ID selector to find it.
2010-11-06 15:14:10 -04:00
scottjehl
95ff242b13
updated cssTransitions support test - was formerly failing in webkit, as it was checking for type of object, rather than function. Needs to be filled out with other css transitions events, along with our CSS itself.
...
Also updated the animationComplete callback and got rid of a pointless timeout.
2010-11-06 14:36:15 -04:00
scottjehl
3f703ce1e8
fixed regression where first page visited was using a transition.
2010-11-06 14:24:29 -04:00
scottjehl
f4b785a9e7
added loadingMessage to $.mobile hash, for i18n. Defaults to "loading". If set to false, loading message whill not appear during ajax requests, but ui-loading class will still apply to html element.
2010-11-06 14:18:03 -04:00