Commit graph

3251 commits

Author SHA1 Message Date
Kin Blas
675657f877 Added an index page for the dynamic-samples directory and linked to it from the age-dynamic.html page. 2011-09-08 13:46:18 -07:00
Kin Blas
92699e0011 Merge branch 'master' into data-driven-with-fallback 2011-09-08 13:38:06 -07:00
Kin Blas
b3ce277152 Moved scottjehl's modified sample to a new file (sample-reuse-page-external.html) and restored the original code in sample-reuse-page.html. 2011-09-08 13:35:42 -07:00
scottjehl
6e0912f3b5 progress towards making this demo work with urls that represent server resources 2011-09-08 15:58:53 -04:00
Kin Blas
f894d4704b Adding links to page-dynamic.html to all menus. 2011-09-08 12:34:48 -07:00
Kin Blas
95f1d5c6df Fixed the broken sample link. 2011-09-08 12:03:43 -07:00
Kin Blas
4a5b804df9 Added more content. 2011-09-08 12:00:57 -07:00
Kin Blas
889d4b5acf Corrected a grammatical error in one of the sample comments. 2011-09-08 11:30:02 -07:00
Kin Blas
711a552bfb Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-08 11:27:26 -07:00
Kin Blas
64537fa8c0 Removed some debug code from sample-reuse-page.html.
Checking in the start of a doc that walks folks through how to use the pagebeforechange event to short-circuit default changePage() behavior.
2011-09-08 11:26:22 -07:00
gseguin
6f5a7d1266 Fix for issue #2404
Collapsible are collapsed by default
2011-09-08 13:34:58 -04:00
gseguin
3ba911a6f8 jshint was complaining about .this 2011-09-08 13:34:58 -04:00
scottjehl
82a9a5bb3f documented the new touchOverflowEnabled configuration property. 2011-09-08 13:33:26 -04:00
scottjehl
f49e69ef84 disabled iOS5 improvements by default. Can be enabled by binding to mobileinit and setting $.mobile.touchOverflowEnabled = true; 2011-09-08 13:26:33 -04:00
scottjehl
b645781f4d implemented native overflow scrolling based on support for -[prefix]-overflow-scrolling: touch. True fixed headers and footers come supported as well. 2011-09-08 12:38:50 -04:00
scottjehl
bb4e1ca275 removed image dimensions in demo page 2011-09-08 12:38:50 -04:00
scottjehl
bc036b91b0 Clock tap is busted, so this logic is here but commented-out 2011-09-08 12:38:50 -04:00
scottjehl
fda71670b4 reset scrollTop to 0, not defaultHomeScroll 2011-09-08 12:38:50 -04:00
scottjehl
6333be5ddf changed the docs bg image so it doesn't act fixed in iOS5 2011-09-08 12:38:50 -04:00
scottjehl
1a524756f3 added a pre-transition class to set pages to display: block early and allow for their scrollTop and focus to be set before they are shown. 2011-09-08 12:38:50 -04:00
scottjehl
440be55f2b changed the name of the overflow support test and class to touchOverflow / touch-overflow 2011-09-08 12:38:50 -04:00
scottjehl
c8e676d591 applied conditional overflow scrolling to page div 2011-09-08 12:38:50 -04:00
scottjehl
dae560d67f added support test & html class for overflow-scrolling-touch 2011-09-08 12:38:49 -04:00
scottjehl
2f63fdf3ec Merge remote branch 'origin/master' 2011-09-08 12:32:27 -04:00
scottjehl
bf02fc880d increased timeout that waits for a potential hashchange event to fire as a result of pop. 2011-09-08 12:31:59 -04:00
Kin Blas
fcbd4c3030 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-08 09:24:16 -07:00
Kin Blas
78041bc7c9 Added path.isFirstPageUrl() which is now called from loadPage() when trying to determine if the URL being loaded refers to a page that is already in the DOM. This will prevent us from duplicating the first-page in the main application document.
Also checking in the first example of how to use the pagebeforechange notification to allow for dynamically updating and re-using a page that is already in the DOM.
2011-09-08 09:21:31 -07:00
scottjehl
db3dbc04d2 Merge remote branch 'origin/master' 2011-09-08 11:59:43 -04:00
scottjehl
7be8311d4e added location.search to the original page data-url 2011-09-08 11:58:55 -04:00
toddparker
557da74be0 Fixed typo in button state active default docs. Closes #2403. Thanks jasonrsavino! 2011-09-08 11:30:42 -04:00
toddparker
2dc25539b6 Merge remote branch 'origin/master' 2011-09-08 10:59:06 -04:00
toddparker
fb1c8bee81 Added a non-adax form submit example. Improved the styling of the forms and confirmation pages. 2011-09-08 10:58:23 -04:00
Kin Blas
04623c21cf Merge branch 'master' into changepage-prevent 2011-09-07 18:07:21 -07:00
Kin Blas
6aa8c8f3b0 - Added "fromPage" option to changePage(). This used to be in there before the navigation re-work, I just added it back in.
- Added "dataUrl" option to changePage(). This allows a caller to specify a page element to change to, but specify an alternate URL for location display purposes. This is useful for dynamic applications that re-use and over-write existing page content to avoid overwhelming the DOM.

- Renamed the "beforechangepage" and "changepage" events to "pagebeforechange" and "pagechange" respectively. This was done to match the page widget naming of its notifications. Left the triggers for the old events in place but with DEPRECATED comments.

- Renamed the properties of the data object passed to the page events.
2011-09-07 18:03:38 -07:00
scottjehl
d0fe757a28 Merge remote branch 'origin/master' 2011-09-07 10:10:32 -04:00
dtao
fa4d9c16d7 fixed typo: 'throttledResize' => 'throttledresize' 2011-09-07 10:09:00 -04:00
Kin Blas
abb812cc01 Fixes for issue 1464 - No way to stop a link from being followed with some custom event (tap, taphold)
jquery.mobile.vmouse.js:

	- Modified triggerVirtualEvent() so that it returns the virtual event instead of the isDefaultPrevented() result of the virtual event.

		- Updated all references to triggerVirtualEvent() that relied on the boolean return value to instead check the isDefaultPrevented() call on the event now returned.

			- Updated mouseEventCallback() to propagate the iDefaultPrevented(), isPropagationStopped(), and stopImmediatePropagation() values from the virtual event on to the  original mouse event.

			jquery.mobile.event.js

				- Modified the "taphold" trigger code to create a new $.Event() instead of passing the stale vmousedown event.

					- Added clearTapTimer() which is called from a new vmouseup binding, to prevent the timer from firing between the tie the finger/mouse goes up and the click event is dispatched.

					- Added some propagation tests for the "tap" event. Tests for "taphold" will have to wait until we fix the problem where multiple taphold timers are fired off when an element and one of its ancestors is bound to taphold.
2011-09-07 10:09:00 -04:00
John Bender
ad7e5bc8d1 added comment for the touches event proto addition 2011-09-07 10:09:00 -04:00
John Bender
3dfcf5fd77 fixed event tests to trigger on a dom element 2011-09-07 10:09:00 -04:00
Kin Blas
5333ab7bf7 I noticed that the code in the mouseup for the toggle switch was using a CSS3 transition, but calling the animationComplete() function which waits for an animationend event which will never come. This means we bind a new animationComplete() handler every time the toggle switch is clicked.
I removed the binding for the handler completely since it doesn't hurt to just leave the transition in place. I also removed the code that was setting the position of the slider since it really should only be set within the mouseup if the user did not change the switch setting (toggle).
2011-09-07 10:09:00 -04:00
Kin Blas
2f160e1402 Fix for issue 2346 - Flip toggle switches don't animate when tapped.
- Changed the target selector for ui-slider-handle-snapping from:

    div.ui-slider-handle-snapping

  to:

    a.ui-slider-handle-snapping

  to match the actual markup being generated.
2011-09-07 10:09:00 -04:00
Kin Blas
81c3957129 Fix for issue 1925 - Single tap triggers two actions, especially in android B1
- Trigger the list item and keyboard return/space key up to the "click" event instead of "vclick". This delays the dismissal of the custom select menu until the click event, thereby avoiding the case where the menu disappears before the browser dispatches it's synthesized mouse events (in the touch case) with a target of whatever element was underneath the menu.
2011-09-07 10:09:00 -04:00
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
Ghislain Seguin
baded0d492 Merge pull request #2393 from dtao/patch-1
Fix for issue #2390: fixed typo: 'throttledResize' => 'throttledresize'
2011-09-06 22:33:37 -07:00
Kin Blas
701b381cc4 Couple of modifications to changePage():
- Moved the setting of isPageTransitioning *AFTER* the beforechangepage notification.

- Modified the trigger("beforechangepage") call to pass the args to changePage() as an object since trigger only expects one data arg.
2011-09-06 16:56:20 -07:00
dtao
a4b9079cd7 fixed typo: 'throttledResize' => 'throttledresize' 2011-09-06 16:19:06 -07: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