Commit graph

71 commits

Author SHA1 Message Date
Ghislain Seguin
e64c02de8e Added dependency on jquery 2012-01-13 17:32:25 +07:00
Mat Marquis
42536ecafe Added download builder metadata. 2012-01-13 17:26:21 +07:00
zachleat
ebcf7a62c3 This might be a little overzealous, but I think the outline around the entire flip switch looks better than the clipped handle outline. 2012-01-13 17:25:50 +07:00
zachleat
e19ee8d953 Fix for browsers with JavaScript but without box-shadow enabled. outline: 0; outline-width: 2px; doesn't work, requires an outline-style to be set. 2012-01-13 17:25:50 +07:00
zachleat
3ca5a8a85e Per @toddparker's comment, added boxshadow to link buttons. Also changed focus class on sliders to add to the handle, while excluding the toggle switch. 2012-01-13 17:25:50 +07:00
zachleat
0c722fb8f7 Nerf, you guys use tabs. 2012-01-13 17:25:50 +07:00
zachleat
5cc81797ba First stab at more consistent focus classes on form elements, using .ui-focus. Links will still contain outline property. 2012-01-13 17:25:50 +07:00
Ghislain Seguin
517c9588ca Added dep on "jquery.mobile.buttonMarkup" wherever needed 2012-01-13 17:24:50 +07:00
John Bender
18f4d3d5e0 fix improperly camel cased module references 2012-01-13 17:24:50 +07:00
Ghislain Seguin
c6e49f7b07 Discovered r.js' pragmas use them instead of the hacky solution provided by amd-stripper.js 2012-01-13 17:24:49 +07:00
Ghislain Seguin
f3e3121166 Specified more dependencies 2012-01-13 17:23:19 +07:00
Ghislain Seguin
b6e6febb76 Added dep on vmouse 2012-01-13 17:20:43 +07:00
Ghislain Seguin
65cdb13bc7 Added dep on jquery.mobile.buttonMarkup 2012-01-13 17:20:25 +07:00
Ghislain Seguin
3f1543a451 AMDized 2012-01-13 17:20:23 +07:00
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