Commit Graph

149 Commits

Author SHA1 Message Date
Scott González
02855292f2 Accordion: Removed requirement for headers contain a child (and removed associated ui-accordion-heading class). 2012-02-27 09:05:22 -05:00
Scott González
1e291c92cd Accordion: Reset height prior to calculations on refresh. 2012-02-26 22:04:21 -05:00
Scott González
7f533dfb44 Accordion: Don't toggle icons if the accordion doesn't have icons. 2012-02-26 21:54:05 -05:00
Scott González
3d9f6b5bc7 Accordion: Rewrote the animation code. Fixes - Accordion animation a bit jumpy in some browsers. Fixes - Accordion: Incorrect size when zoomed. 2012-02-16 16:51:46 -05:00
Scott González
5c7be4798f Accordion: Use 'that' instead of 'self'. Partial fix for - remove uses of 'var self = this;' 2012-02-12 09:24:09 -05:00
Scott González
5a55d68eca Accordion: Moved the ui-accordion-icons class to the headers to properly style nested accordions with varying settings of icons and no icons. Fixes - Nested accordion. 2012-01-31 12:48:00 -05:00
Scott González
3919256abd Accordion: Pass header and content in create event. Fixes - Accordion: Provide header and content details in create event. 2012-01-31 11:46:31 -05:00
Scott González
ecddf469d7 Accordion: Reset overflowX and overflowY after animations to fix overflow in Opera <11.6. Fixes - Accordion animation bug in Opera 11.01 with jQuery 1.4.3+. 2012-01-31 10:42:01 -05:00
Scott González
6074b0698a Accordion: Use ui-accordion-header-active class. 2012-01-31 08:54:21 -05:00
Jörn Zaefferer
66f9e12797 Widget: Remove method argument from _super and _superApply. Was a left-over from first implementation, not necessary anymore. 2011-11-18 17:08:40 +01:00
Scott González
e5464f8f19 Accordion: Fixed back-compat for icons.headerSelected when icons option is null. 2011-11-16 08:00:03 -05:00
Gaëtan Muller
124cf3cc6c Accordion: Fixed - Problem with accordion slide animation fixed width calculation 2011-11-06 15:21:22 +01:00
Scott González
1e395ecf08 Accordion: Fixed nested accordions. 2011-09-30 17:06:22 -04:00
Scott González
19a9de7e66 Merge branch 'master' into core-1.6.1
Conflicts:
	demos/menubar/default.html
	tests/unit/autocomplete/autocomplete.html
	tests/visual/effects/effects.all.html
	ui/jquery.ui.menu.js
	ui/jquery.ui.popup.js
2011-07-25 11:53:14 -04:00
Scott González
e2a9b0c568 Merge pull request from kborchers/bug_3532_2
Accordion: Stop current hide animation, jump to last animation and calculate percentages for padding in addition to height. Fixes  - Accordion: Activating a panel during animation fails
2011-07-20 06:30:51 -07:00
kborchers
5f02a8ff1f Accordion: Stop current hide animation, jump to last animation and calculate percentages for padding in addition to height. Fixes - Accordion: Activating a panel during animation fails 2011-07-20 08:19:01 -05:00
Scott González
06676f4696 Accordion: Fixed key handling. 2011-07-12 20:50:43 -04:00
Scott González
0080f2d581 Use .attr() for boolean ARIA attributes. 2011-07-12 11:36:34 -04:00
Scott González
da84672db8 .attr() -> .prop() 2011-06-08 17:02:57 -04:00
Scott González
6a5b21fda2 All: Moved version numbers into prototypes. Fixed - Widget: Store version numbers on instances. 2011-05-28 15:39:55 -04:00
kborchers
4ff8d90a82 Accordion: Added check to not allow 0 height on empty panels causing height issues on non-empty panels. Fixed - Accordion: Incorrect size when a panel is empty 2011-05-18 10:54:36 -04:00
Scott González
c4c36e557e Accordion, Autocomplete, Tabs: Separate callbacks and options in the defaults. 2011-04-25 08:11:52 -04:00
Scott González
fc5291291b Accordion: When simulating events, make sure we use DOM elements, not jQuery objects. 2011-04-04 14:22:54 -04:00
Scott González
80b6de1b78 Accordion: Pass original event in beforeActivate event. 2011-04-04 11:53:19 -04:00
Scott González
79c0fb7ee9 Accordion: Added missing semicolon. 2011-03-23 08:57:41 -04:00
Richard Worth
056cab82d8 Accordion: set aria-selected to true on selected header, false on others. Fixed - Accordion: Set aria-selected 2011-03-15 04:30:36 -04:00
Gilmore Davidson
9626484dd5 Fixed - Several components are leaking variables into the global scope 2011-02-23 16:33:27 +01:00
Scott González
f70f01af9e Accordion: Handle changing the event option. Fixes - Dynamically changing accordion's event handler doesn't actually change the behaviour. 2011-02-21 16:07:59 +01:00
Scott González
fb35d4e5c5 Accordion: Reset overflow on both content panels being animated, not just the one being shown. Fixes - .ui-accordion-content's overflow value does not change back to auto in IE 6. 2011-02-08 16:13:18 -05:00
Scott González
93916b4d01 Accordion: Added note about using ui-accordion-header-active class. 2011-02-08 09:21:35 -05:00
Scott González
e986bd8877 Accordion: Reduced some code in _toggle(). 2011-02-04 23:50:49 -05:00
Scott González
d808f933eb Accordion: Simplify _toggle() implementation. 2011-02-04 22:37:29 -05:00
Scott González
e2560f654e Accordion: Always have _activate delegate to _eventHandler. 2011-02-04 21:52:09 -05:00
Scott González
ed57047bf9 Accordion: First pass at cleaning up activation/event handling code. 2011-02-03 23:02:46 -05:00
Scott González
352ef4c9b3 Accordion: Cleaned up destroy and refresh methods. 2011-02-03 11:04:22 -05:00
Scott González
2e17770e54 Accordion: Update active option when programmatically collapsing the accordion. 2011-02-03 10:04:40 -05:00
Scott González
d099e3a3b2 Accordion: Handle negative values for active option on init. 2011-02-03 09:59:05 -05:00
Scott González
714a77f202 Accordion: Properly handle collapsible: false and active: false by changing active to 0. 2011-02-03 09:54:11 -05:00
Scott González
8ac5da2315 Accordion: Cleanup. 2011-02-02 21:33:57 -05:00
Scott González
f1ff9b8f4d Accordion: Added ui-accordion-header-icon class to generated icons in order to not interfere with any additional icons that users might add. 2011-02-02 21:15:25 -05:00
Scott González
cb8f5b7f26 Merge branch 'master' into widget-events
Conflicts:
	ui/jquery.ui.widget.js
2011-01-31 22:04:09 -05:00
Scott González
6309061a2b Accordion: added a comment. 2011-01-31 08:58:01 -05:00
Scott González
c58012364b Accordion: Removed ui-accordion-li-fix class; I couldn't find instances where this caused a problem in IE. Fixed - Accordion: broken animation in Chrome. 2011-01-31 08:50:17 -05:00
Scott González
7a6dd71f8c Accordion: Allow canceling the beforeActivate event. Fixes - Accordion: Allow canceling the beforeActivate event. 2011-01-25 00:52:42 -05:00
Scott González
088ef05142 Accordion: Renamed changestart and change events to beforeActivate and activate, respectively. Fixes - Accordion: Rename changestart event to beforeActivate. Fixes - Accordion: Rename change event to activate. 2011-01-25 00:05:55 -05:00
Scott González
140d90a9a4 Accordion: Test cleanup. 2011-01-24 15:45:29 -05:00
Scott González
c96c249780 Accordion: First pass at splitting out tests for deprecated functionality. 2011-01-24 14:38:23 -05:00
Scott González
711df1f5e5 Widget: Added _hoverable() and _focusable(). 2011-01-21 15:37:18 -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
66606407ed Accordion: Force the width of the accordion panel during animation when animating from a fully collapsed state. Fixes - Accordion: Jumpy animation when opening a panel after closing all.
The animation code should be refactored.
2011-01-14 14:35:37 -05:00
Scott González
1b2f6ce095 Accordion: Renamed resize method to refresh. Fixes - Accordion: Rename resize method to refresh. 2011-01-14 12:18:33 -05:00
Scott González
ee77fde5fc Accordion: Cleaned up _createIcons(). 2011-01-13 19:23:55 -05:00
Scott González
4e7aa53e3e Accordion: Use event.preventDefault() instead of return false when handling keydown. 2011-01-13 16:48:56 -05:00
Scott González
b22c69b949 Accordion: call event.preventDefault() inside the _eventHandler() instead of in each individual event handler. 2011-01-13 16:45:21 -05:00
Scott González
93d01208eb Accordion - Make sure we have an element before trying to modify the className. Fixes - Accordion: Opening a panel after all panels have been collapsed causes an error. 2011-01-13 16:36:14 -05:00
Scott González
599e1434c5 Merge branch 'accordion-activate' 2011-01-13 14:56:29 -05:00
Scott González
468c35877a Accordion: Moved handling for programmatically collapsing the accordion out of the event handler. Modified event handler to not change the active option until after it determines that the event is valid. 2011-01-13 14:42:35 -05:00
Scott González
3c11cd3051 Accordion: Added note about supporting negative values for active option in 2.0. 2011-01-13 14:01:38 -05:00
Scott González
b5b8cefcb0 Accordion: Reduced valid active options to numbers and falsey. Added compatibility layer for previously allowed values. 2011-01-13 08:51:09 -05:00
Alex Dovenmuehle
497ec8588c Accordion: Fixed weird behavior on accordion animations in IE. Fixed - Accordion header margins disappear in IE 8 2011-01-12 21:43:53 -05:00
Scott González
368af59137 Accordion: Handle invalid values for the active option. 2011-01-11 21:24:41 -05:00
Scott González
8b23483c0b Accordion: First pass at deprecating the activate method. Renamed _clickHandler to _eventHandler and removed extraneous parameter. Updated all tests to use the option methods instead of the activate method. 2011-01-11 20:53:31 -05:00
Alex Dovenmuehle
b6ed9328ef Accordion: Deprecated icons.headerSelected in favor of icons.activeHeader. Fixes - Accordion: Change icons.headerSelected to icons.activeHeader. 2011-01-11 15:38:47 -05:00
Scott González
dd89ea5ff3 Accordion: Start the accordion animation before changing classes. Fixes - Accordion: ol numbering bug.
Thanks Tony Ross.
2011-01-11 13:20:50 -05:00
Xavi
956697bfca All: Use .toggleClass() instead of conditionally using .addClass() and .removeClass(). Fixes - Use toggleClass instead of [ bool ? 'addClass' : 'removeClass' ]. 2010-12-19 16:52:22 -05:00
Scott González
d6edba5a89 Accordion: Move code for deprecated height options into an extension at the bottom of the plugin. 2010-12-19 16:38:15 -05:00
Scott González
32945202da Accordion: Don't include the height of absolute/fixed positioned siblings when calculating size for heightStyle: fill. 2010-12-19 16:22:26 -05:00
Scott González
75b94a1c12 Accordion: Handle changes to deprecated options: autoHeight, clearStyle, fillSpace. 2010-12-19 16:19:54 -05:00
Alex Dovenmuehle
94a1786d56 Accordion: API Redesign. Made style changes and changed 'fill' implementation to use $.siblings() 2010-12-17 21:38:29 -05:00
Alex Dovenmuehle
490792be6a Accordion: API Redesign. Merged autoHeight, fillSpace, and clearStyle into a new option called heightStyle 2010-12-16 22:55:59 -05:00
Scott González
f73d421753 Accordion: Split out navigation options into an extension. Fixes - Accordion: Deprecate navigation options. 2010-12-11 15:57:49 -05:00
Alex Dovenmuehle
f54747b302 Accordion: Added .ui-accordion-heading class to header's first child. Fixes - Accordion: Add .ui-accordion-heading class. 2010-12-10 14:54:50 -05:00
Scott González
9e19747209 Accordion: Don't pass multiple classes to .toggleClass(). Fixes - Accordion: 1.8.5 not fully compatible with core 1.3.2. 2010-09-20 14:56:17 -04:00
Scott González
bccfb535c3 Accordion: minor cleanup. 2010-07-27 17:23:00 -04:00
Scott González
59c9f75951 Accordion: Coding standards. 2010-07-22 19:10:14 -04:00
Scott González
f99068bb4f Accordion: Use this.headers instead of parsing the DOM to find headers when determining which panel is active. Fixes - Accordion active property inaccurate if nested accordion is present. 2010-07-20 16:13:44 -04:00
Scott González
f448c79c01 Accordion: Use .addClass() instead of .toggleClass() during init so the classes can be added by the user. 2010-07-16 13:40:11 -04:00
jzaefferer
06f721b74f Use .children() instead of .find() to manipulate accordion icons. Fixes - Accordion should only manipulate Icons that are children of ui-accordion-header 2010-07-15 09:51:20 +02:00
Scott González
8a5d4ca321 All: Added http://jqueryui.com/about to header comments. 2010-07-14 15:45:45 -04:00
jzaefferer
a3ab2b223b Add support for multiple events, along with hoverintent demo. Fixes - Accordion: support multiple events being set at the same time 2010-07-14 19:39:50 +02:00
Scott González
c71e63cb69 Accordion: Add disabled class to headers and panels to fix styling in IE. Fixes - Accordion: Disabled accordion doesn't look disabled in IE. 2010-07-14 11:00:28 -04:00
Scott González
e895d860a5 Accordion: Animate padding when only showing/hiding a single panel. Fixes - Accordion: Jumpy animation when opening a panel after closing all. 2010-07-14 08:29:58 -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
ba387ce1c5 Accordion: Fixed resize method for autoHeight. Fixes - autoHeight resize not working. 2010-07-13 09:40:46 -04:00
Scott González
551bf6e1e7 Accordion: Don't handle hover/focus when disabled. Fixes - Accordion headers still show rollover when disabled. 2010-07-13 09:10:43 -04:00
Scott González
2bf91e8e28 Accordion: Prevent the navigation filter from finding multiple elements. Fixes - Navigation parameter can open multiple sections. 2010-07-13 08:51:37 -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
Scott González
0aa4c7f9b6 Removed case-sensitive .nodeName check.
Fixes  - Comparing element.nodeName directly against upper case tag names can cause problems.
2010-04-27 19:41:10 -07:00
jzaefferer
cae15a4d37 Accordion: Fixed case for tabIndex (was tabindex), fixes failing destroy-test in IE6 2010-04-03 17:14:01 +02:00
jzaefferer
551fa98ae4 Accordion: Moving IE layout fix (via zoom: 1) from js to css - fixes the destroy-method test in IEs (zoom style wasn't cleaned up on destroy) and should perform slightly faster, too 2010-03-27 08:03:48 +01:00
Scott González
c27bc6b035 Accordion: Fixed oldContent and newContent for events.
Fixes  - Accordion: newContent/oldContent misbehaving.
2010-02-24 17:25:54 +00:00
Richard Worth
074153407d Happy New Year 2010-01-20 14:04:26 +00:00
Scott González
b0195091a6 Accordion: Check for division by zero error during animation.
Fixes  - Accordion does not function in IE7/WinXP.
2010-01-20 03:26:39 +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
Scott González
06e29401b8 Split mouse into its own file and udpdated dependency lists.
Fixes  - Split mouse code into its own file.
2009-12-22 19:51:24 +00:00
Richard Worth
e2d873e6f0 renamed all ui.*.js files to jquery.ui.*.js, all effects.*.js files to jquery.effects.*.js per announcement and discussion here http://groups.google.com/group/jquery-ui-dev/msg/d565a0c56e0cb935 2009-09-17 10:39:12 +00:00