Commit graph

376 commits

Author SHA1 Message Date
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