John Bender
404010839d
move slider to enhanceWith
2011-10-10 14:21:37 -07:00
John Bender
71b0eb0552
move $.fn.text invocation to $.fn.getEncodedTest where the content is being re-added to the dom for xss safety Fixes #2550
2011-10-04 18:25:54 -07:00
Kin Blas
4fa6ccdc0d
Fix for issue 2315 - Flip toggle switch with change event bound, triggers multiple times
...
- Modified refresh() so that it checks to see if the value actually changed before firing off the "change" event.
2011-09-22 16:23:43 -07: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
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
gseguin
6fb51b1d3d
replaced ui-btn-active by $.mobile.activeBtnClass
2011-08-17 16:12:42 -07:00
scottjehl
263193f490
Moved autoinit calls to after widgets. Made it so auto init selectors use the initSelector option, so that it can be configurable.
2011-07-27 18:42:16 -04:00
scottjehl
e07c40e3d0
exposed automatic initialization selectors on most widgets that expose options through the widget factory. Option name is "initSelector"
2011-07-26 14:22:08 -04:00
scottjehl
79d3aa6f04
brought back degradeInputs page option, this time as a decoupled page plugin file. Fixes #2123
2011-07-26 13:49:10 -04:00
scottjehl
fdb77bfa52
changed new (undocumented) "enhance" event to "create" to better match our existing event name conventions
2011-07-22 09:05:55 -04:00
scottjehl
64e6ef0e72
bound widgets to the "enhance" event, in addition to the pagecreate event. The enhance event allows developers to enhance the contents of an html fragment by triggering "enhance".
2011-07-19 22:44:03 -04:00
scottjehl
2a6c7fc1b9
This commit decouples all widgets from the page plugin so that they can be used ad-hoc.
...
- Internally, each plugin self-initializes by binding to the pagecreate event.
- Unit tests have been added and adjusted to support some internal changes involved in this commit.
- In the process, the portions of the page plugin that were used to enhance the header,content,and footer sections of a native-app style page layout are now located in jquery.mobile.page.sections.js.
- No public API options have changed, except that the page plugin no longer has options for keepNative, and degradeInputs, as plugins now handle these internally (keepNative was never documented, and degradeInputs only affected slider, so it lives there now. Page options related to the page sections are now located in the page.sections script, but they are still configurable via the page plugin's options api.
- Make, Ant, and index files are updated with a new load order for all JS files.
2011-07-19 22:25:23 -04:00
Ghislain Seguin
3062d385b8
Fix for issue #1526
2011-07-12 23:32:10 -07:00
Ghislain Seguin
8e93a318bf
Fixed comment
2011-06-28 21:47:10 -07:00
Rick Waldron
5dbbf68d4e
jQuery core style guide conformance: jquery.mobile.forms.slider.js
2011-06-28 21:27:07 -04:00
mark.dawn@gmail.com
69a0a47a0c
XPATH Selector was not well formed of type label[for=ID]
...
let say id of an inputbox is x.y.z then query
$("label[for=x.y.z]") gonna fail
$("label[for=\"x.y.z\"]") gonna work
2011-04-26 19:31:43 +05:30
scottjehl
982b7d4b15
Make navigation feel more responsive through feedback, even though it actually uses the click event again for actual page changes.
...
- set active state on all button vclick events
- cancelled vclick on slider switch handles so it's not too sticky.
- removed addClass in navigation.js as the first change handles it there.
2011-04-07 14:41:45 -04:00
Kin Blas
48389d1ee1
Fixed bad variable name in teardown method of jquery.mobile.vmouse.js. It was causing an error that made one() bindings fail to fire off their handlers.
...
Modified select and slider code to use virtual events.
Modified tap and taphold code to make use of the virtual events.
2011-02-18 17:39:04 -08:00
John Bender
a79799e3b3
added step tests for keypress, removed data-step attribute check in favor of html5 range step attribute
2011-02-02 23:46:20 -08:00
scottjehl
58cb69788c
bound slider drag event handling to touch and mouse events, which allows us to support Opera Mobile and others. Fixes #852
2011-01-28 15:47:03 -08: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
maggiewachs
b6ec29a7e5
Fixed bug 676 where the switch toggle (slider) wasn't updating on select change:
...
https://github.com/jquery/jquery-mobile/issues/labels/5%20-%20Critical#issue/676
2011-01-14 16:06:18 -05:00
John Bender
3a9652c9cc
slider switch keyboard access tests Fixes #632
2010-12-26 23:09:11 -08:00
John Bender
06b83ad67a
slider switch now keyboard enabled
2010-12-26 17:45:25 -08:00
John Bender
b2d58c1f30
slider keypress tests, comments, and style addition to navigation test page
2010-12-22 23:18:14 -08:00
John Bender
39729becd6
standard keyboard interaction working with slider, tests to come
2010-12-22 22:40:54 -08:00
John Bender
8ec3ae594d
added keyCodes, Home and End working for range slider
2010-12-22 16:30:55 -08:00
scottjehl
93179f9a3d
updated comment about license to match other jQuery projects - MIT "or" GPL
2010-11-19 22:47:47 -05:00
Yuki KODAMA
2dea6cd721
implemented 'refresh' method for slider widget
2010-11-17 19:34:46 +09:00
Yuki KODAMA
d1e37647b8
added 'enable' and 'disable' methods to slider widget
2010-11-17 19:34:08 +09:00
scottjehl
a24196e550
dolla dolla bills y'all.
...
Fixes #126 , Fixes #346
2010-11-11 10:50:28 -05:00
scottjehl
e8bd78bd27
fixed theming so data-theme and data-track-theme attrs work
2010-11-10 23:40:09 -05:00
scottjehl
6108ac90aa
fixed issues with slider handle positioning when min isn't 0. Fixes #397
2010-11-10 08:37:04 -05:00
scottjehl
356308e6b7
updates to comments
2010-11-09 19:55:52 -05:00
scottjehl
f80428b1c6
updated slider to use widget factory. Fixes #370
2010-11-09 19:49:04 -05:00
scottjehl
2f38d99d45
moving the slider handle triggers change event on the input or select.
2010-10-20 19:08:56 -04:00
scottjehl
f5468482f8
fixed up theme inheritance
2010-10-15 16:40:06 -04:00
scottjehl
4a3e4ec427
added option trackTheme, which uses the btn-down state and defaults either a data-tracktheme attr, finding a themed parent, or 'd'.
...
Button "theme" option defaults to "b", and can be set through the data-theme attr.
Fixes #168
2010-10-14 09:24:51 -04:00
scottjehl
4b08e0fc9d
enabled theming of sliders through data-theme. Fixes #152 Fixes #153
2010-10-11 16:55:10 -04:00
scottjehl
0ec600c1b3
Improved and expanded ARIA coverage to more components, including landmarks on common top-level page elements. Fixes #137
2010-10-10 21:17:49 -04:00
Scott González
5c3d35574f
Renamed files.
2010-10-07 11:30:48 -04:00