dtao
a4b9079cd7
fixed typo: 'throttledResize' => 'throttledresize'
2011-09-06 16:19:06 -07:00
Kin Blas
7cce0c5573
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-02 16:56:15 -07:00
Kin Blas
7bf048a214
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-01 15:42:30 -07:00
Kin Blas
6759afff66
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-01 14:17:10 -07: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
4cb52c4908
set aria-selected on li element when li is selected
2011-08-31 11:16:11 -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
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
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
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
3a13a6ec75
renamed replacestate key handling method
2011-08-27 01:01:53 -07:00
John Bender
b569c1cc8b
fix for dialog and subpage key url issues with replace state
2011-08-26 14:54:27 -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
John Bender
af0e1f5d7e
whitepasce in nav
2011-08-25 10:49:51 -07:00
Ghislain Seguin
884bfdee3b
Merge pull request #2312 from MichelHartmann/patch-1
...
Fixed closing the dialog, when the page is removed.
2011-08-25 08:38:44 -07:00
John Bender
7d68059dd6
removed initial disable for spurious popstate and moved to doc ready init for late inclusion in the document instead of monkey patching
2011-08-24 15:59:06 -07:00
gseguin
2cc8c7ff34
Fix for issue #779
...
Addressing @jakeboone02's comments at dd9ae4898b (commitcomment-531858)
2011-08-24 13:54:03 -07:00
gseguin
e98215a3e1
Whitespace change
2011-08-24 10:48:13 -07:00
John Bender
657f6b8c3f
make sure the popstate replacestate call uses the full href
2011-08-23 12:07:52 -07:00
John Bender
2c7789b6a3
clean scoping add, comment
2011-08-22 14:58:42 -07:00
John Bender
49eeccdde3
rescope self
2011-08-22 14:31:14 -07:00
John Bender
e3fb2e285b
handle query strings for initial replaceState
2011-08-20 07:29:21 -07:00
John Bender
547afbf184
manually hoist variables
2011-08-20 07:21:49 -07:00
Michel Hartmann
9c088cd5ba
Fixed closing the dialog, when the page is removed.
2011-08-20 06:31:20 +03:00
John Bender
1dd791175a
proposed solution to the navigate, refresh, back button pushstate bug. the determination of the hash to be stored in the replaced state is done in a consistent fashion where, if there is no hash, its defaulted to the original load path by puting the logic in a central method. @scottjehl give it a try and let me know if this works for you
2011-08-19 18:54:29 -07:00
scottjehl
b438472fec
if no hash is present, run a replacestate. All nav tests still passing.
2011-08-18 22:41:13 -04:00
scottjehl
bf593857f6
degraded type should have been "text" instead of true. Addresses a comment in issue #2123
2011-08-18 22:01:58 -04:00
Kin Blas
ab1a52b51d
With the exception of "ms", which we don't support anyways, all vendor prefixed CSS properties are converted into style object properties with a name that begins with an upper case. Note, that webkit duplicates these properties on the style object, such that the property can be referenced with a leading caps, or leading lower-case.
...
This change was necessary at least for the transitions branch because the lookup for the 'transform' property was failing on FireFox.
2011-08-18 16:40:08 -07:00
John Bender
2c3d9bc2f1
removed extra replace state fire, need to check with @scottjehl
2011-08-18 16:25:21 -07:00
gseguin
9f3836e7b1
Fix for issue #1405 : Moved assignment of $activeClickedLink to the vclick handler in charge of adding the active state
2011-08-17 17:32:55 -07:00
John Bender
fb5d9df56f
simplified the pushstate some more
2011-08-17 16:32:59 -07:00
John Bender
b197e760fd
simplified the hash handling with help from @jblas
2011-08-17 16:22:09 -07:00
gseguin
6fb51b1d3d
replaced ui-btn-active by $.mobile.activeBtnClass
2011-08-17 16:12:42 -07:00
gseguin
3737d170a0
Merge remote-tracking branch 'upstream/master'
2011-08-17 13:29:07 -07:00
gseguin
a620d97868
Re-uses the boolean create at creation time to let the refresh functions know that they've been called by create
2011-08-17 12:09:07 -07:00