scottjehl
47480d69f9
when touch overflow scrolling is supported and enabled, user scaling can create serious usability issues where it's difficult to get zoomed back out. This disables user scaling when that overflow scrolling is enabled (currently only projected for ios5 support)
2011-09-27 12:36:24 -04:00
John Bender
9d2b39dca6
whitespace in mobile init
2011-09-22 08:52:45 -07:00
John Bender
27b228803a
change scroll recording to handle different scroll elements between page changes
2011-09-22 08:52:45 -07:00
Kin Blas
c75a7ad654
Fix for issue 1666 - Deprecate $.mobile.pageLoading()
...
- Removed $.mobile.pageLoading().
- Updated tests/unit/init/ to call the new showPageLoadingMsg/hidePageLoadingMsg functions.
2011-09-20 14:45:26 -07:00
scottjehl
7be8311d4e
added location.search to the original page data-url
2011-09-08 11:58:55 -04:00
scottjehl
d63350ca6c
set initial page div's data-url to location.pathname unless it has an ID on it. This fixes an issue where going back to the initial page will end up generating a new homepage rather than transitioning to the one already in the dom.
2011-08-28 00:06:27 -04:00
Andri Möll
70bd1ba371
Fix nested waiting-for-dom for initializePage.
...
Using dom-ready within dom-ready meant that initializePage went to the end of
the queue. That brought problems when other dom-ready code expected jQM to be
set up, capable of changing pages and so on. But because $.mobile.pageContainer
is also set in initializePage, changePage and others didn't work.
2011-08-10 18:01:36 -07:00
Rick Waldron
45ab6a9ddc
Core Style Conformance: jquery.mobile.init.js
2011-08-09 11:16:41 -04:00
scottjehl
d42db4d4ee
This change moves the ajax navigation opt-out list (which contains, mainly, browsers that have broken history tracking of hash changes) over to the support.js file, and added a multi-tierd Nokia condition that checks a number of UA conditions to try and pinpoint Nokia + Symbian + Webkit + 7.3-or-older. Big thanks to Bryan and Stephanie at Yiibu for their helpful article on Nokia device detection. That said, we would LOVE to find a non-UA based way to handle this detection. Reluctantly, this seems to do what we need at the moment, while assuming hash history will be improved in any post-7.3 release.
...
Also included in this commit is a Nokia-specific condition that re-appends existing stylesheets to force them to render, as all pre-7.3 devices we tested would not render the CSS if it was referenced before the JavaScript (as we'd recommend doing). There may be a non-JS way to work around this problem, but for now, this seems to do the trick.
2011-08-03 12:15:04 -04:00
scottjehl
df3fbca3f4
implemented the autoInitializePage global config option, so that auto-initialization may be disabled in favor of manually initializing the page later on. Still needs a unit test.
2011-07-24 19:27:21 -04:00
scottjehl
03f32728c6
removed a console.log
2011-07-17 16:22:13 -04:00
scottjehl
259815d480
Make data-role=page elements optional. This change makes the framework more lenient with markup, and will ease integration with existing sites, as well as mashups with external content. Unit tests included. Fixes #2096
2011-07-17 14:52:49 -04:00
scottjehl
6da7e4a1dc
Made loading message configurable at runtime. Fixes #2044 . Fixes #1974 . Fixes #1947 .
2011-07-14 22:46:06 -04:00
scottjehl
ffdfa4e7c2
moved page load event bindings to a post-mobileinit callback so that the useFastClick option can be set before it is used. Unit test included. Fixes #1869
2011-06-21 11:33:38 -04:00
scottjehl
fe79ad63a4
fixed a bug in IE desktop, where calling scrollTop before domready was trying to access the body element before it was present. Moved this logic to domready and all's well.
2011-06-20 13:57:38 -04:00
scottjehl
84f4d9dc3c
switched the order so that scroll check happens earlier.
2011-06-19 14:20:19 -04:00
scottjehl
a09c53eb71
improved the address bar hiding logic to support Android as well by determining up-front which hiding number should be used. Fixes #1673 . Fixes #1322 . Fixes #1786 .
2011-06-19 13:53:27 -04:00
scottjehl
76fe9ca3fd
moved previous logic to the init file so it's not overridden by defaults.
2011-05-24 17:39:53 -04:00
Kin Blas
3c792c58f0
Merge branch 'master' into navigation
...
Fixed Conflicts:
js/jquery.mobile.init.js
js/jquery.mobile.navigation.js
2011-05-20 09:39:19 -07:00
scottjehl
adf3808e84
Removed the dynamically-appended Meta tag, which was deprecated in Alpha 4, and scheduled for removal in beta. jQM users must provide their own meta viewport tag in the head of jQM apps.
2011-05-17 18:03:54 -04:00
Kin Blas
b96310eedf
- Externalize some of the nested functions in changePage().
...
- Modified changePage() so that it can take an options object. Updated all references throughout the framework.
- Split $.mobile.pageLoading() into 2 functions $.mobile.show/hidePageLoadingMsg(). Updated docs accordingly.
- Renamed $.mobile.defaultTransition to $.mobie.defaultPageTransition. Updated docs accordingly.
- Added $.mobile.defaultDialogTransition so that it isn't hard coded in the changePage/transitionPages and select code.
- Hand integrated jquery.mobile.navigation.js checkins from master: 4b4ee54a , e775f5e8 , e597ccb3 , 084bbbd8 .
2011-05-16 16:02:26 -07:00
John Bender
9096763741
finished basic pathing tests sans site relative root ir /
2011-04-29 22:23:57 -07:00
John Bender
a50912e0de
remove ie debug alert
2011-04-29 22:22:18 -07:00
John Bender
39e3f1be95
Merged pull request #1494 from rs/master.
...
Fix an alert(false) on app init when $.mobile.loadingMessage is set to false
2011-04-28 15:03:31 -07:00
John Bender
ceea4bca66
remove ie debug alert
2011-04-28 15:02:59 -07:00
Olivier Poitrey
b4b80cd200
Fix an alert(false) when $.mobile.loadingMessage is false
2011-04-21 15:43:50 +02:00
scottjehl
7503f62a10
changed our two new custom data helper names to jqmData() and :jqmData()
2011-03-25 17:50:40 -04:00
John Bender
7d3642f3ab
fixed init tests for ie
2011-03-24 09:46:13 -07:00
Kin Blas
db89e1f24d
Switch find/filter selector calls over to using the new :jqdata() pseudo selector.
2011-03-22 13:31:17 -07:00
John Bender
63e8f6bfcb
resolved merge conflicts and fixed 2 tests
2011-03-15 23:57:17 -07:00
scottjehl
6ecb99c936
typo in selector for finding meta[viewport] element
2011-03-14 00:20:26 -04:00
scottjehl
b38113950f
only inject meta if there isn't already one there. Deprecating support for injected meta in A4. Will likely remove completely at beta.
2011-03-14 00:20:23 -04:00
scottjehl
ea60207c1b
changed custom data method to $.fn.mobileData() and updated plugins that use it.
2011-03-09 23:27:21 -05:00
scottjehl
a74c0c6280
updated init with namespacing
2011-03-09 21:29:07 -05:00
John Bender
ea85b5a46f
whitespace in init
2011-03-04 22:25:33 -08:00
John Bender
608b39ed39
moved loading message after init to account for customization
2011-03-03 18:06:07 -08:00
Bra1n
c828cf1f64
prevent setting the data url on pages where it is already set
2011-02-26 23:25:07 -08:00
John Bender
2704975095
re arranged tests for mobile init
2011-02-20 18:07:17 -08:00
John Bender
a64a44504b
moved page additions after gradeA check in init and removed from core
2011-02-20 18:07:17 -08:00
John Bender
b21531a0ac
left gradeA in core, added todo for page element addition refactor
2011-02-20 18:07:17 -08:00
John Bender
891f9b1b07
moved initialization down in the build order, still requires some small refactoring
2011-02-20 18:07:17 -08:00