Commit graph

137 commits

Author SHA1 Message Date
scottjehl
e4336f38ae changed the docs to represent the new auto back button default 2011-05-18 18:05:05 -04:00
scottjehl
8ba4c27300 Ya'll can scale your pages now. Fixes #1645. Note: we originally disabled user zooming to work around a bug in iOS that automatically zooms the page beyond the constraints of the viewport on orientation change. We are not working around this bug at all now, but you are free to include any meta tag you'd like, or better yet, consider this polyfill: http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/ 2011-05-17 17:28:19 -04:00
scottjehl
3f94d4ff97 Moved our own widget css layout toggles over to using standard media queries, rather than the classes we apply to the HTML element to simulate media queries. 2011-05-11 18:00:44 +02:00
Eric DeLabar
ae8b1c45fc The each callback in the pagecreate method was creating multiple calendars when used with a multi-page html file because it was not scoped to the current page but instead to the entire document. 2011-05-02 08:22:26 -07:00
scottjehl
d97a964884 been meaning to do this for a while. 2011-04-14 16:04:47 -04:00
scottjehl
1f1a13b49e removed the API viewer demo. old 2011-03-31 18:23:29 -04:00
scottjehl
fe3d0b537b updated to use new data method 2011-03-26 16:32:16 -04:00
scottjehl
0ebab16a9a updated to use new data method 2011-03-26 16:31:55 -04:00
scottjehl
491d4a6873 moved some selectors over to :jqmData() 2011-03-26 10:15:27 -04:00
scottjehl
2add396bb2 moved some selectors over to :jqmData() 2011-03-26 10:14:48 -04:00
scottjehl
f78e7b0a6a moved to :jqmData selector 2011-03-26 10:12:16 -04:00
John Bender
4fe0b29a0f Merge branch 'data-namespacing' 2011-03-25 18:46:00 -07:00
Kin Blas
6b7c82a1dc Updated the scrollupdate trigger call to pass an array for the data. Apparently trigger requires an array as its second argument if you want to pass data to a callback. 2011-03-18 13:37:22 -07:00
John Bender
63e8f6bfcb resolved merge conflicts and fixed 2 tests 2011-03-15 23:57:17 -07:00
scottjehl
0d9627d54e Added viewport meta elements to the markup of every template and removed the metaViewportContent option from code and docs. IE does not support generated viewport tags. 2011-03-14 00:20:23 -04:00
scottjehl
19f5fd7cae changed the default namespace to "" and updated the docs/demos as such 2011-03-09 22:36:14 -05:00
scottjehl
3cae8f8bf0 caught a few more 2011-03-09 21:03:40 -05:00
scottjehl
77ac0f009a a few more non-namespaced attrs to bring over 2011-03-09 21:03:40 -05:00
scottjehl
9e91fa6752 updated docs with jq namespace, found some more stragglers 2011-03-09 21:03:40 -05:00
scottjehl
237db243dd updated the experiments dir to use data-jq namespaces 2011-03-09 20:59:28 -05:00
scottjehl
c7fe048016 updated to use namespaced data attrs 2011-03-09 20:49:42 -05:00
John Bender
37d22dd105 fixed multiple date picker caused by unscoped selector, thanks to Matt Rosenquist. Fixes #972 2011-02-24 23:05:06 -08:00
John Bender
0691c2284b date picker ui whitepspace 2011-02-24 22:54:17 -08:00
tschaub
899e9581e9 P free hamster. 2011-02-16 05:55:21 +08:00
scottjehl
ae8964f7de fixed a bug in the class syntax 2011-02-01 10:41:46 -05:00
scottjehl
c0585948bb set a max width on the datepicker for desktop preview 2011-01-30 15:57:47 -05:00
scottjehl
7ba7315e27 added markup example to datepicker documentation 2011-01-26 20:53:13 -05:00
scottjehl
b50d6a74c2 improved datepicker usage instructions and linked it up from the forms index under "experimental" 2011-01-26 20:48:25 -05:00
scottjehl
4e0d54a629 refactored Maggie's datepicker edits so that they overwrite & extend the UI's datepicker plugin and automatically convert type=date inputs to datepickers when the scripts are included. These changes make the datepicker plugin good enough to offer as an optional extension to jQuery Mobile (but not include it in the build by default, as it needs to be rewritten first - far too heavy to include unless you need it!). 2011-01-26 20:28:52 -05:00
scottjehl
c91ca3a129 removed an old demo 2011-01-26 20:23:10 -05:00
scottjehl
2c6cc45ad0 incomplete, but close to fixing the dialog-create-history entry piece. Also includes fix for nested-listview deep linking regression. 2011-01-26 14:27:10 -05:00
Kin Blas
161f5e6ae3 Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually.
This makes our include model match the include model on the CDN, and allows devs to make use of mobileinit for debugging some of the samples since that must be set up after jquery.js, but before jquery-mobile.
2011-01-20 11:26:12 -08:00
Kin Blas
8050fb0d01 Merge branch 'master' of https://github.com/walkingeyerobot/jquery-mobile into pull672 2011-01-11 09:04:32 -08:00
Kin Blas
38f09ee66f Sweep through all files to add a trailing slash to <link> tags that include thems/default. This should fix Opera Mobile Issue 763. 2011-01-05 16:19:24 -08:00
maggiewachs
60da49c6b9 Updated the datepicker workaround to be functional; also added a few style overrides and events to update the datepicker markup on load and click (necessary because it's redrawn) 2010-12-29 09:36:48 -05:00
Kin Blas
43eeddd1bb Sync up form settings with scrollview defaults.
Fixed a few markup errors.
2010-12-22 09:58:40 -08:00
Kin Blas
49c9db9c49 Turning on delayedClick by default. <again>
Added triggers for mousedown and mouse up in the delayed case because some of hte jqm components register handlers on those events to set the component states.

Note that the focus() trigger is commented out temporarily. It seems to cause the content within the scrollview clip to scroll to the point where item being focused sits in the flow .. unfortunately this screws up the rendering because we are using CSS3 translate, so the item clicked on is out of view.

Modified sv-test-02.html so that the clone event sets the target property on the fake event.
2010-12-16 11:04:48 -08:00
Kin Blas
8351f5496b Turn off delayedClickEnabled by default for now. We need to work out some kinks.
Modified sv-test-02.html so that you can dynamically turn on/off the delayedClick behavior.
2010-12-15 11:13:31 -08:00
Kin Blas
58506aeef4 Added code to defer the generation of a "click" event for form elements within a scrollview. This seems to keep form elements working on Android.
Added strict comparisons for strings as pointed out by jonathan in my previous checkin.
2010-12-15 08:06:07 -08:00
Kin Blas
aa1f94a81f Added support for scrolling via scrollTop/scrollLeft.
Modified sv-test-02.html so that you can dynamically switch the scrolling method used. This will allow us to test the performance of different methods on the different platforms.

Modified scrollview.js so that you can specify @data-scroll-method="translate|position|scroll".
2010-12-14 16:05:52 -08:00
Kin Blas
22d4f4f687 Removing some debug code I accidentally commited. 2010-12-13 15:34:19 -08:00
Kin Blas
1b06d3dd32 Changed page title. 2010-12-13 15:22:39 -08:00
Kin Blas
d31f92a649 Modified index so that all tests launch externally so they can pick up the CSS and JS that is specific to that test.
Added a couple of tests that will help us figure out what events need to be handled special to disable native view port scrolling, and what events are necessary for form elements to function properly.
2010-12-13 14:20:14 -08:00
Mitch Foley
df3bc91f80 renaming nobackbtn to backbtn. 2010-12-13 10:54:26 -05:00
Kin Blas
e72809ca49 Added links to tests so folks don't have to type them manually. 2010-12-10 16:07:58 -08:00
scottjehl
80d56e655b Changed page navigation scripting to use data-url attributes instead of IDs for storing page URLs. This fixes a number of issues, most importantly #477, which exposed a conflict between jQuery's selector engine that would result in un-enhanced pages whenever linking between two pages in the same directory.
The shift away from interal ID attribute usage also allows users to bind page events (pagecreate, pagebeforecreate) to a page div by its ID, which was a frequent cause of confusion when it didn't work as expected in former versions of the framework.

Seemingly unrelated: these commits allow you to specify data-role="dialog" in multipage and single page templates. In multipage templates, the role must be on the page (a link with data-rel alone will not work in multi-page). This addresses issue number 464, but may need further testing for obscure scenarios.

Fixes #477 (Pages are not enhanced when linking to a filename without a path)
Fixes #493 (Click the same link twice -> blank page)
Fixes #513 (closing dialog + returning to the same dialog)
Fixes #550 (changePage() not updating hash for internal pages - breaks )
Fixes #464 (Dialogs don't work within multi-pages)
Fixes #633 (Recent change to prevent same-page requests breaks select menu close button)
Fixes #599 (Page ids & page specific events)
Fixes #634 (After a bad page request, base url is not reset to current path)

booya.
2010-12-07 12:05:10 -05:00
jzaefferer
45aeb9985b Converter demo: Fix edit mode to generate list; fix Cancel and Add buttons to when adding new conversions 2010-12-04 14:32:14 +01:00
scottjehl
1c5236be6c fixed the themeswitcher 2010-12-03 18:12:44 -05:00
scottjehl
e4f55d3c91 fixed datepicker static example 2010-12-02 15:19:53 -05:00
Kin Blas
33602a4dfd Implemented view paging for the scrollview. This feature is only enabled for horizontal and vertical scrollviews. To use, pass "xp" or "yp" for the @data-scroll attribute.
Fixed a typo/bug in scrollview.js that was causing the paging bool to be set improperly.

Turned on scrollview paging in scrollview-direction.html.

Items still left to do:

- Code refactoring/cleanup.
- Modify the code so that scroll offsets are stored as positive values. This will make it easier for folks to understand.
2010-12-02 09:47:46 -08:00