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
scottjehl
c707f63918
cleaned up vars for transition and back conditions - removed a couple unnecessary vars. Added $.mobile.defaultTransition, which defaults to "slide" but can be set to other transition names, or false, to disable default transitions (note: this won't prevent data-transition attrs from working when manually applied).
2010-11-06 14:04:59 -04:00
scottjehl
b0d1063ee8
moved device support conditions to $.mobile hash's gradeA property. Not terribly sophisticated yet, but least for now this allows for configuring device support conditions, which has been requested by users.
2010-11-06 13:45:09 -04:00
scottjehl
cec0939a61
changed comment
2010-11-06 13:45:09 -04:00
scottjehl
c0b37ec97d
moved transitions to $.mobile hash, changed to array
2010-11-06 13:45:09 -04:00
scottjehl
72f3ca5765
move active page and button classes to the $.mobile hash
2010-11-06 13:45:09 -04:00
scottjehl
0c7860e7ed
removed startPageId setting - not necessary
2010-11-06 13:45:09 -04:00
scottjehl
cdbccc2802
moved page-plugin-related options to the page plugin (backBtnText, addBackBtn, degradeInputs).
2010-11-06 13:45:09 -04:00
scottjehl
f7ce344578
moved configurable selector for non-history tracked links to the $.mobile hash. Renamed to $.mobile.nonHistorySelectors
2010-11-06 13:45:09 -04:00
scottjehl
925ac2b57a
opened $.mobile to be extendable through $.mobileDefaults
2010-11-06 13:45:09 -04:00
Ben Alman
69e1e32c88
rewrote the orientationchange special event to allow both binding and unbinding of single or multiple event handlers as well as manual triggering. jQuery.event.special.orientationchange.orientation might not need to be public (which could save a few bytes).
2010-11-05 19:25:26 +00:00
scottjehl
aa6f842acc
changed selector from [href] to link[href] for elements that need url-remapping in Firefox. This ensures only stylesheets, but not anchors, are being remapped. Fixes #381
2010-11-04 23:11:35 -04:00
Kin Blas
b3ec50b2e3
Removed redundant setting of $.activePage that I added in my previous checkin.
...
Updated lists-performance.html so that it is a list of 1000 items per Todd.
2010-11-04 15:15:49 -07:00
scottjehl
64e0c1dc47
removed a timeout - reset hashListener to false within hashchange event handler
2010-11-04 11:50:17 -04:00
scottjehl
29a60d3c3e
changed arg name to triggered
2010-11-04 11:24:39 -04:00
scottjehl
34283c04ed
changed hashchange args to use array
2010-11-04 11:24:13 -04:00
scottjehl
c45b0e3560
make sure "to" arg is an object, and has a url property before setting isFormRequest to true.
...
Fixes #377
2010-11-04 09:56:04 -04:00
scottjehl
3cc1c76d9d
improved check for activePageLink existence
2010-11-04 09:56:04 -04:00
Kin Blas
bb5708e543
Some tweaks to make page scrolling faster.
...
- Prevent the fixed header/footer code from traversing the entire document for each touchstart, touchend and scrollstart event.
- Make sure $.activePage is initialized with the startPage.
2010-11-04 00:27:21 -07:00
scottjehl
ea12c75940
Make sure that Ajax form submissions (both get and post) always make a new request, even if it's identical to a previous submission. When a duplicate cached result page is present, it'll be removed from the DOM after the page change is complete . Thanks @medovob for the ideas and feature request. Fixes #368 , Fixes #366
2010-11-03 22:01:01 -04:00
scottjehl
fae3a93f26
remove active link class before leaving to an external page. Fixes #375
2010-11-03 18:56:21 -04:00
scottjehl
4036aa97e9
added an forceRemoval argument to make sure active states are removed when a page load error occurs. Fixes #364
2010-11-03 12:20:44 -04:00
scottjehl
f66047f410
added class 'ui-mobile-viewport-transitioning' to page parent container during transitions, and applied css to give perspective and proper dimension to the container and child pages. Also set overflow to hidden.
...
Fixes #347
2010-11-02 16:29:12 -04:00
scottjehl
edc1b81ba4
added ui-mobile-viewport class to parent of page element ( body in most cases). Updated css to style this class instead of body
2010-11-02 16:00:23 -04:00