Commit graph

1557 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
John Bender
bc473f48a7 comments for added clarity on bindings 2011-01-24 23:55:52 -08:00
John Bender
0cdd401f3a removed commented code from refactor 2011-01-24 23:54:22 -08:00
John Bender
23807769ac refactor off slider to move value retrieval to closure for _create method 2011-01-24 23:53:17 -08:00
John Bender
442e4b19b0 updated slider refresh function with an extra param for preventing validation on its input Fixes #468 2011-01-24 23:38:50 -08:00
scottjehl
3df24fab6d fixed a regression in safari where images wouldn't load properly because base was being set after html was appended. 2011-01-25 00:29:19 -05:00
scottjehl
5d5336d8b0 fixed firefox regression. check if base is set/supported before setting. 2011-01-24 23:56:53 -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
a762a67514 Merge remote branch 'origin/master' 2011-01-24 17:56:36 -05:00
scottjehl
a5b8e42fc1 updated jQuery to 1.5rc1. This update includes Nokia support in jQuery core, which is getting closer in JQM itself. 2011-01-24 17:56:32 -05:00
Dan Croak
de9d31389f added instructions for building your own jQuery Mobile 2011-01-25 05:32:29 +08:00
scottjehl
80b0d9ef4b Merge branch 'master' of github.com:jquery/jquery-mobile 2011-01-24 13:05:04 -05:00
scottjehl
4a9b374eea make sure change events fire whenever custom checks/radios change. 2011-01-24 13:04:41 -05:00
Kin Blas
1dad50e536 Fix for the header/footer positioning problem, mentioned in issue 58, that is caused by the browser url/nav bar scrolling offscreen due to the silentScroll() call triggered when the document is first loaded.
- Modified silentScroll() to trigger a "silentscroll" event. This was necessary because programatically scrolling the window does not generate "scroll" events.

- Got rid of the hideAfterDelay() function that was not used.

- Added startShowTimer() and clearShowTimer() functions.

- Added event handlers for "resize" and "silentscroll" events. This causes headers/footers to be positioned properly as "scroll" and "orientationchange" events cause the visual viewport to resize.

Issues this fix causes:

- On some Android platforms, clicking in textfields/textareas trigger a "resize" event. This causes the footer to show up in the minimized visual viewport, right above the keyboard.
2011-01-24 07:11:19 -08:00
scottjehl
b8f88000a3 made height tall for better demo 2011-01-23 22:41:14 -05:00
scottjehl
d7cda0094a don't bubble example 2011-01-23 22:36:44 -05:00
scottjehl
fa4fa181df moved to tests dir 2011-01-23 22:36:10 -05:00
scottjehl
977e075ece improved tap event and added a quick event logger page so we can get these neglected events in order. 2011-01-23 19:34:17 -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
2ebf659fbd made sure linking to the same page from within a dialog closes the dialog. 2011-01-23 18:26:48 -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
John Bender
c63d570b60 comment correction in core mobile init test 2011-01-22 22:51:11 -08:00
John Bender
538151491c added async test calls to guarantee the correct assertion is being fired 2011-01-22 22:41:59 -08:00
John Bender
e30ece11ac added immediate function to prevent scoping issues in core unit tests 2011-01-22 22:39:32 -08:00
John Bender
b671753039 moved page above core in the makefile, build xml, and manifest under js. Fixes #619 2011-01-22 22:31:16 -08:00
scottjehl
20775a532a Merge remote branch 'origin/master' 2011-01-22 17:48:46 -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
toddparker
737a487999 Removed a few theme overrides on these pages so they look like the rest of the docs. 2011-01-22 16:36:20 -05:00
toddparker
1e5013cb9b Tweaked swatch C hover style to increase contract to improve navigation with directional controller on Android. 2011-01-22 16:24:44 -05:00
scottjehl
cb2de36865 more outline disabling 2011-01-22 14:46:58 -05:00
scottjehl
2a06226def removed outlines on active states. Left them open on focus. 2011-01-22 14:44:50 -05:00
scottjehl
17663605ce changed up the contrast a bit, particularly on hover/focus. Makes joystick/key navigation easier. Fixes #845 2011-01-22 14:26:58 -05:00
scottjehl
6fb50fd289 use inArray instead of indexOf. Fixes #828 2011-01-22 14:04:04 -05:00
scottjehl
fbb2fc2c60 lengthened timer for Android, and added a check to let through the same event type for double-taps. 2011-01-21 18:29:28 -05:00
scottjehl
aa0a61c407 followup on previous commit. made sure devices with both touch and mouse events work with either input type. Also fixed regression with radio inputs. 2011-01-21 18:13:02 -05:00
scottjehl
38c1c24e5d moved check/uncheck event on label to touchend/mouseup. Fixes #753 2011-01-21 17:45:22 -05:00
scottjehl
a1cb31a2c7 navbar removes active state but doesn't apply new one. Now it does. Useful in js-generated links. Fixes #669 2011-01-21 16:20:33 -05:00
scottjehl
37f9680c0f only the first image should be an icon/thumb. Fixes #699 2011-01-21 15:33:40 -05:00
John Bender
e5d2bf1b66 added target check to $.mobile.isExternalLink 2011-01-20 23:05:37 -08:00
John Bender
b2817375f4 altered innacurate test result message 2011-01-20 22:22:47 -08:00
John Bender
ffafa78e62 added tests for external links in dialogs, small refactor for dialogClickHandler function 2011-01-20 22:20:16 -08:00
scottjehl
52f86f2f9a make sure first textnode of li is used in listview title, regardless of newline chars. Test included. Fixes #715 2011-01-20 17:48:44 -05:00
scottjehl
bfa6f6a3af Merge remote branch 'origin/master' 2011-01-20 16:28:28 -05:00
scottjehl
48b69b7a71 loading message opens above offset of active button, when possible. This makes it visible on devices that don't support scrollTop (webOS, etc) 2011-01-20 16:28:23 -05:00
Kin Blas
e4042266fb Fix for issue 841 - Persistent footers persist even when going to other pages that don't have footers or don't have footers with the same data-id.
This was a regression I caused with my previous checkin. The fix is to simply null out stickyFooter in the pagebeforeshow callback.
2011-01-20 12:51:28 -08: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
John Bender
fedb0a7366 added tests for external link function 2011-01-19 23:57:51 -08:00