Commit graph

763 commits

Author SHA1 Message Date
jacob4u2
f56d084aec Fix #2002; updated -ms-filter style to match others 2011-07-05 17:25:03 -05:00
toddparker
30892bab4b Updated the Anatomy of a Page code examples to include the meta viewport tag
Updated 2 code examples with suggested settings and added an explanation of the feature. Fixes #1991
2011-07-05 14:40:51 -04:00
Théophile Helleboid - chtitux
971a2a78ed Fix a typo in the doc : H1 should be H6 in the h6 tag 2011-07-02 03:36:44 -07:00
Kin Blas
2b51355656 Switch back to processing link clicks on the "click" event. It really is the only reliable way across all the devices we support.
Also, remove all references to useFastClick.
2011-06-29 17:38:00 -07:00
jacob4u2
c24b4d813b Typo in docs; if -> is, forms-select.html 2011-06-23 21:20:30 -05:00
toddparker
c81b8cc181 Removed duplicate entry for Opera Mini (5.0-6.0) under C grade. It's B grade folks. 2011-06-22 14:49:13 -04:00
toddparker
2a252d70f9 Language tweaks 2011-06-22 12:11:51 -04:00
toddparker
a9fc1e06f8 Moved collapsible sets (accordions) into a standalone page for better visibility, updated section nav on other pages and index page to link to it. 2011-06-22 12:01:13 -04:00
scottjehl
3e3a57401c page is no longer in use. 2011-06-21 12:11:24 -04:00
scottjehl
a9fae15c88 woops. missed a couple. done now. 2011-06-20 19:17:49 -04:00
scottjehl
7d8d249280 small docs adjustment 2011-06-20 19:04:58 -04:00
scottjehl
52575bb5cb updated versions in sample code 2011-06-20 19:01:50 -04:00
scottjehl
4c6f3fb5c8 couple more docs markup updates 2011-06-20 18:59:32 -04:00
scottjehl
13a22e3eec updated the footers in the new docs templates 2011-06-20 18:53:55 -04:00
scottjehl
f3e35d49dd more updates to the docs markup. getting close! 2011-06-20 18:53:55 -04:00
scottjehl
579f418c2e updated the rest of the navs to be local to their section. 2011-06-20 18:53:54 -04:00
scottjehl
ebf9bd8535 added navigation components to most docs pages 2011-06-20 18:53:54 -04:00
scottjehl
6980110d32 updated header themes 2011-06-20 18:53:54 -04:00
scottjehl
85c1121680 update js references 2011-06-20 18:53:54 -04:00
scottjehl
74b001f62e linked up js docs references properly 2011-06-20 18:53:54 -04:00
scottjehl
735ee926d3 more docs updates. moved to the green header, set default transition dynamically 2011-06-20 18:53:53 -04:00
scottjehl
a1785b0574 more docs updates 2011-06-20 18:53:53 -04:00
scottjehl
46622fde58 more updates to docs 2011-06-20 18:53:53 -04:00
scottjehl
4cbbd7779a docs design updates 2011-06-20 18:53:53 -04:00
scottjehl
c7a852938c layout tweaks on the docs. 2011-06-20 18:53:53 -04:00
scottjehl
1e5441fd76 reworked the docs to better accommodate wide screens using a simple responsive layout. Tweaks forthcoming! 2011-06-20 18:53:53 -04:00
toddparker
4000afe720 A few tweaks to the supported patform page to add details. 2011-06-20 14:55:39 -04:00
toddparker
7a5c8b7e62 Re-vamped supported platform page to match the latest Beta 1 blog post. Added desktop browsers to the list. 2011-06-20 13:04:18 -04:00
scottjehl
45a71ac499 Added global config option "useFastClick", so that the changes we made for automated ajax handling since A4 can be disabled if needed, for whatever reason. When handling clicks and taps automatically with Ajax, this option will use jQuery Mobile's <code>vclick</code> event, enabling page changes to happen slightly sooner on devices that support touch events, and keeping the address bar hidden during page transtions. When disabled, the automatied Ajax handling will use an ordinary <code>click</code> event instead. This option has no effect on non-touch devices, but when enabled, it may interfere with jQuery plugins that bind to click events rather than vclick events. Fixes #1857 2011-06-20 11:35:09 -04:00
scottjehl
9ab7817b5b native forms example page was missing a meta viewport. 2011-06-18 08:16:49 -04:00
Kin Blas
18d7b7902c Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-06-17 18:22:46 -07:00
Kin Blas
9f4ae3ba79 Documenting isSameDomain(), isRelativeUrl(), isAbsoluteUrl(), makePathAbsolute(), and makeUrlAbsolute(). 2011-06-17 18:22:00 -07:00
scottjehl
06020201fc fixed up the themeswitcher 2011-06-17 19:25:35 -04:00
scottjehl
fcbfc2f380 added minScrollBack feature to core options. This is the minimum scroll distance that will be jumped-to when returning to a page. By default, the distance is screen.height /2. If you really needed to disable scroll memory altogether, this could be set to Infinity. Note that disabling scroll memory altogether is almost never a good idea for usability, but the option is there. 2011-06-17 19:19:47 -04:00
toddparker
849c533839 Fixed page title 2011-06-17 18:46:04 -04:00
toddparker
101d40e7f2 Removed beta support block 2011-06-17 18:45:19 -04:00
toddparker
79391e8d66 Updated supported browser info for beta. 2011-06-17 18:43:58 -04:00
toddparker
82d66252ad Updated support platform list to match beta 1 2011-06-17 18:40:54 -04:00
toddparker
b3aa56582c Added a warning about the use of the flip transition on Android. 2011-06-17 16:37:28 -04:00
Kin Blas
29df5c6a3c Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-06-17 12:30:31 -07:00
Kin Blas
93d3551f9c Documenting $.mobile.path.parseUrl(). 2011-06-17 12:29:50 -07:00
scottjehl
b787ef1015 Updated documentation for theming the list view filter search box. (cherry-picking from commit b39dab88d8567ddc40f87eca718e12d29cbd4df7)
Credit to @adamvaughan for this change.
2011-06-17 01:32:50 -04:00
scottjehl
d2a6397983 added list filterTheme option. Available as data attribute data-filter-theme on listviews with filters enabled. Fixes #1790 - List view filter can not be themed.
Thanks for the idea @adamvaughan! Docs update coming next.
2011-06-17 00:59:17 -04:00
scottjehl
e06ae4a5b9 rolled back the change to looking up list filter placeholders. Seems to work fine as it was originally. Added a custom placeholder to the listview filter with headings demo page. 2011-06-16 23:47:04 -04:00
Kin Blas
0ec7c3c54a Changed the description of the role option for loadPage() and changePage() to reflect some changes to the default value I just checked in. 2011-06-16 15:18:42 -07:00
Kin Blas
ca4428c430 - Update changePage() documentation to match current implementation.
- Added entry for loadPage().
2011-06-15 13:58:08 -07:00
Luke Young
48dac50dad Fixed typo in docs/buttons/buttons-themes.html (was "d" when it should be "e") 2011-06-12 12:13:33 -07:00
Scott Jehl
32d7fca682 Merge pull request #1685 from StevenBlack/NixDatepicker
Per discussions last week: removal of the experimental jQuery-UI-based Datepicker. Code can be found here: https://github.com/filamentgroup/jQuery-Mobile-Themed-DatePicker
2011-05-24 15:53:44 -07:00
scottjehl
8929ac33b9 Removed the ajaxLinksEnabled and ajaxFormsEnabled settings. These were deprecated in a4 and scheduled for removal. Automated link and form ajax handling can still be globally disabled via the ajaxEnabled option. 2011-05-24 16:08:30 -04:00
Kin Blas
368d3e55b4 Merge branch 'master' into navigation 2011-05-23 17:00:32 -07:00
Steven Black
f2ad4e5fe2 Per discussions last week about the removal of the experimental jQuery-ui Datepicker.
* docs/forms/index.html: Removed reference to the jQuery-UI Datepicker which is too heavy for mobile.
* experiments/ui-datepicker folder: deleted since it is no longer referenced.

Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-21 22:06:39 -04:00
Kin Blas
3c792c58f0 Merge branch 'master' into navigation
Fixed Conflicts:
	js/jquery.mobile.init.js
	js/jquery.mobile.navigation.js
2011-05-20 09:39:19 -07:00
cwt137
2a5badd14d Adds missing button in toolbar theming example. Fixes issue #1674 2011-05-20 06:27:52 -07:00
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
Kin Blas
b96310eedf - Externalize some of the nested functions in changePage().
- Modified changePage() so that it can take an options object. Updated all references throughout the framework.
- Split $.mobile.pageLoading() into 2 functions $.mobile.show/hidePageLoadingMsg(). Updated docs accordingly.
- Renamed $.mobile.defaultTransition to $.mobie.defaultPageTransition. Updated docs accordingly.
- Added $.mobile.defaultDialogTransition so that it isn't hard coded in the changePage/transitionPages and select code.
- Hand integrated jquery.mobile.navigation.js checkins from master: 4b4ee54a, e775f5e8, e597ccb3, 084bbbd8.
2011-05-16 16:02:26 -07:00
toddparker
a5960dea26 Closed missing </head> tag. Must have been a greedy find and replace that deleted this. 2011-05-12 11:09:59 -04:00
scottjehl
28ef60afe2 added deprecated message for media helpers 2011-05-11 18:31:13 +02:00
toddparker
51908bdaeb Updated the radiobutton page to fix the sample code that showed two data-role attributes on a single element. 2011-04-28 17:29:37 -04:00
Todd Parker
0cccfda568 Merged pull request #1427 from mariozaizar/master.
Small typo in "Current browser support" link. Thanks mariozaizar!
2011-04-28 13:43:07 -07:00
cwt137
357b87fab9 Corrects comment that was wrong. Changes "header" to "footer". Fixes bug #1480 2011-04-19 22:00:25 -07:00
toddparker
fb8ef84434 Fixed a typo, thanks Steven. 2011-04-18 17:35:27 -07:00
toddparker
cdd8b745ca Added documentation on the auto-updating title and data-attr in the anatomy of a page. 2011-04-18 14:51:48 -07:00
scottjehl
d97a964884 been meaning to do this for a while. 2011-04-14 16:04:47 -04:00
Mario Zaizar
42b66038e7 Fixing a really small typo in "Current browser support" link at Alpha 4 post. 2011-04-11 13:42:33 -05:00
scottjehl
5c1953f5cd set version to 1.0a4.1 2011-04-07 16:55:05 -04:00
toddparker
77d7c08316 Removed placeholder A4 banner graphic. 2011-04-05 11:41:42 -04:00
scottjehl
bb7b09f2a1 documented theme css namespace caveat. Fixes #1341 2011-04-01 14:58:36 -04:00
scottjehl
cb34aa2169 typo 2011-04-01 12:28:28 -04:00
scottjehl
198cb1420d updated some a3 links. DOH! 2011-03-31 19:08:45 -04:00
toddparker
0fd3a0b9bf Updated banner to A4! 2011-03-31 18:39:36 -04:00
toddparker
db3a57975b Updated to A4 and 1.5.2 2011-03-31 18:38:34 -04:00
toddparker
66ba363895 Fixed broken links 2011-03-31 18:36:39 -04:00
toddparker
37a54cb2b0 Removed outdated phone link styles 2011-03-31 18:35:48 -04:00
scottjehl
ec8a9cfed4 Merge remote branch 'origin/master' 2011-03-31 17:40:16 -04:00
scottjehl
125a80e518 edits to listview demos 2011-03-31 17:40:07 -04:00
John Bender
bb7ab45a19 small whitespace fix, removed the data-rel=back from two buttons in the docs as it takes precendence over the href 2011-03-31 14:39:34 -07:00
scottjehl
1a49fb9445 edited demo pages for listviews 2011-03-31 17:34:31 -04:00
scottjehl
91109ebbd0 better page titles 2011-03-31 12:56:47 -04:00
scottjehl
506d5050b1 Merge remote branch 'origin/master' 2011-03-30 23:52:41 -04:00
scottjehl
77b25a46ea docs typo. Fixes #1150 2011-03-30 23:52:36 -04:00
toddparker
bfb713ce04 Merge remote branch 'origin/master' 2011-03-30 23:41:42 -04:00
toddparker
7ae63cb6cd Updated grid documentation to explain that we're using additional classes an styles, just for illustraiton purposes. 2011-03-30 23:41:29 -04:00
scottjehl
6bac3f81e5 Merge remote branch 'origin/master' 2011-03-30 23:28:58 -04:00
scottjehl
51c79481fc documented hashListeningEnabled. Fixes #1091 2011-03-30 23:28:53 -04:00
toddparker
faf0d6a581 Merge remote branch 'origin/master' 2011-03-30 23:15:43 -04:00
toddparker
43ea8df112 Fixed missing hyphens in listview theming data- attribues and re-coded some mangled list code examples. Everything is working right again. Closes #992 2011-03-30 23:15:27 -04:00
scottjehl
b77e04e7c4 Merge remote branch 'origin/master' 2011-03-30 22:53:55 -04:00
scottjehl
5d93d53090 removed the cdn hotlinks - local is best for testing. Also added a link to test Bender's new fix - works fantastic. 2011-03-30 22:53:46 -04:00
toddparker
e9e7a78e99 Fixed a minor grammatical error in the pages docs. 2011-03-30 22:31:18 -04:00
scottjehl
15ef91c828 Merge remote branch 'origin/master' 2011-03-28 18:31:00 -04:00
scottjehl
8fa56b6e85 Got the sticky footers working again. Markup change noted in first page of demo. Fixes #850 2011-03-28 18:30:55 -04:00
toddparker
cf5676992d Fixed toolbar demo page, added a sample form and updated list markup to new style 2011-03-28 16:43:40 -04:00
scottjehl
bb9921a9f4 Merge remote branch 'origin/master'
Conflicts:
	docs/pages/docs-link-scenarios.html
2011-03-28 16:37:58 -04:00
toddparker
72f4b4a0ca Fixed link markup on this page. 2011-03-28 16:33:29 -04:00
scottjehl
1a2a85773b fixed a bad path 2011-03-28 16:07:19 -04:00
scottjehl
bc005fe18d page isn't in use. covered by link-formats.html 2011-03-28 16:07:09 -04:00
toddparker
50717094ad Removed section on non-ajax dialogs, not supported yet. 2011-03-28 15:42:53 -04:00
scottjehl
ee02a76279 self-submitting form demo. 2011-03-27 18:51:59 -04:00
scottjehl
4f4718731f Incorporating mariozaizar's changes to add a backBtnTheme option (null by default) to the page plugin. A few edits were needed to support namespacing and a proper null default so theme inheritance is the default. 2011-03-27 18:29:45 -04:00
scottjehl
b0eb2bd053 Fixed up nested listviews so that any markup that comes before the child list will be used for complex formatting in the list item node. Text nodes that are direct children of the LI still work fine as well. Fixes #585 2011-03-27 16:18:24 -04:00
scottjehl
4011cf684e added a bigger select example to the demo 2011-03-27 15:56:48 -04:00
scottjehl
ef1b0d94ae added the $.mobile.listview.prototype.options.closeBtnText option for configuring the text of dialog back/close buttons. This also Fixes #1227 (or at least a note within that already-closed issue). Documentation included. 2011-03-27 14:10:16 -04:00
scottjehl
315c594572 Added "filterPlaceholder" option to allow configuring filter listview placeholder text. Documented here: jquerymobile.com/test/#docs/lists/docs-lists.html. Fixes #1227 2011-03-27 14:01:59 -04:00
scottjehl
241500a422 quick sample page for testing selects in dialogs 2011-03-27 12:38:33 -04:00
scottjehl
4a45d8d96b Added pageLoadErrorMessage option. Defaults to "Error Loading Page". Documentation included. Fixes #1258 and Fixes #363 2011-03-27 11:45:03 -04:00
scottjehl
baa37e94b5 markup fixes 2011-03-27 01:47:58 -04:00
scottjehl
bbfb91b45a markup fix 2011-03-27 01:21:53 -04:00
scottjehl
8397afba8c markup fix 2011-03-27 01:16:17 -04:00
scottjehl
f8e406dd7f more markup cleanup to support the new hierarchy 2011-03-26 21:29:24 -04:00
scottjehl
84b55548d3 more updates to the listview markup, styles and scripts to allow wrapped anchors 2011-03-26 21:29:24 -04:00
scottjehl
72fe3a2c21 initial markup changes 2011-03-26 21:29:24 -04:00
scottjehl
e8cee23744 major simplification of jqmData method, while adding new methods for jqmRemoveData, and also their $-namepaced utility methods, including $.jqmHasData. Commit includes 20 new unit tests included to test compatibility with jQuery core's data methods, and docs are updated as well. 2011-03-26 14:14:02 -04:00
scottjehl
8a3b846e95 documented the new jqmData method and :jqmData selector. 2011-03-26 09:11:42 -04:00
scottjehl
9fc1f9828b fixed docs for the default namespace (blank string) 2011-03-26 08:39:12 -04:00
John Bender
bb721aa48c Merge branch 'master' of github.com:jquery/jquery-mobile 2011-03-25 21:38:06 -07:00
toddparker
07be08c4b4 Inproved select docs and added optgroup and disabled option for native menus 2011-03-25 22:42:11 -04:00
John Bender
4fe0b29a0f Merge branch 'data-namespacing' 2011-03-25 18:46:00 -07:00
toddparker
86db2a77a1 Cretaed Alpha 4 version banner for docs homepage so we're ready to go. Need to rename this to "version.png" when we flip the switch. 2011-03-25 15:14:20 -04:00
toddparker
509082efd1 Updated supported browser page to include WP7 and say alpha 4. 2011-03-25 13:07:27 -04:00
toddparker
649824a40e Few language tweaks. 2011-03-25 13:01:35 -04:00
toddparker
ea074d1ef1 Set the global default for select menus to use the native instead of custom. Updated the docs and examples to match. 2011-03-25 12:44:46 -04:00
scottjehl
61005944d3 Added support for the target attribute on forms (such as target="_blank"). When set, the form handler simply allows the native handling to apply. Unlike anchors however, the rel attribute is not allowed on forms. If you're purely looking to submit a single form without ajax, you can use the data-ajax="false" attribute as well. Fixes #952 and docs updates are included 2011-03-24 00:59:42 -04:00
toddparker
f22b7c8395 Updates to rel="external" dialog docs 2011-03-23 12:44:24 -04:00
toddparker
aad79e8a9a Added rel="external" example to the dialogs docs 2011-03-23 12:39:04 -04:00
John Bender
63e8f6bfcb resolved merge conflicts and fixed 2 tests 2011-03-15 23:57:17 -07:00
toddparker
b3cfe8778f Added documentation on how to disable Ajax form submission via data- attribute and gloabl config. 2011-03-15 19:21:27 -04:00
scottjehl
3275baf64c added demo pages for inset filter lists 2011-03-15 00:08:01 -04:00
scottjehl
7f48419a29 This adds a fallback for navbars that have one item, so they simply fill 100%. Credit for this fix and idea goes to kennedyr (Richard Kennedy), but we changed the naming around a bit. Fixes #1107. Thanks Richard! 2011-03-14 20:26:20 -04: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
toddparker
9e29410d0a Added documentation to explain how to use the refresh method on many form elements when you manipulate them. This will hopefully help a lot of people who were confused by this! 2011-03-13 22:16:13 -04:00
toddparker
061fbc4a72 Fixed country names next to flags. Apologies to Norway, Finland and Sweden! Fixes #1156. 2011-03-13 21:58:37 -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
1e01856f5d updated to use namespace 2011-03-09 21:34:03 -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
aa0228d5b8 updated doc 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
d183cc591f applied data-jq- namespacing to all data attributes in docs 2011-03-09 20:53:02 -05:00
toddparker
9bd530b1fa Added a new demo page showing how adding data-role="none" to form elements and buttons will show the default, native control. Added link to this page from the forms index.
Good news - the data-role="none" attribute seems to work great, no issues found.
2011-03-09 15:35:45 -05:00
Ernesto Jiménez
dae3e2fa74 Proper support for lists with search filter and dividers 2011-02-23 17:42:47 +00:00
Jim Hoskins
cbd890daa6 Changed <ul> to <ol> in html content formattic doc 2011-02-23 01:27:12 +08:00
Jim Hoskins
1b588fa76d Updated grammatical errors in docs
Changed "an" to "a" where appropriate
2011-02-23 01:27:12 +08:00
Ashley Streb
767c35c629 Updating docs to specify that the default transition for dialogs is 'pop' 2011-02-16 22:52:44 -08:00
tschaub
899e9581e9 P free hamster. 2011-02-16 05:55:21 +08:00
Michael O'Hearn
554bb1e7e3 fixed a typo 2011-02-10 22:04:15 -08:00
John Bender
2a1935caf5 Revert "added autoInitialize documentation"
This reverts commit 7da26e1974.
2011-02-07 08:11:57 -08:00
Ryan
ee56af59af Added data-dividertheme to docs. 2011-02-05 20:08:23 -05:00
scottjehl
89cb6d455f typos in page template urls. 2011-02-04 10:13:56 -05:00
scottjehl
a1867eef58 found a dead link that managed to take down our multipage demo. 2011-02-04 08:08:32 -05:00
toddparker
c618ef4251 Added bg color for demo pages 2011-02-03 18:38:51 -05:00
toddparker
6c63bc699b Merge remote branch 'origin/master' 2011-02-03 18:34:55 -05:00
toddparker
0aeb20b180 home button fixes 2011-02-03 18:34:35 -05:00
scottjehl
0745af1292 typo in code example. Fixes #966 2011-02-03 17:49:58 -05:00
toddparker
2423c3cb59 Device image 2011-02-03 17:31:56 -05:00
toddparker
9806cdc221 Added a home link to all pages and changed the header bar theme swatch to b globally 2011-02-03 17:29:48 -05:00
toddparker
d79d0e3c45 Updated sample page templates and docs to mobile a3 and jquery 1.5 2011-02-03 16:36:21 -05:00
toddparker
1db7cfb360 New high-res logo with better compression 2011-02-03 14:17:06 -05:00
toddparker
6e50626914 Alpha 3 flag 2011-02-03 14:09:55 -05:00
toddparker
928562dd92 Created demo buttons for the new home and search icons 2011-02-03 13:38:25 -05:00
toddparker
985cc19934 Added h2 to intro page 2011-02-03 08:17:18 -05:00
toddparker
9e95212789 Added firefox mobile to the list of supported browers for alpha 3. 2011-02-03 08:15:14 -05:00
toddparker
faf36d02a1 Fixed broken footer example, added a few more color variations. 2011-02-03 08:11:57 -05:00
scottjehl
1c49c96b6c added data-rel back attrs to dialog sample buttons 2011-02-03 02:59:30 -05:00
John Bender
7da26e1974 added autoInitialize documentation 2011-02-02 23:03:07 -08:00
toddparker
d76234b397 Content tweaks for form theme page, fixed a few broken links 2011-02-01 22:55:10 -05:00
toddparker
1644bca45b Added data-role="button" attributes to links because these were rendering as links only. Added link to form theming page. 2011-02-01 22:38:22 -05:00
toddparker
cd17ceda97 Updated the status of alpha 3 borwser support page 2011-02-01 22:30:45 -05:00
scottjehl
698f7fd255 updated attribute for new option name 2011-02-01 15:50:40 -05:00
scottjehl
aad8ac174a Removed the extra ways to set nativeMenu option in select plugin. Now like other plugins, the option is both available through the plugin's options (nativeMenu) or through a data-attribute (data-native-menu), which is automated through the camelcase option name. Unit tests updated 2011-02-01 13:27:35 -05:00
scottjehl
3f938fd2f9 fixed bug where a preset data-url was being prefixed by the base url, rather than replacing the whole hash. Fixes #591 2011-02-01 12:32:02 -05:00
scottjehl
e0d419d001 updated some docs pages to mention data-ajax="false" attribute on links. 2011-02-01 01:20:47 -05:00
scottjehl
0572757af3 updated docs to describe new listview li-level data-theme option 2011-02-01 01:07:17 -05:00
scottjehl
b3a8230638 This commit includes simplifications to the hashchange event handling & changePage logic, which results in a few bug fixes and removal of some previous limitations. Details:
- jquery.mobile.core.js  no longer creates pages from every page and dialog in the DOM automatically at domready. Instead, pages are created as they are referenced via changePage, which can speed up pageload in multi-page documents, and means local "dialogs" referenced via data-rel="dialog" no longer need a data-role="dialog" attribute when served.

- in changePage, "from" is now allowed to be undefined. This simplifies the logic involved in showing the first page, which never had a "from" page, and previously needed a custom pageChange workaround to accommodate that.

- The pageshow event is no longer used as a callback for returning false and preventing the $.mobile.activePage from being set to the newly shown page. In other words, a page always becomes $.mobile.activePage once its shown now (the only reason this was optional before was because of a dialog restriction that's no longer true)

- the hashchange event logic for showing a particular page is now greatly simplified. It either shows the page referenced in location.hash, or if there's no hash it changes to the first page in the dom. This means every pageshow (including the first one) now uses pageChange internally.

- the hashchange event listener is no longer disabled when ajaxEnabled == false. Doing this before prevented local non-ajax page navigation from working properly. To disable hashchange listening, use $.mobile.urlHistory.listeningEnabled. We might consider defining (or moving) this on the $.mobile hash later as well for easier access.

- The internal var $.mobile.startPage is now $.mobile.firstPage, because it's not necessarily the page you started on, but merely a reference to the first "page" in the dom.

- Back buttons are auto-added to every page after the first one you first visit (this includes generated pages, such as those in a multipage document or nested listviews). Keep in mind that a "back" button does not take the place of a standard "home" link, and when building an app with jQuery Mobile, it's good to make use of both (particularly on deep-linked pages). Fixes #908
2011-01-31 17:05:57 -05:00
scottjehl
f842b46474 added data-rel attrs to close buttons 2011-01-31 17:05:41 -05:00
scottjehl
44806bcf58 added a dialog to the demo 2011-01-31 16:51:20 -05:00
scottjehl
b112b6ea84 updated doc version # 2011-01-31 16:45:41 -05:00
scottjehl
c470278a62 added data-direction to "back" link in content, in case the deep-linked page is opened first. 2011-01-30 16:54:33 -05:00
John Bender
e35952346f whitespace correction for docs 2011-01-27 23:48:06 -08:00
John Bender
2dfa09bcf7 updated docs to include $.mobile.nativeSelectMenus 2011-01-27 23:42:56 -08:00
John Bender
3197f7e61a corrected a duplicate id which was causing the two similarly identified selects to have doubled menu page header titles 2011-01-27 22:50:40 -08:00
toddparker
5b7201ef48 Added documentation and demos for the new data-native="true" option that speeds up performance of selects by using the browser's native menu (thanks John Bender!) 2011-01-27 13:40:20 -05:00
scottjehl
df05143371 edited some nav model info - needs filling out, but outdated info is removed now at least 2011-01-26 22:44:32 -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
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
scottjehl
d9b84f3f60 added a note to docs. Fixes #880 2011-01-25 23:46:09 -05:00
scottjehl
b7001d8148 markup cleanup. Fixes #878 2011-01-25 22:24:05 -05:00
John Resig
4445ae3702 Remove support for stopping desk-based platforms, fixes #876. In the future if you wish to stop desks on platforms I recommend a cheap solution to that problem:
http://www.amazon.com/Magic-Sliders-80934-Rubber-Door/dp/B000UVMQ38

If you wish to have support brought back it can only be done so through successfully beating me at iOS Carcassonne. My username is 'jeresig@gmail.com'. Warning: I don't lose.
2011-01-25 16:05:19 -05:00
scottjehl
0ba9acfc33 added support for URL updating via a preset data-url on the page div when it is sent from the server.
If data-url is set on a page div when it returns from the server, it's value will be used to replace the url in the hash, and as the base url for future requests if it adds additional segments (such as a trailing slash). This will enable developers to work around the limitation of directory links requiring a trailing slash, and will also allow developers to specify a new url after a redirect occurs (such as after a login). Fixes #867
2011-01-24 19:35:45 -05:00
scottjehl
2e6a396278 added ajaxEnabled option. ajaxLinksEnabled and ajaxFormsEnabled are deprecated and will be removed by 1.0. Fixes #851 2011-01-23 19:03:35 -05:00
scottjehl
be8eb3d0c6 deprecated data-back attribute on links in favor of data-direction="reverse". Updated docs and relevant demos. 2011-01-23 18:12:46 -05:00
scottjehl
9b57c46349 Refactored urlStack and updated dialog and page plugins to match. jQuery Mobile's internal history now attempts to follow the history menu when urls change from hashchange, even for changes that go multiple steps forward or back. The internal history stack is now pruned based on whether a user goes back and then changes direction, whereas before a back-button click would result in a pop off the history. Instead we now maintain an active index number in the history stack, which allows us to maintain references to transitions that are saved on pages reached through clicking the forward button as well. This fixes #636.
In the process, some other small changes should be noted:
urlStack is now urlHistory, a hash of methods and properties used for history stack management (stack, activeIndex, getActive, getPrev, getNext, addNew, clearForward, and listening Enabled). All these are documented inline and exposed on $.mobile.urlHistory (I'm not sure these will be publicly documented, but just exposed internally for plugins for now).

$.changePage has two argument changes: the "back" argument is now called "reverse"; this results in no change from an end-user standpoint, but reflects the fact that it only reverses the direction of a transition without affecting the internal history stack, and second, a new argument at the end defines whether changePage was called from a hashChange which makes that url open to history menu guessing.
2011-01-23 17:33:36 -05:00
scottjehl
6a958ecba2 merge 2011-01-22 17:48:36 -05:00
scottjehl
9e4b0a484c Overhauled path object and exposed it and the base object via $.mobile. Form and Link handlers now use the path methods internally. Unit tests adjusted, but more are needed to fully cover the path and base propeties and methods. Fixes #566. 2011-01-22 17:42:07 -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
John Bender
beb40bcd7f corrected link to multi page template to have rel external per the docs 2011-01-20 00:38:07 -08:00
ehynds
f9c1592bc7 fix extra-wide pages in opera & opera mini 2011-01-12 18:00:53 -05:00
bclinkinbeard
32056c6873 Added type attribute to script tags and fixed footer comment 2011-01-12 03:52:33 +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
scottjehl
3fb55aef0b fixed up some duplicate IDs 2010-12-23 14:50:01 -05:00
scottjehl
ce7ff992d6 Merge branch 'docs' of https://github.com/ehynds/jquery-mobile into ehynds-docs 2010-12-23 09:20:17 -05:00
John Bender
fa760da3bd docs updated with information about the slider keys 2010-12-22 23:53:44 -08:00
ehynds
cc0d982c5e documentation for multiple select functionality and list icon theming.
also fixed a CSS specificity bug where the display:block declaration on .ui-li was overriding the display:none declaration for the placeholder class.
2010-12-22 18:11:01 -05:00
scottjehl
fd821b7440 Merge branch 'select_multi' of https://github.com/ehynds/jquery-mobile into ehynds-select_multi 2010-12-22 10:05:40 -05:00
Kin Blas
5961818bb3 Fixed a couple of spots that had the following invalid markup:
<pre></code>
2010-12-16 11:15:43 -08:00
jzaefferer
e70c17d625 Extend nested listviews to accept more then just the title in parent list item. Currently requires predefined anchor to be present, based on discussion in ticket. Extended lists-nested.html to test both variants. Fixes #253 - only text nodes allowed in nested listview 2010-12-15 15:54:13 +01:00
Mitch Foley
df3bc91f80 renaming nobackbtn to backbtn. 2010-12-13 10:54:26 -05:00
ehynds
2c8c89ba9b Merge remote branch 'upstream/master' 2010-12-07 17:45:33 -05:00
Michael J. Rubinsky
76cc574721 Add note specifying these events need to be called prior to jQuery Mobile execution. 2010-12-08 06:11:01 +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
scottjehl
008e7e4c37 changed to reference local js,css 2010-12-07 11:33:04 -05:00
ehynds
8118b77a6a documenting disabled options and optgroup support 2010-12-04 23:29:12 +08:00
ehynds
dc6bf52fff restoring doc 2010-12-04 09:07:59 -05:00
ehynds
bd845b3a17 arg 2010-12-04 09:06:04 -05:00
scottjehl
e765d21631 documented how to disable the hidePlaceholderMenuItems option in selectmenus 2010-12-03 11:38:47 -05:00
scottjehl
6dce87a2ac hide placeholder options in selectmenu overlays. Fixes #607 2010-12-03 11:32:48 -05:00
scottjehl
f9e25efeb6 Merge branch 'master' of github.com:jquery/jquery-mobile 2010-12-02 15:19:32 -05:00
Todd Parker
cc2fb7eb42 Actually updated to 1.4.4. Thanks Eric! 2010-12-02 12:27:48 -05:00
Todd Parker
df7de3f54d Updated jq script link to 1.4.4 on both pages. Also used CDN versions on the multi-page template. 2010-12-02 11:43:58 -05:00
scottjehl
69a91d0854 noted docs to-do 2010-12-01 17:05:28 -05:00
scottjehl
bc09540492 updated example code 2010-12-01 11:11:35 -05:00
scottjehl
7aafc9b669 documented auto-init (and prevention of auto-init) of form controls 2010-12-01 09:52:07 -05:00
scottjehl
90b469eb9e noted that the option should be set on mobileinit 2010-12-01 09:52:07 -05:00
scottjehl
5486f8e9e1 fixed typos 2010-11-30 10:20:20 -05:00
scottjehl
419787affe make sure submit button name/value is submitted with form values. Fixes #551 2010-11-29 10:09:26 -05:00
scottjehl
f56fe84245 fixed a docs typo 2010-11-18 22:56:40 -05:00
scottjehl
08e6e2f603 added quick documentation for degradeInputs 2010-11-18 22:40:18 -05:00
scottjehl
c636b774ab updated docs to include new button methods 2010-11-18 22:18:20 -05:00
scottjehl
c8654bfcfc updated docs to include new slider methods 2010-11-18 22:18:20 -05:00
scottjehl
909a0d0f08 removed transitions property from the configuration and updated docs to match. 2010-11-18 22:18:20 -05:00
Leon Brocard
42d20b4b08 Update a few remaining links from 1.0a1 to 1.0a2 2010-11-18 22:40:10 +08:00
Todd Parker
d7becdc728 Merge branch 'master' of github.com:jquery/jquery-mobile 2010-11-17 11:00:53 -05:00
Todd Parker
bf0a32f540 Updated docs from $.changePage() to $.mobile.changePage(). Fixes #488 2010-11-17 11:00:40 -05:00
Yuki KODAMA
b7b63f526e fixed docs for flip toggle switch widget 2010-11-17 19:33:07 +09:00
Yuki KODAMA
b93f5d200d fixed docs for slider widgets 2010-11-17 19:32:31 +09:00
kptdobe
c413b2f86f fixed doc: missing/invalid HTML tags and wrong paths 2010-11-16 22:42:02 +08:00
kptdobe
15e8fa11a5 fixed doc homepage wrong paths 2010-11-16 22:42:02 +08:00
scottjehl
bffff87441 changed docs for live event => bind event 2010-11-12 15:46:00 -05:00
scottjehl
cf2fc6434e added docs for media query function 2010-11-11 21:50:39 -05:00
scottjehl
86005a8815 fixed the FF double scrollbar thingy 2010-11-11 19:58:14 -05:00
scottjehl
7c400eaef7 fixed the retina display for this demo 2010-11-11 19:56:18 -05:00
scottjehl
aca00ea8ec renaming for screen size 2010-11-11 19:09:11 -05:00
scottjehl
aec0cbc946 docs updates 2010-11-11 18:47:21 -05:00
scottjehl
058f0a867d closing tag 2010-11-11 17:50:30 -05:00
scottjehl
d3a0d33791 fixed up grids and navbar again - this time to automate the column count to number of children, or 'a' when greater than 5. data-grid attribute can be set to any grid letter to trump the automated counting. 2010-11-11 17:33:07 -05:00
scottjehl
78f342b5e0 fixed up the navbar and grid plugin logic. now supports up to 5 cols 2010-11-11 17:17:45 -05:00
scottjehl
014bbbcc4a typo 2010-11-11 17:17:45 -05:00
Todd Parker
36163120d6 Set header theme from e to default on form demo page 2010-11-11 17:14:49 -05:00
Todd Parker
e9d2c376fc added demo css file to api folder pages 2010-11-11 16:15:13 -05:00