John Bender
aa16aec358
move checkbox radio to enhanceWithin
2011-10-10 14:21:37 -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
Scott Jehl
2c4615176d
Fixed typo in reference to initSelector default value.
2011-07-27 11:58:20 -03: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
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
scottjehl
033ce4ab96
Merge branch 'fix_issue_1851' of https://github.com/tigbro/jquery-mobile into tigbro-fix_issue_1851
...
Conflicts:
js/jquery.mobile.forms.checkboxradio.js
2011-07-10 17:17:51 -04:00
Rick Waldron
74f05680b3
jQuery core style guide conformance: jquery.mobile.forms.checkboxradio.js
2011-06-28 20:35:40 -04:00
scottjehl
9f07a1cfb2
ensure that the active button state is still applied to check and radio sets that don't have icons
2011-06-24 12:40:01 -04:00
Ghislain Seguin
ffdab6ff32
Fixed a glitch in the icon class name generation. It was adding ui-icon-ui-icon-checkbox-off to the checkbox icon element (2x ui-icon) and similar to radio icon element
2011-06-24 12:40:01 -04:00
Ghislain Seguin
9c3ebe07ea
Added state class to label of checkbox/radio
2011-06-24 12:40:01 -04:00
scottjehl
5a4b5f3206
Implemented the new design for checkboxes and radios as proposed by @toddparker.
2011-06-24 12:40:00 -04:00
Tobias Bosch
ff2ef4076b
fix issue 1851 as suggested
2011-06-23 13:31:05 +02:00
scottjehl
5512c8af02
use prop instead of attr for enable/disable
2011-06-08 18:12:42 -04:00
Shana Golden
c9d97ef261
Allow checkboxes/radio buttons to be selected with keyboard - updated to use prop()
2011-05-27 10:06:18 -04:00
Shana Golden
4ca2fc5287
Allow checkboxes and radio buttons to be selected with the keyboard
2011-05-25 15:45:41 -04:00
Todd Parker
b80689a1dc
Merge pull request #1522 from markandey/master
...
If 'input' element has id string with dots in it, code fails. Fixed by tweaking the regex to escape dots in the selector. Thanks markandy and eddiemonge
2011-05-10 12:12:19 -07:00
mark.dawn@gmail.com
4bccf1d8a6
some string literal fixes
2011-05-02 13:30:36 +05:30
John Bender
377c0067a7
remove checked state from radio button inputs that are not checked. use jquery attr accessor instead of expando to guarantee consistent values. Fixes #1532 .
2011-05-02 00:53:51 -07: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
John Bender
141127b903
fixed scoping issue that was causing the checkbox check to fail, tests to follow Fixes #1328
2011-04-05 23:47:34 -07:00
scottjehl
612192011b
adjusted change event handling to fire change event on the selected radio, as Dave suggested, and which matches the native triggering. Also, checkboxes change events appear consistent with native implementation. Fixes #1206
2011-03-31 00:22:26 -04:00
jblas@adobe.com
0a063c6d67
Get rid of "moved" tracking in the label event bindings. This is all handled transparently by the virtual mouse event code.
2011-03-27 21:20:06 -07:00
jblas@adobe.com
729cda075a
Merge branch 'master' into fastclick
...
Resolved Conflicts:
js/jquery.mobile.buttonMarkup.js
js/jquery.mobile.event.js
js/jquery.mobile.forms.checkboxradio.js
js/jquery.mobile.forms.select.js
js/jquery.mobile.listview.js
2011-03-27 21:00:22 -07:00
scottjehl
7503f62a10
changed our two new custom data helper names to jqmData() and :jqmData()
2011-03-25 17:50:40 -04:00
Kin Blas
4bf8519cce
Merge branch 'data-namespacing' of https://github.com/jquery/jquery-mobile into ns
...
Resolved Conflicts:
js/jquery.mobile.core.js
js/jquery.mobile.forms.checkboxradio.js
2011-03-22 13:51:50 -07:00
Kin Blas
db89e1f24d
Switch find/filter selector calls over to using the new :jqdata() pseudo selector.
2011-03-22 13:31:17 -07:00
John Bender
e236484559
fixed checkbox radio refresh selector
2011-03-21 23:17:46 -07:00
John Bender
63e8f6bfcb
resolved merge conflicts and fixed 2 tests
2011-03-15 23:57:17 -07:00
Kin Blas
dbcf4d0373
Merge branch 'master' into fastclick
2011-03-14 11:38:00 -07:00
scottjehl
2b7a2669ac
fixed a var typo. Thanks @mschroeder.
2011-03-14 08:29:17 -04:00
scottjehl
7aab355ffb
some fixes to make checks and radios work in Windows Phone 7. The labels were not being found through the selector, but finding all labels and then using the filter method seemed to work fine. Other than that, this push includes a little DRY cleanup here and there.
2011-03-14 00:20:24 -04:00
scottjehl
ea60207c1b
changed custom data method to $.fn.mobileData() and updated plugins that use it.
2011-03-09 23:27:21 -05:00
scottjehl
ce34ece257
namespaced data- attrs to $.mobile.ns (defaults to "jq-") throughout the JS
2011-03-09 20:47:44 -05:00
Kin Blas
6414e35cee
Convert checkbox/radio and navbar over to virtual mouse events.
2011-03-09 12:37:20 -08:00
John Bender
58b16a94b6
small refactor to disable check for checkbox radio
2011-02-26 23:59:17 -08:00
Martin Kou
2bb94172cf
Fixed checkboxradio disable issue.
2011-02-26 23:55:37 -08:00
Martin Kou
796c8642bd
Fixed a typo in checkboxradio which causes JS errors.
2011-02-20 18:32:02 -08:00
scottjehl
8dc5d0d79e
fixed a regression in some android 2.2 devices where checkboxes were toggling on and off on every click. Fixes #935 as well.
2011-02-03 18:28:32 -05:00
scottjehl
1b72203096
checks and radios no longer check when a scroll starts on top of them. Fixes #893
2011-01-28 14:39:58 -08:00
scottjehl
4a9b374eea
make sure change events fire whenever custom checks/radios change.
2011-01-24 13:04:41 -05:00
scottjehl
fbb2fc2c60
lengthened timer for Android, and added a check to let through the same event type for double-taps.
2011-01-21 18:29:28 -05:00
scottjehl
aa0a61c407
followup on previous commit. made sure devices with both touch and mouse events work with either input type. Also fixed regression with radio inputs.
2011-01-21 18:13:02 -05:00
scottjehl
38c1c24e5d
moved check/uncheck event on label to touchend/mouseup. Fixes #753
2011-01-21 17:45:22 -05:00
Jesse Streb
924c2c3e9b
updated select to no longer wrap the input element as it is already jQuery object. Thanks ehynds.
2011-01-12 08:01:37 +08:00
Jesse Streb
5b238ea1ce
https://github.com/jquery/jquery-mobile/issues#issue/578 Updated to use the selector that Scott suggested in order to make checkboxes not dissappear. One issue I noticed is that the page still transitions to the 'new' page even though it is really the same page. I have a fix for this that will post in a separate drop.
2011-01-12 08:01:36 +08:00
Louy Alakkad
4dcb65fc7a
fixing spaces
2010-12-22 07:53:07 -08:00
Louy Alakkad
59e8ee3137
Matching the jQuery code style guidelines.
2010-12-22 07:52:08 -08:00
louy
ba99290480
Merge branch 'master' of git://github.com/jquery/jquery-mobile
2010-12-18 16:06:55 +02:00