Commit graph

113 commits

Author SHA1 Message Date
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
Kin Blas
63627e529f Fixed some copy/paste typos in the nested sample.
Got rid of some test code in the direction sample.
2010-12-01 14:57:28 -08:00
Kin Blas
39a9681d55 Implemented support for nested scrollviews, scroll propagation, and direction locking. To make a div scrollable use:
data-scroll="x|y|true"
2010-12-01 14:04:54 -08:00
scottjehl
9853fa9252 added a quick google maps example - needs some more love when we have time! 2010-12-01 11:55:35 -05:00
jzaefferer
93ac6f9b05 Converter experiment: Fix theme for search field 2010-11-26 15:23:22 +01:00
scottjehl
d56380fc22 refactor of jquery.mobile.core.js. Moved all of the page navigation model related scripting into jquery.mobile.navigation.js. This includes event handling for click, submit, and hashchange, all of the base tag management, path management, active link class handling, etc. All existing core tests are passing, and all demos work as expected. More tests are needed in core, and this refactor should make those tests easier to write. 2010-11-25 06:13:51 -05:00
scottjehl
d61ea68bfd tweaks to the demo css, markup 2010-11-22 12:30:32 -05:00
scottjehl
416cf38de5 fixed some bugs in the demo 2010-11-22 11:50:19 -05:00
scottjehl
47ca4d5962 removed unnecessary print from demo 2010-11-21 21:55:14 -05:00
scottjehl
0884d87709 half built demo - more to do 2010-11-21 21:51:26 -05:00
Kin Blas
dbdfd23541 Initial checkin of experimental support for momentum scrolling. We'd really like native browser support for sub-page scrolling, but until then, we need something.
This version supports simulated scrolling via the CSS3 transform property by default, but also supports an option for positioning the old-fashioned way with top and left properties.

Still some code clean-up to do, but folks can start playing with it.

Some items/issues left to look into:

- Experiment with event delegation so we can implement nested scrollviews.
- Implement scroll direction locking.
- Decide whether to conditionally inject clip/view markup.
- Decide on final ui class names.
- Decide on how scrolling behavior is actually invoked. (data-* attribute or class)
- Decide on final set of notifications we'll need to fire off.
- Add an API so that scroll position can be adjusted after a resize/orientation change.
- Documentation that describes potential problems with performance, memory usage, etc, and workarounds.
2010-11-18 15:12:27 -08:00
scottjehl
4db0734008 fixed themeswitcher a little bit 2010-11-11 20:31:17 -05:00
scottjehl
bffd9a991b needed $.mobile.activePage 2010-11-11 18:54:50 -05:00
scottjehl
055bf14e3f moved changePage, pageLoading, and silentScroll methods to $.mobile obj. 2010-11-11 15:03:40 -05:00
scottjehl
8f9aee12a6 removed js/all redirect. updated files to use js/ 2010-11-09 17:57:26 -05:00
scottjehl
b753de18b5 capitalize 2010-11-09 15:38:07 -05:00
scottjehl
04529e7498 fixed demo 2010-11-09 15:36:23 -05:00
scottjehl
f6dbe5554c Welcome back, Valencia. Fixes #352 2010-11-04 18:50:43 -04:00
scottjehl
a4ae3b9c4c removed ajaxform plugin and experiments 2010-11-01 23:53:52 -04:00
scottjehl
bc1d0ba08e set utf-8 2010-11-01 21:46:29 -04:00
scottjehl
d8c574dc0e fixed up the demo so it works with our current events anyway 2010-10-26 09:26:22 -04:00
scottjehl
4d3020d414 added px suffix to all media-min/max classes. Updated CSS usage to match. 2010-10-25 10:45:30 -04:00
scottjehl
f806fc07d7 updated css to use min-width classes in place of media queries 2010-10-22 14:46:27 -04:00
scottjehl
a0b814e26a moved appends over to use $.pageContainer 2010-10-20 12:09:03 -04:00
jzaefferer
939a557d67 Converter demo: Update to use the new refresh method in listview, along with some small tunings. 2010-10-20 06:31:02 +02:00