Commit graph

45 commits

Author SHA1 Message Date
jrburke
096e90bbfe Update to relative AMD dependencies, allows proper use of source in an AMD project. 2012-01-24 14:43:24 -08:00
Mat Marquis
2c34b82e69 Merge pull request #3398 from garann/master
fix for duplicate/incorrect enhancement of buttons
2012-01-16 15:04:56 -08:00
Ghislain Seguin
948d39b898 Added dependency on jquery 2012-01-12 21:22:00 -08:00
Garann Means
c0dbecc855 fix for #3141 - redirect from button() and buttonMarkup() to correct function for element 2012-01-09 23:38:12 -06:00
Mat Marquis
d7afc8aa78 Added download builder metadata. 2012-01-06 19:31:31 -05:00
John Bender
95073892f0 Merge branch 'amd' 2012-01-04 12:24:33 -08:00
zachleat
07efc02c9f First stab at more consistent focus classes on form elements, using .ui-focus. Links will still contain outline property. 2011-12-29 16:26:44 -05:00
Ghislain Seguin
57a1129bfb Discovered r.js' pragmas use them instead of the hacky solution provided by amd-stripper.js 2011-12-15 18:15:42 -08:00
Ghislain Seguin
cf04068eba Assume jquery is loaded so don't require it 2011-12-08 10:02:36 -08:00
Ghislain Seguin
6b7e83effa Added dep on jquery.mobile.buttonMarkup 2011-12-01 17:28:10 -08:00
Ghislain Seguin
7f14a3dfed AMDized 2011-12-01 17:28:08 -08:00
John Bender
ced1f865a2 whitespace and a comment on setting buttonPlaceholder to undefined 2011-11-11 12:08:59 -08:00
frietsch
c824b16816 Bugfix: If a named submit button was clicked multiple times, the name wasn't sent in 2nd ... nth time. 2011-11-11 12:08:59 -08:00
frietsch
b051c3203e Bugfix: If a named submit button was clicked multiple times, the name wasn't sent in 2nd ... nth time. 2011-11-11 12:08:59 -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
John Bender
a8202d240d reference the buttonMarkup text wrapper element through data 2011-10-31 13:24:17 -07:00
John Bender
0ffaab8d22 switched to prop per @eddiemonge 2011-10-31 11:44:56 -07:00
Alex Roberts
6b767b4b8d Update form button text on refresh.
Allows submit button values to change dynamically, and update accordingly in the UI. Such as in the event a button should read "Update" instead of "Save".
2011-10-31 11:05:54 -07:00
jblas@adobe.com
2c2be3d9c6 Fixes #2659 - buttons don't inherit page-theme
- Insert the fake button container before calling buttonMarkup(). This allows the buttonMarkup() code to accurately calculate theme inheritance.
2011-10-14 16:18:49 -07:00
John Bender
a4836ec5fd move button to enhanceWithin 2011-10-10 14:21:37 -07:00
Mat Marquis
ecc1361f7f For the sake of jQuery’s serialize, submit inputs’ values are added to the form as a hidden input—this ensures it will only happen once, and that this logic only applies to submit inputs with a name attribute. 2011-09-23 18:10:03 -04: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
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
Rick Waldron
92451a0287 jQuery core style guide conformance: jquery.mobile.forms.button.js 2011-06-28 20:15:43 -04: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
cm71td
2f3b5b6543 Disabled buttons should get the ui-disabled class. I created a refresh() method to be consistent with other widgets. It checks if the underlying button is disabled and calls enable or disable. The refresh() method is called from _create. 2011-03-25 03:16:42 +08:00
Kin Blas
79c1b1fb69 Convert dialog and button over to using vclick. 2011-03-08 08:52:17 -08:00
Kin Blas
48ab0ec7d6 Prevent inputs and buttons of type="button" from getting the submit click handler added to them. 2011-03-01 14:04:48 -08:00
scottjehl
91a5b8c098 Changed the way submit buttons work. Now, form input/button elements are appended to a div-based "button", invisibly filling its width and height. The user now interacts directly with the native control, rather than having to trigger a click from another anchor (which formerly prevented some native submit event handling from working).
A workaround is still included to ensure the input's name/value is submitted along with the form when it's not a type=reset, as this is necessary for the button data to appear in the serialized form data.
2010-12-06 11:40:28 -05:00
scottjehl
b01478a5e7 make sure forms can submit via ajax AND pass the clicked button's name/value in the serialized data. Fixes #605 2010-12-03 13:08:08 -05:00
scottjehl
419787affe make sure submit button name/value is submitted with form values. Fixes #551 2010-11-29 10:09:26 -05:00
scottjehl
93179f9a3d updated comment about license to match other jQuery projects - MIT "or" GPL 2010-11-19 22:47:47 -05:00
scottjehl
5e90786374 added enable and disable methods to form buttons 2010-11-17 10:27:35 -05:00
scottjehl
a24196e550 dolla dolla bills y'all.
Fixes #126, Fixes #346
2010-11-11 10:50:28 -05:00
scottjehl
bf3730550f used null where appropriate in options 2010-11-10 23:08:22 -05:00
scottjehl
532c918a26 updated data attribute support 2010-11-10 22:54:57 -05:00
scottjehl
356308e6b7 updates to comments 2010-11-09 19:55:52 -05:00
scottjehl
88a3c9ae57 updated to trigger a submit if the type is submit 2010-11-01 23:53:06 -04:00
scottjehl
e202a72776 converted customButton plugin to widget factory (note: this is just the plugin for native button elements, not to be confused with the buttonMarkup plugin).
renamed method to "button" and updated page.js to match
2010-10-27 20:43:27 -04:00
scottjehl
a26e0a0d6a added "inline" option to buttons and button links. data-inline="true". Fixes #148 2010-10-11 15:47:30 -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
Renamed from js/jQuery.mobile.forms.button.js- (Browse further)