Commit graph

145 commits

Author SHA1 Message Date
John Bender
8ea0bddccc ensure defaultTransitionHandler is defined after the navigation has been loaded 2012-01-04 11:46:35 -08:00
John Bender
f904de98bf fix improperly camel cased module references 2011-12-19 15:58:13 -08:00
Ghislain Seguin
1f8c9ec832 Fixed casing 2011-12-15 23:07:58 -08:00
Ghislain Seguin
57a1129bfb Discovered r.js' pragmas use them instead of the hacky solution provided by amd-stripper.js 2011-12-15 18:15:42 -08:00
Ghislain Seguin
cf04068eba Assume jquery is loaded so don't require it 2011-12-08 10:02:36 -08:00
Ghislain Seguin
b79de8c168 use define instead of require
use order plugin for init (not ideal)
2011-12-07 15:40:25 -08:00
Ghislain Seguin
07d21c6666 Actually need order! plugin for controlgroup at least 2011-12-01 17:28:11 -08:00
Ghislain Seguin
82162fe904 Added collapsibleSet 2011-12-01 17:28:10 -08:00
Ghislain Seguin
c76f3551b6 Main AMD module 2011-12-01 17:28:08 -08: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
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