Commit Graph

99 Commits

Author SHA1 Message Date
Scott González
e72afe4afc Button: Only add text classes if there is text. Fixes - button class change breaks icon only buttons. 2011-02-26 11:14:15 +01:00
Alex Dovenmuehle
5b104dbcef Button: Batched class changes to improve performance. Fixes . Button: Batch class changes to improve performance. 2011-02-10 22:11:59 -05:00
Scott González
678ff6326a Added version property to plugins that were missing them. 2011-02-03 12:01:26 -05:00
Scott González
29bfb86ce2 All: Define defaultElement for non-div widgets. 2011-01-23 17:55:53 -05:00
Scott González
6e0482a9cb Updated copyright year. 2011-01-17 09:13:18 -05:00
Scott González
e0b52831fc Updated widgets to use new methods from $.Widget. 2011-01-15 06:34:07 -05:00
Scott González
56c4c6aca9 Change destroy to _destroy and remove calls to $.Widget.prototype.destroy in widgets with simple destroy methods. 2011-01-14 17:11:22 -05:00
Scott González
5dad57e3c2 Buttonset: Added items option and removed visible filter for adding rounded corners. Fixes - buttonset not applying ui-corner to invisible elements. 2010-11-12 10:28:55 -05:00
=
03efae2887 Button: removed explicit call to _init() from _create(). Fixes - buttonset: refresh() fires twice on create 2010-10-09 02:24:56 +08:00
Scott González
2838c11ea8 Button: Read disabled attribute from original element if disabled option is null. Fixes -Button: read disabled option from input elements. 2010-08-18 14:51:30 -04:00
Scott González
9060bf3d09 Buttonset: Ignore hidden buttons. Fixes - buttonset should ignore buttons that are not :visible. 2010-08-18 10:13:57 -04:00
Scott González
58ae7ce2fd Revert "Use pushStack in widget method. Fixes - make the widget method maintain the stack"
This reverts commit ea58cd5ac0.
2010-07-30 12:38:18 -04:00
jzaefferer
ea58cd5ac0 Use pushStack in widget method. Fixes - make the widget method maintain the stack 2010-07-30 14:26:58 +02:00
Scott González
70481d9feb Button: Restrict DOM querying to labels. Fixes - Buttonset and applet error. 2010-07-16 11:48:40 -04:00
Scott González
8a5d4ca321 All: Added http://jqueryui.com/about to header comments. 2010-07-14 15:45:45 -04:00
Scott González
21aad10e6a All: Define a local undefined variable inside the main closure. 2010-07-13 09:57:58 -04:00
Scott González
536ae6189b Updated copyright headers to make it clear that you can choose between MIT and GPLv2. Also added a link to http://jquery.org/license. 2010-07-09 09:01:04 -04:00
Richard D. Worth
202ddd0c58 Button: Removed ui-button-text-icon class. Added ui-button-text-icon-primary and ui-button-text-icon-secondary classes. Fixed - Button: specifying only a secondary icon for the button widget locates the icon on the left 2010-05-26 15:08:37 -04:00
Scott González
01ad6ce83e Remove previous text/icon classes when updating buttons.
Fixes  - button text, hide then show again.
2010-04-29 21:38:23 -04:00
Scott González
02c32959d9 Button: Added missing semicolon.
Fixes  - Mission semicolon on line 5368.
2010-04-23 12:08:55 -04:00
Richard Worth
92fe5e9225 Fixed - Buttonset class should be ui-buttonset because buttonset is one word 2010-03-17 13:16:40 +00:00
Richard Worth
2a8271c701 Button: Added refresh method to buttonset, futher fixes - ui.buttons doesn't visually reset on form "reset" event or input "change" event 2010-03-17 13:07:46 +00:00
Richard Worth
124f84635f Buttonset - remove corner classes from button widgets instead of button elements on destroy. Fixes - buttonset method destroy doesn't remove corner classes from label elements 2010-03-17 13:03:23 +00:00
Richard Worth
08a750a58f button: whitespace and quotes. See http://docs.jquery.com/JQuery_Core_Style_Guidelines 2010-03-17 12:56:15 +00:00
Richard Worth
a202248780 Remove ui-helper-hidden-accessible from correct element. See r3880 and r3892 2010-03-17 12:49:27 +00:00
Scott González
e02b6a58d6 Button: spacing. 2010-03-16 04:07:23 +00:00
Richard Worth
1489d7380d Button: fixed - button disabled state doesn't get refreshed when disabled set on original element 2010-03-15 14:13:17 +00:00
Richard Worth
e3096c7abb Button: remove disabled attribute from original element when option set to false 2010-03-15 14:07:00 +00:00
Richard Worth
a842215fdb button: fixed - button disabled only visually when disabled option set, still functional 2010-03-15 14:00:53 +00:00
Scott González
385269e3ea Button: Don't react to keydown when disabled.
Partial fix for  - button disabled only visually when disabled option set, still functional.
2010-03-14 17:53:18 +00:00
Richard Worth
ddd1026d20 Button: quiet jslint 2010-03-11 21:17:28 +00:00
Scott González
89f10420cf Button: No need to check the button type before removing the hidden class. 2010-03-11 20:21:38 +00:00
Scott González
057e156e62 Button: Conform to coding standards. 2010-03-11 20:10:43 +00:00
Richard Worth
7799b4ecf9 Fixed - ui.buttons doesn't visually reset on form "reset" event or input "change" event 2010-03-11 06:31:16 +00:00
Scott González
fe6bef16e4 Button: Support elements that are disconnected from the DOM.
Fixes  - _determineButtonType does not work if a label for checkbox/radiobutton is not yet attached to the document.
2010-03-11 03:50:20 +00:00
Richard Worth
8cd7129f0c button: remove ui-helper-hidden-accessible instead of .show() on destroy. Fixes - button change events don't fire in IE 7/8 2010-03-11 02:13:28 +00:00
Richard Worth
cef16fdf78 Checkbox must not be all the way hidden for change to fire in IE. Switched out .hide() for ui-helper-hidden-accessible class instead. Fixes - button change events don't fire in IE 7/8 2010-03-11 02:09:45 +00:00
Scott González
b636ad6997 Button: quote the value when searching for attributes.
Fixes  - Buttonset not working on inputs with Arrays in name Attribute.

Thanks Zidane.
2010-03-04 02:00:32 +00:00
Scott González
64811c10ec Button: Add disabled class on init if the disabled option is set to true.
Fixes  - Button: initializing with disabled = true isn't visually disabled.
2010-03-02 05:29:35 +00:00
Scott González
001a22a9d6 Buttonset: Use :data(button) instead of .ui-button to find buttons that have already been instantiated. This prevents us from finding elements that are proxying buttons, e.g., a radio's label.
Fixes  - radio buttonset with icons does not maintain state.
2010-03-02 02:58:52 +00:00
Scott González
9cabe8403e Buttons: Removed the logic for triggering click events on checkboxes and radio buttons. This logic was actually causing the opposite functionality from what we wanted.
Fixes  - .buttonset() prevents change event from being catchable.
2010-02-18 02:43:23 +00:00
Scott González
b848e37f28 Button: Added missing semicolons; 2010-02-18 01:45:23 +00:00
Jörn Zaefferer
aa63c4b959 button: handle space "click" 2010-01-22 22:52:31 +00:00
Jörn Zaefferer
967454c434 button: add ui-state-active on keydown, further improving keyboard navigation - doesn't yet work properly for anchors and radio/checkbox buttons 2010-01-22 22:46:32 +00:00
Jörn Zaefferer
dab6e943b3 button: add ui-state-focus on focus, making keyboard navigation possible, and button like 200% more accessible 2010-01-20 17:44:54 +00:00
Richard Worth
074153407d Happy New Year 2010-01-20 14:04:26 +00:00
Scott González
0ec857a5bd Button: conform to coding standards. 2010-01-18 01:58:15 +00:00
Scott González
7d96a0d096 Widget factory: Changed _create to _init.
Partial fix for  - Widget: make multiple instantiation more useful.
2010-01-15 18:58:20 +00:00
Scott González
90fb45dffa Merged in /branches/dev r3251:3620 (excluding autocomplete, modal, tooltip, menu; including menu static tests). 2010-01-07 03:19:50 +00:00