Commit graph

160 commits

Author SHA1 Message Date
scottjehl
aeb2643bdc Ajaxclick function will now detect if it's an external link, and if so, it won't use Ajax. 2010-10-02 12:18:45 -04:00
scottjehl
91c5b90c82 moved jquery.tmpl.js to converter demo folder, as the script is not part of mobile proper 2010-10-02 11:57:43 -04:00
scottjehl
22eecd11dc refactored. globalnavs can now be generated on any div, and all they do is the "more" nav behavior. Plugin may need renaming...
in these demos, the globalnavs are inside a footer div.
2010-10-01 23:37:43 -04:00
scottjehl
ed96011a28 major refactor - now uses relative positioning.
Interactions still aren't perfect, but the code is cleaner!
2010-10-01 23:36:25 -04:00
scottjehl
b6239c02f7 removed references to globalnavs, as they'll need to be managed in a different way. 2010-10-01 18:45:46 -04:00
scottjehl
3f2c23b66d added theming for headers and footers to switch statement 2010-10-01 18:45:21 -04:00
jzaefferer
f148dbdd69 Refactored $.mobilize further to optimize form and controlgroup init. Added some notes 2010-09-30 14:08:59 +02:00
jzaefferer
6eee755ab7 Added TODO comment, as custom select doesn't work on desktop browsers 2010-09-30 14:00:01 +02:00
Douglas Neiner
b2656c28a6 Fixed regression with radio and checkboxes 2010-09-29 13:32:36 -07:00
Douglas Neiner
e83fea8ddc Fixed variable name on button changes 2010-09-29 13:11:48 -07:00
Douglas Neiner
61f3c3341f Updated button to optimize readablity 2010-09-29 11:56:41 -07:00
scottjehl
012d79eb58 selector for datepicker hackaround was too broad. 2010-09-29 09:21:31 -07:00
scottjehl
7fe3d9a22f Merge branch 'master' of github.com:jquery/jquery-mobile 2010-09-28 08:57:31 -07:00
scottjehl
bfae696a58 removed some icon cruft from ui 2010-09-27 16:58:05 -05:00
scottjehl
75413a992b unused selector 2010-09-27 16:55:03 -05:00
scottjehl
ad9165caa7 killed the shadow 2010-09-27 16:41:20 -05:00
scottjehl
0511300702 added super sketchy workaround for a datepicker demo. We can toss these out once we figure out how we'll properly include a datepicker. 2010-09-27 16:33:37 -05:00
scottjehl
43f3656a92 added datepicker js and css files (datepicker includes ui) for a temporary datepicker demo. 2010-09-27 16:30:56 -05:00
Kin Blas
0717106b94 Fixed issue 62: Multiple data-role="page" elements in a single document results in multiple markup insertion passes.
The function used to iterate over all pages was making reference to th e$el variable passed into mobilize(). This meant it was executing the same operation over *ALL* pages several times, once for each page in the document.

- Redefined $el in the funciton passed to the each() method.
2010-09-27 11:39:57 -07:00
Kin Blas
0a2a82102e Fixed Issue 58 Fixed Headers/Footers Scroll with the document occassionally.
The bug seems to be caused by the fact that code inside show() is triggering a scrollstart event while still in the midst of handling the scrollstop event. This threw off the setting of showAfterScroll causing the currentstate to be stuck at "inline", so no hide/show code is ever triggered after that.

- Modified the scrollstart and sccrollstop callbacks to set showAfterScroll prior to calling show()/hide().
- movied the hide() call in scrollstart handler underneath the check for 'overlay'.
2010-09-24 11:09:45 -07:00
scottjehl
92c49bf97e extended slider to support simple toggle switches based on select menus.
The logic will actually support multi-option selects as well, but the labels are flipped in order for switch-style controls, so if we want to support regular sliders from selects, the labels will have to be in forward order and beneath the slider bar.
2010-09-23 12:51:23 -04:00
Scott González
1a3b0131d4 Use touchend instead of touchmove for touch support - saves a byte. 2010-09-23 10:13:20 -04:00
Scott González
c106b7cb07 Use touchmove event for jQuery.support.touch detection. Fixes #57. 2010-09-23 10:07:28 -04:00
scottjehl
149b071af1 added meta tags for fullscreen, bookmarking, etc. These will need some configurable options like jQtouch has 2010-09-22 13:54:52 -04:00
scottjehl
517e07059a updated swipe event detection to use 30px minimum distance and 20px tolerance 2010-09-22 13:20:13 -04:00
scottjehl
218855357b removing file in favor of previous changes. 2010-09-22 11:12:48 -04:00
scottjehl
da29904834 Replaced expandable plugin with basic scrollHeight vs. offsetHeight check that uses CSS transitions. Shaves about 4kb. 2010-09-22 11:09:06 -04:00
Scott González
cdac24a168 Don't treat right/middle clicks as taps. 2010-09-22 10:47:15 -04:00
Scott González
641aa54c11 Listview: Use .data() instead of .attr() for reading config values. 2010-09-22 10:26:04 -04:00
scottjehl
a78d5efbc5 made sure form controls with a role of nojs are not enhanced 2010-09-22 09:49:36 -04:00
Scott González
51bb4c9224 Updated jQuery. 2010-09-22 09:46:26 -04:00
jzaefferer
037729415c Refactored slider code a bit, just a first pass. 2010-09-21 23:31:25 +02:00
Scott González
9c6f03ca00 Only listen to mousemove/touchmove and mouseup/touchend events after mousedown/touchstart is triggered. Improves performance by not listening to all move events. 2010-09-21 17:29:43 -04:00
jzaefferer
0cb179e9fe Fixed collpsible typo. 2010-09-21 23:18:00 +02:00
jzaefferer
71a80f413a Refactored mobilize to iterate over dataEls just once, removing about 10 filter calls. 2010-09-21 22:56:48 +02:00
scottjehl
8b5a1b0a1f moved the percent fixer logic out of the if/else 2010-09-21 16:45:45 -04:00
scottjehl
a66fd2f296 Merge branch 'master' of github.com:jquery/jquery-mobile 2010-09-21 16:43:24 -04:00
scottjehl
e6707af667 added aria support 2010-09-21 16:43:07 -04:00
jzaefferer
176dfcebab Adding converter-demo. Not yet actually using cache.manifest, as that screws up testing on mobile devices. At least on Mobile Safari there is no way to clear that offline cache - none that I found so far. 2010-09-21 22:33:06 +02:00
scottjehl
3b7a717e92 more updates to slider css and js. Should have itemized commits, but this thing's still in first-pass status. 2010-09-21 16:07:23 -04:00
scottjehl
9ec0823443 needed to pass the event arg 2010-09-21 15:33:51 -04:00
scottjehl
8e3aa35931 return clicks false on handle 2010-09-21 15:32:35 -04:00
scottjehl
3d8ad26463 added slider auto-init code to mobilize function 2010-09-21 15:25:52 -04:00
scottjehl
4992d7b168 First pass at a simple slider plugin. Can be called on an input element with data-role="slider". Controls communicate both ways during use. 2010-09-21 15:25:23 -04:00
scottjehl
d35881628c removed swipe event always bound to body. 2010-09-21 15:21:28 -04:00
scottjehl
53771bbb68 rewrote mobilize function to pre-fetch elements and filter based on the results. Avg time running mobilize function on home page went from ~120ms to ~85ms. 2010-09-21 12:24:12 -04:00
scottjehl
9e37d2c1e9 added a few lines to the $mobilize function to convert the roles of header/content/footer to classes.
updated ajaxform and globalnav to accommodate change
2010-09-21 10:56:50 -04:00
scottjehl
5ca0d616ad updated both plugins to use the new nested hash URL scheme for deep-linking. 2010-09-20 18:22:19 -04:00
scottjehl
af585dc8c7 Added support for nested urls through the following additions:
1. added the $.mobile object, for storing public options used in core and other plugins that should be made configurable externally, somehow.

2. With this change comes the first property $.mobile: subPageUrlKey, which defaults to "ui-page" and becomes the URL parameter for denoting a generated sub-page of a particular URL. For example, you can now deep-link to sub-levels of a nested listview like this:
jquerymobile.com/test/#_listview.html&ui-page=listview-2

...in which "listview-2" refers to a generated page created by _listview.html when mobilize() runs on it.

Note that this &ui-page parameter is used for splitting the hash to find the right part to use for the ajax request for the real url (_listview.html), while the ID of the actual subpage div really uses the whole thing: "_listview.html&ui-page=listview-2".

The other idea is that after the "&ui-page=" part, plugins should use an ID that reflects their widget name. For example, &ui-page=listview-2 or &ui-page=globalnav.

Before this change, subpages would use the whole hash without mentioning their parent page url, so you'd end up with blank pages if you hit refresh while viewing a generated sub-page.
2010-09-20 18:21:53 -04:00
John Resig
2484c41900 Use jQuery instead of $ to match the core style guideline. 2010-09-20 16:48:45 -04:00