Commit graph

1122 commits

Author SHA1 Message Date
scottjehl
f7a29fc201 converted selectmenu widget to the widget factory. 2010-11-08 19:33:45 -05: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
5fcc049d5b hide page during rendering - prevent fouc. 2010-11-08 15:04:12 -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
9519030fab removed extra meta charset 2010-11-06 15:05:16 -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
Todd Parker
edf72f5a7e Updated the split button transition and fixed some broken paths. 2010-11-05 16:32:30 -04:00
scottjehl
1c70d8833d updated version to 1.0a2pre 2010-11-05 15:47:59 -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
cba49b67c7 updated ignore file 2010-11-05 15:13:49 -04:00
scottjehl
0aa7fe6454 fixed listview splitbutton theming 2010-11-05 15:08:21 -04:00
scottjehl
c9bc4880a9 removed trailing comma. 2010-11-05 14:46:25 -04:00
Todd Parker
358501409b Added documentation about how to close dialogs and how they aren't tracked in history. 2010-11-05 13:00:06 -04:00
ossreleasefeed
0c05501b0d Added new ant build file for those that want to get at the combined JS and CSS files but don't want to go through the PHP server set-up bit. 2010-11-05 19:19:47 +08:00
ossreleasefeed
531b1a8863 Added method to combine.php that writes the combined files to disk int the combined directory prior to being gzipped 2010-11-05 19:19:46 +08:00
ossreleasefeed
bb59c278c3 Added check for whether cache folder exists. If it does not, it is created and then written to 2010-11-05 19:19:46 +08:00
scottjehl
a0815daf48 Fixed a few listview split button regressions. Fixes #387 2010-11-05 00:06:39 -04:00
scottjehl
a68f6ee5c9 set overflow-x to hidden on ui-content div. prevents page content from breaking out beyond viewport. Fixes #353 2010-11-04 23:52:53 -04:00
D. Elmo Peele
95bac6f5a0 Fix tap event to ignore small movements. 2010-11-05 11:14:53 +08: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
scottjehl
2a68ad6301 removed an empty selector 2010-11-04 22:59:19 -04:00
scottjehl
48c8bb0d7c made icononly buttons inline-block. Fixes #281 2010-11-04 22:58:54 -04:00
scottjehl
3392be05d3 Added close() method to dialogs: $('.ui-dialog').dialog('close') . Also, links clicked within a dialog will now close the dialog on their way to their destination, just as if the dialog were a normal page. For links that are meant only for closing the dialog, such as a "cancel" link, just link to the page that triggered the dialog to open. This pattern of linking to the previous page happens to be meaningful in non-js browsing as well. If you are generating that link on the fly, just set its href to location.href. Fixes #383 2010-11-04 22:49:28 -04:00
scottjehl
93ba5c4a87 fixed some comment typos. thx @warzauwynn 2010-11-04 22:07:21 -04:00
scottjehl
b1f7ff9c2d made textinputs and textareas inherit theming when possible, or fall back to "c" 2010-11-04 21:59:03 -04:00
scottjehl
ffa682cbfe Converted textinput plugin to use widget factory. Also added enable and disable methods. Fixes #369 2010-11-04 21:32:28 -04:00
scottjehl
f29b85a149 converted collapsible to the widget factory. API change: data-state="collapsed" is now data-collapsed="true". Updated markup in demos to support change. Fixes #372 2010-11-04 21:32:28 -04:00
Kin Blas
a47a7035bb Moved the data-filter attribute from the content element to the listview element where it should be. 2010-11-04 16:05:49 -07:00
scottjehl
f6dbe5554c Welcome back, Valencia. Fixes #352 2010-11-04 18:50:43 -04:00