Commit Graph

62 Commits

Author SHA1 Message Date
Jörn Zaefferer
dc67d2c5d2 Protect all copyright notices against minification
For instance, this is useful for the jquery-ui-rails gem, which does not
use jQuery UI's own minification, but relies on Rails to minify the
files where necessary. Rails in turn uses UglifyJS for JS and YUI for
CSS, both of which respect the /*! ... */ convention.
(cherry picked from commit 37dcc3e21d, dropped menu, spinner and tooltip)
2012-04-02 18:14:51 +02:00
Scott González
5e3ad8f160 Updated copyright year. 2012-03-19 09:25:07 -04:00
Scott González
f7f13b5949 Button: Properly handle disabled option on init. Fixes #8028 - Getting unset disabled option on button widget returns jQuery object, not default value.
(cherry picked from commit 3a1031e58b)

Conflicts:

	ui/jquery.ui.button.js
2012-01-18 16:39:41 -05:00
Scott González
39e75ade1d Button: Create text span in correct document.
(cherry picked from commit c145f1698a)
2011-10-20 13:29:10 -04:00
Scott González
000b1736ac Button: Fixed RTL detection to default to LTR. Fixes #7697 - Buttonset: Incorrect corners for disconnected elements.
(cherry picked from commit 08450c3b2d)
2011-09-06 11:01:23 -04:00
Corey Frang
07d5271f7e Button: Adding quotes to the attribute selector for labels - Fixes #7534 - Button label selector omits quotes / fails for ids with ":"
(cherry picked from commit 065aef537b)

Conflicts:

	ui/jquery.ui.button.js
2011-08-03 22:19:29 -05:00
Scott González
b796cc57bd jQuery 1.6 support. 2011-07-29 14:57:06 -04:00
Andrew Powell
3735bab147 Button: adding event.preventDefault. Fixes #5945 - Disabled buttons still allow clicks
(cherry picked from commit 597a313ab6)
2011-05-26 12:29:04 -04:00
Glenn Goodrich
ad947c7ba9 Button: modified the event bindings for focus and blur. Fixed #6711 - checkbox/radio button do not show focused state when using Keyboard Navigation
(cherry picked from commit c49dbe0f01)
2011-05-26 11:29:39 -04:00
Scott González
c45dd91f1b Button: Refactored formResetHandler and fixed scope. Foxes #7261 - Refresh scope in formResetHandler unintentionally wide.
(cherry picked from commit e0fafbb735)
2011-05-18 10:33:37 -04:00
Kris Borchers
427f3d4345 Button: Don't fire click/change events if mouse was dragged during click of toggle (checkbox/radio) button. Fixed #6970 - Button state inconsistencies after (accidental) drag-clicking the button.
(cherry picked from commit a69a1788bc)
2011-05-13 15:29:03 -04:00
Doug Neiner
3842fa9f94 Button: no longer calls _resetButton() after changing the disabled option. Fixed #6242 - Button .enable() strange behavior on Webkit (Google Chrome, Safari)
(cherry picked from commit 8df834f68c)
2011-05-12 20:48:55 -04:00
Doug Neiner
15cb56726f Button: Added rtl detection so corner classes would properly be applied to buttonsets. Fixed #6796. jQueryui - buttonset on rtl
(cherry picked from commit 50a4186ef9)
2011-05-12 20:44:42 -04:00
Eike Send
4c218eeb0a Button: stop disabled button from firing click events. fixes #5945. Behavior was inconsisten between BUTTON and A elements.
(cherry picked from commit a7f1659cdc)
2011-05-05 08:49:53 -04:00
Giovanni Giacobbi
eb3d955438 Restructured if/else's for better readability
(cherry picked from commit 3ce8429f4f)
2011-03-21 09:48:10 -04:00
Richard Worth
6bbc43113c Button: avoid .last() call to ensure compatibility with jQuery 1.3. Fixed #7089 - Button: .last() used in ui.button but not exists in jQ 1.3 2011-03-14 17:18:35 -04:00
ddstreet
2d6ad06873 Button: find associated label even without common ancestor. Fixes #7092 - button creation that requires a matching label does not find label in all cases
(cherry picked from commit 0b30a1d450)
2011-03-11 10:54:18 -05:00
Scott González
c9bbd9aa6e Button: Only add text classes if there is text. Fixes #7040 - button class change breaks icon only buttons.
(cherry picked from commit e72afe4afc)
2011-02-26 11:15:08 +01:00
Alex Dovenmuehle
9191ee3cd8 Button: Batched class changes to improve performance. Fixes #6934. Button: Batch class changes to improve performance.
(cherry picked from commit 5b104dbcef)
2011-02-10 22:12:56 -05:00
Scott González
83fca58d1c Updated copyright year. 2011-01-17 09:36:00 -05:00
Scott González
5dad57e3c2 Buttonset: Added items option and removed visible filter for adding rounded corners. Fixes #6262 - 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 #6165 - 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 #5252 -Button: read disabled option from input elements. 2010-08-18 14:51:30 -04:00
Scott González
9060bf3d09 Buttonset: Ignore hidden buttons. Fixes #5946 - 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 #5732 - 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 #5732 - 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 #5810 - 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 #5382 - 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 #5567 - button text, hide then show again.
2010-04-29 21:38:23 -04:00
Scott González
02c32959d9 Button: Added missing semicolon.
Fixes #5536 - Mission semicolon on line 5368.
2010-04-23 12:08:55 -04:00
Richard Worth
92fe5e9225 Fixed #5362 - 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 #5278 - 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 #5361 - 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 #5324 - 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 #5328 - 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 #5328 - 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 #5278 - 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 #5246 - _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 #5261 - 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 #5261 - button change events don't fire in IE 7/8 2010-03-11 02:09:45 +00:00