Commit graph

32 commits

Author SHA1 Message Date
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
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
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
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
Mitch Foley
df3bc91f80 renaming nobackbtn to backbtn. 2010-12-13 10:54:26 -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
f56fe84245 fixed a docs typo 2010-11-18 22:56:40 -05:00
scottjehl
909a0d0f08 removed transitions property from the configuration and updated docs to match. 2010-11-18 22:18:20 -05:00
kptdobe
c413b2f86f fixed doc: missing/invalid HTML tags and 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
aca00ea8ec renaming for screen size 2010-11-11 19:09:11 -05:00
scottjehl
058f0a867d closing tag 2010-11-11 17:50:30 -05:00
scottjehl
014bbbcc4a typo 2010-11-11 17:17:45 -05:00
Todd Parker
e9d2c376fc added demo css file to api folder pages 2010-11-11 16:15:13 -05:00
scottjehl
5a2b76bae4 close the ul 2010-11-11 16:13:30 -05:00
scottjehl
499bcb6458 added methods documentation 2010-11-11 16:12:14 -05:00
scottjehl
17304461bf removed data theme 2010-11-11 16:12:00 -05:00
Todd Parker
06b383cbbf Content cleanup 2010-11-11 14:38:13 -05:00
Todd Parker
fed9911f08 Refined names for API pages 2010-11-11 14:34:12 -05:00
Todd Parker
98e09e7178 Merge branch 'master' of github.com:jquery/jquery-mobile 2010-11-11 14:26:07 -05:00
Todd Parker
db9e9c918e Combined settings and global config pages 2010-11-11 14:25:41 -05:00
scottjehl
c708859f55 added docs for media query helpers 2010-11-11 14:22:14 -05:00
Todd Parker
0e28ffe9a1 Added a few code style to demo css. Converted events api page to use DL markup 2010-11-11 14:06:47 -05:00
Todd Parker
34fefc02fc Merge branch 'master' of github.com:jquery/jquery-mobile 2010-11-11 13:53:23 -05:00
scottjehl
d8845f233b styling the dl 2010-11-11 13:43:05 -05:00
Todd Parker
2c63a48905 Updated default page theme example 2010-11-11 13:39:22 -05:00
scottjehl
30c8a4cd5e removed $.mobile.headExtras - useless 2010-11-11 13:38:05 -05:00
scottjehl
17facff55d docs updates 2010-11-11 13:33:19 -05:00