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
af250415b2
updated markup to use data-role attrs in place of classes for header/content/footer
2010-09-21 10:58:54 -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
f253a64c01
added link to wiki
2010-09-20 19:25:10 -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
scottjehl
b92938b110
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-09-20 10:47:55 -04:00
scottjehl
2cafd2dc00
renamed autoform to ajaxform. All dependencies that use it are updated.
2010-09-20 10:47:49 -04:00
jzaefferer
4a3ab05bba
Added some hints for developing on Windows and on configuring Apache
2010-09-20 20:29:06 +08:00
scottjehl
501171d913
linked to new search demo page
2010-09-19 19:09:12 -04:00
scottjehl
0583923498
added more search results
2010-09-19 19:09:05 -04:00
scottjehl
4b3f258305
edited search demo content
2010-09-19 19:06:47 -04:00
scottjehl
0fbbf6600a
added some resets
2010-09-19 19:06:35 -04:00
scottjehl
ee2e46cbfb
updated markup in search demo page
2010-09-19 19:04:33 -04:00
scottjehl
ebc80aa96e
added faux search response page
2010-09-19 19:04:20 -04:00
scottjehl
b2f8c00785
added search styles
2010-09-19 19:04:08 -04:00
scottjehl
b6eb492c6c
added search icon from glyphish - to be redrawn / replaced
2010-09-19 19:03:43 -04:00
scottjehl
32e965b9cc
added search icon
2010-09-19 19:03:26 -04:00
scottjehl
0726fe484c
added search icon
2010-09-19 19:03:16 -04:00
scottjehl
c451627dab
moved loader div positioning lower
2010-09-19 19:02:47 -04:00
scottjehl
51f3fa2e2b
default to no auto-submit events.
2010-09-19 19:02:21 -04:00
scottjehl
845549949c
don't add ui-body class to form
2010-09-19 18:37:51 -04:00
scottjehl
ee001d1338
added logic for applying different classes and behavior to search inputs
2010-09-19 18:34:50 -04:00
scottjehl
c16dee657b
new attribute: data-role="nojs" can be applied to any element that should be accessibly hidden from the page for A browsers.
2010-09-19 18:21:09 -04:00
scottjehl
02a76c3f48
added the auto-init for autoforms to mobilize function
2010-09-19 18:15:02 -04:00
scottjehl
cc58c6e0f5
added jQuery.mobile.forms.autoform.js to the manifest
2010-09-19 18:14:40 -04:00
scottjehl
489cd4f917
search demo page that'll use autoform plugin
2010-09-19 18:12:52 -04:00
scottjehl
5c3ab41cf3
adding autoform plugin
2010-09-19 18:12:36 -04:00
scottjehl
14436257f6
made sure ui-page class is only added if there's no closest('.ui-page') present on it during mobilize call
2010-09-19 18:11:39 -04:00
scottjehl
8c7205c3ad
added 4 functions to $ namespace for use in external plugins
2010-09-19 18:09:05 -04:00
scottjehl
0782029b12
made $.mobilize available for externals
2010-09-19 17:57:06 -04:00
scottjehl
fd1a0f1dbf
removed a theme class
2010-09-19 17:36:44 -04:00
scottjehl
f07a088b0b
added class to ui-page.
2010-09-19 15:25:33 -04:00
scottjehl
94d17d4f42
linked up the new globalnav example that uses glyphish icons
2010-09-19 15:22:33 -04:00
scottjehl
a3c1a3a57f
uncommented line to fade in content after loading finishes
2010-09-19 15:21:28 -04:00
scottjehl
6b28f51452
one more image path fix
2010-09-19 12:13:37 -04:00
scottjehl
188e068dcb
updated icon paths
2010-09-19 12:12:22 -04:00
scottjehl
04f24f1d9d
centered icons in demo
2010-09-19 12:09:47 -04:00
scottjehl
0395289c76
added demo with glyphish icons
2010-09-19 12:08:20 -04:00
scottjehl
458e7b5d2f
edited globalnav expanded button styles
2010-09-19 12:07:49 -04:00
scottjehl
b351290a9c
modified manageglobalnav function to work based on a passed element argument
2010-09-19 11:10:02 -04:00
scottjehl
ad7b3a2293
edited globalnav expanded layout a little bit
2010-09-19 11:09:25 -04:00
scottjehl
62507c5c5e
took the font size down a bit on global nav expanded buttons
2010-09-19 10:53:33 -04:00
scottjehl
08f1ec9bf8
rewrite of globalnav plugin. Anything beyond 3 links auto-generates a "more..." button and creates a fully navigable, scrollable page with all the links in a grid view.
2010-09-19 10:51:21 -04:00
scottjehl
456d754a87
changed initial selector to find first page so it doesn't use ui-page class
2010-09-19 10:49:28 -04:00
scottjehl
843f5810ee
moved initial mobilize call after ID is set
2010-09-19 10:47:27 -04:00
scottjehl
8d0f0ea9b8
fixed up min-height to stretch background to fill screen
2010-09-19 10:44:08 -04:00
scottjehl
12773bc925
changed to use classes for toggling globalnav visibility
2010-09-19 10:35:48 -04:00
scottjehl
c3d95d5fd0
changed to make sure mobilize is called on any pagechange (to accommodate generated globalnav pages. Made sure it can only be run once on a page.
...
also added manageGlobalnav function to show/hide globalnavs depending on whether the active page is an expanded globalnav.
2010-09-19 10:32:46 -04:00