John Bender
1742820c17
removed dead code path in slider
2011-12-07 10:03:01 -08:00
John Bender
9066a0b932
Merge branch 'patch-1' of https://github.com/eugenb1/jquery-mobile into eugenb1-patch-1
2011-12-06 15:18:07 -08:00
John Bender
cbaa42d63c
default emptry string val to 0 on refresh Fixes #3029
2011-12-05 15:38:25 -08:00
Eugen Bolz
27f49f0dcf
Slider: use also option text as title
2011-11-29 08:35:18 +01:00
John Bender
3e47bff3ff
whitespace and spelling correction
2011-11-23 13:30:40 -08:00
jrowny
1597d756d8
slider step, remove round clean up code a bit
2011-11-23 13:30:40 -08:00
jrowny
e09374b41d
add slider step support from jQuery UI
2011-11-23 13:30:40 -08:00
jrowny
7d204230f0
Add slider step support from jQuery UI
2011-11-23 13:30:40 -08:00
Eddie Monge
5535e24c46
Update to add license to root, update individual files to not have license, add license to built and testing files
2011-11-08 15:43:36 -08:00
Gabriele Rabbiosi
ee05bb5576
Fixed issue #2631 - flip toggle switch animation improved
2011-10-23 14:30:10 +02:00
Gabriele Rabbiosi
396f8d019e
Issue #2756 - flip toggle switch value can be changed when the switch is disabled
2011-10-22 17:05:05 +02:00
jblas@adobe.com
af870605ac
Removed all of the redundant code used to crawl the DOM upward looking for a theme to inherit from, and replaced it with a call to the new $.mobile.getInheritedTheme() function.
...
Also, fixed a bug in textinput.js that was placing a ui-body-null class on the input element when a data-theme was not specified directly on the input.
2011-10-17 16:54:20 -07:00
Mat Marquis
d0fc381d6b
Fixes #2541 — Properly applies “disabled” styling and logic to flip switches, sliders, and custom selects based on disabled attribute in underlying input markup.
2011-10-14 17:15:41 -04:00
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