scottjehl
28bb987729
added a unit test for last-scroll remembering.
2011-09-07 09:16:02 -04:00
scottjehl
d68d5064bc
finished last-scroll remembering implementation across pages in the history stack (regardless of whether they've been removed from the DOM since last appearance).
2011-09-07 08:15:00 -04:00
scottjehl
0d98b8fad6
changed setting of lastScroll
2011-09-06 14:29:19 -04:00
scottjehl
97539ed3bd
focus on title or page div
2011-09-06 12:58:14 -04:00
scottjehl
ebafc02cfe
add tabindex to page element
2011-09-06 12:58:14 -04:00
scottjehl
003505a4b9
changed minscroll to 250, better organization of lastscroll
2011-09-06 12:56:46 -04:00
scottjehl
ac67e92cbb
This change sets the "lastScroll" property to each urlHistory item object, allowing us to remember previous scroll distances when returning to a page that has since been removed from the DOM. Before this change, this number was stored in data on the page element, so it is lost when the page is removed after pagehide.
...
Also, this change removes a reference in memory that we were keeping to the $activeClickedLink on each page. We stored this in attempt to refocus a link after returning to a page. Unfortunately, it doesn't seem that this data can be retained after pages are removed from the DOM, outside of somehow remembering a unique selector string to reach that element again (which could be achieved by adding some overhead, ala http://stackoverflow.com/questions/2068272/getting-a-jquery-selector-for-an-element )
2011-09-06 12:56:46 -04:00
Todd Parker
df8d6fa8d5
Merge pull request #2375 from globalmatt/master
...
Docs: Cleaned up "Prefetching & caching pages" page. Thanks globalmatt
2011-09-01 04:15:07 -07:00
Matt Doyle
5832890185
Docs: Cleaned up "Prefetching & caching pages" page
...
Renamed page for consistency and edited/clarified page content
2011-09-01 16:52:48 +10:00
gseguin
001e588c92
Fix for issue #2017 . Clear active link on vclick so there can be only one active link at a time.
2011-08-31 21:46:39 -07:00
gseguin
e28ad6d95d
re-added setting of $.mobile.activeBtnClass on selected option but only for single select lists
2011-08-31 13:33:52 -07:00
gseguin
d6da6fed64
piggy back on checkbox/radio to define background-color for ui-icon-checkbox-on
2011-08-31 13:32:44 -07:00
gseguin
4cb52c4908
set aria-selected on li element when li is selected
2011-08-31 11:16:11 -07:00
gseguin
830663d88b
Changed look and feel of custom select options to match the checkbox/radio
2011-08-31 10:43:34 -07:00
gseguin
3dc4b9f9fa
Removed activeBtnClass from selected option
2011-08-31 10:43:23 -07:00
gseguin
14c98e8ef7
Another version of https://github.com/jquery/jquery-mobile/pull/2363 by @jgable
2011-08-31 09:56:15 -07:00
John Bender
f679d30620
added ipv6 support to urlparse regex Fixes #2362
2011-08-30 15:59:46 -07:00
John Bender
23ee457309
whitespace in navigation helper tests
2011-08-30 15:52:31 -07:00
John Bender
41ef18aa56
Merge pull request #2357 from zachleat/master
...
Extra directory on the JS source files in ant build script
2011-08-29 22:32:40 -07:00
Todd Parker
dc230cbb63
Merge pull request #2360 from lagartoflojo/patch-1
...
Small typo fix
2011-08-29 17:34:02 -07:00
lagartoflojo
6528c09ab3
Small typo fix
2011-08-30 02:31:31 -03:00
Kin Blas
191b5e04a3
Fix for issue 2345 - Flip toggle switches *ALWAYS* toggle
...
- We now track whether or not the user has modified the value of the switch control. If so, we don't toggle it's value on mouseup.
2011-08-29 12:39:25 -07:00
John Bender
fd286444f4
replaceState *and* pushState are now required for $.support.pushState to be true
2011-08-29 10:18:40 -07:00
John Bender
07edada0dd
added todo to centralize page dom removal and ref counting Fixes #2329
2011-08-29 10:09:22 -07:00
John Bender
bddc8c8ed2
small tweak to directedHashChange to make sure the right value is passed in for isBack
2011-08-29 09:12:39 -07:00
zachleat
65c26fd569
Build script js-sources had extra js directory in paths.
2011-08-29 11:12:13 -05:00
scottjehl
d63350ca6c
set initial page div's data-url to location.pathname unless it has an ID on it. This fixes an issue where going back to the initial page will end up generating a new homepage rather than transitioning to the one already in the dom.
2011-08-28 00:06:27 -04:00
scottjehl
6de76168af
Clarified the documentation around the purpose of the pagebeforecreate event and removed the pagebeforecreate return value check, as returning beforecreate false is no longer relevant now that all plugins auto-init externally, rather than inline in the page plugin.
2011-08-27 11:26:16 -04:00
scottjehl
10e2d5a61a
previous commit should not have switched the order of trigger and add classes. Reverted, with cleanup still in place.
2011-08-27 11:07:21 -04:00
scottjehl
ce5ce102dc
A little simplification in the page plugin
2011-08-27 10:58:46 -04:00
John Bender
a3487e620d
simplified the default hash handling prevention back to somthing akin to @scottjehl's original implementation
2011-08-27 02:47:54 -07:00
John Bender
76d5c49b78
minor refactor and check for defined attr
2011-08-27 01:01:54 -07:00
John Bender
6b010492b2
minor refactors in nav and pushstate for clarity
2011-08-27 01:01:54 -07:00
John Bender
82cce1fa60
fix the chrome bug and reduce the number of crazy hash juggles we do
2011-08-27 01:01:54 -07:00
John Bender
328d58b2e9
fixed role retention issue from clearing the dom cache
2011-08-27 01:01:54 -07:00
John Bender
c3bac78880
moved push state dialog key test down into its own file to have the key at the root
2011-08-27 01:01:54 -07:00
John Bender
1811b31715
added sub page hash key tests
2011-08-27 01:01:54 -07:00
John Bender
7ed31bedb5
added test to make sure the dialog key is always in the hash
2011-08-27 01:01:54 -07:00
John Bender
3a13a6ec75
renamed replacestate key handling method
2011-08-27 01:01:53 -07:00
scottjehl
50aca4e613
Links to the transitions page need to use data-ajax="false" because it uses multipage.
2011-08-26 20:07:38 -04:00
John Bender
b569c1cc8b
fix for dialog and subpage key url issues with replace state
2011-08-26 14:54:27 -07:00
toddparker
66fb6bba2f
Moved the transition sampler page to a multi-page format to avoid the loader every time you want to try a transition. Leaving the old page here for now because we may link to it elsewhere.
2011-08-26 17:00:44 -04:00
toddparker
01f61cfd54
Removed prefetch. Can't use that on a dialog.
2011-08-26 16:58:16 -04:00
toddparker
cd5cb16fe1
Added prefetch attr and fixed theme tags in markup for dialogs
2011-08-26 16:53:26 -04:00
John Bender
0346cbe439
added note on managing element id's in pages loaded via ajax
2011-08-26 09:15:47 -07:00
John Bender
9eef5cec53
added documentation covering the replaceState plugin
2011-08-26 09:15:23 -07:00
John Bender
49cf3af91a
Merge branch 'replacestate-external'
2011-08-25 13:05:54 -07:00
John Bender
df9e23390f
extra comments for clarity
2011-08-25 11:51:01 -07:00
John Bender
8a994d3dfa
add config option for pushstate
2011-08-25 11:42:32 -07:00
John Bender
44eaf7707b
fix broken hash on dialog after initial page load
2011-08-25 10:49:51 -07:00