Commit graph

29 commits

Author SHA1 Message Date
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
d97a964884 been meaning to do this for a while. 2011-04-14 16:04:47 -04:00
toddparker
50717094ad Removed section on non-ajax dialogs, not supported yet. 2011-03-28 15:42:53 -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
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
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
Ashley Streb
767c35c629 Updating docs to specify that the default transition for dialogs is 'pop' 2011-02-16 22:52:44 -08:00
toddparker
0aeb20b180 home button fixes 2011-02-03 18:34:35 -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
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
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
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
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
Todd Parker
719608d0a7 Added link to demo css file to all docs pages 2010-11-11 14:15:42 -05:00
scottjehl
8f9aee12a6 removed js/all redirect. updated files to use js/ 2010-11-09 17:57:26 -05:00
Todd Parker
358501409b Added documentation about how to close dialogs and how they aren't tracked in history. 2010-11-05 13:00:06 -04:00
scottjehl
bc1d0ba08e set utf-8 2010-11-01 21:46:29 -04:00
PattyToland
af07cf808e content edits to dialog page 2010-10-15 09:27:06 -04:00
PattyToland
5a66d6f860 content edits to dialog page 2010-10-15 09:26:07 -04:00
scottjehl
d5cbcf755b Created a themes directory and moved all CSS and images there.
Edited the PHP combiner and .htaccess logic to accommodate this change, as well as allowing manifest files to use a "../" when referencing files, which will be handy when adding themes that don't include structural files yet.

Modified all HTML files to point to /themes/default for their theme.
2010-10-13 13:26:23 -04:00
Todd Parker
c5e0d480c8 added new dialog demos and improved docs 2010-10-13 12:06:04 -04:00
Todd Parker
71bd3a114a fixed code example formatting 2010-10-12 17:23:48 -04:00
scottjehl
b11a45f615 switched up padding and margins on content div. Now it will get 15px padding, unless its a fullscreen page.
Inset listviews have no margin now, and regular listviews have -15px margins. Also, collapsibles now have no padding.

Updated HTML to remove ui-body classes for content divs, to match these changes.

Fixes #161
2010-10-12 15:50:28 -04:00
scottjehl
091c00a9cf removed media attrs in markup. We can do this internally in the css if necessary, but in general, this css only applies to js-generated classes anyway. 2010-10-12 15:14:07 -04:00
scottjehl
65cd3ae0ab fixed paths to js and css files when these files are opened standalone 2010-10-11 19:44:14 -04:00
Todd Parker
ac351b92e9 more docs edits for pages section 2010-10-11 17:49:12 -04:00
Todd Parker
be385a7162 new pages & links docs pages 2010-10-11 17:35:29 -04:00