Commit Graph

167 Commits

Author SHA1 Message Date
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
kborchers
23340f1162 Menu: Added Home moves to first item and End moves to last item in currently active menu or submenu. Also fixed PageUp and PageDown so that they don't wrap back around to other end of menu. Also fixed scrolling to use activeMenu rather than element to all. Also added unit tests for keyboard nav 2011-07-25 09:13:13 -05:00
kborchers
8224c675e1 Menu: Passed the original event that causes a blur through collapseAll to blur, then trigger a blur on the menu. Fixes failing unit test provided by @rwaldron which has been included in this commit 2011-07-19 16:15:59 -05:00
kborchers
6d0859f716 Menu: Changed closeAll to collapseAll and updated in Menubar, also updated a reference to left in Menubar to collapse. 2011-07-14 11:38:03 -04:00
Jörn Zaefferer
11d24ee84c Menu: Fix formatting and whitespace (was supposed to update previous commit) 2011-07-14 11:10:28 -04:00
kborchers
f41d2378f9 Menu: Check if submenu is already open and if so, don't call open again. Fixes Firefox bug where a mouseover of an icon adjusted the position of a submenu by a half pixel 2011-07-14 11:08:28 -04:00
kborchers
bc93b3ff08 Menu: Remove the ui-state-active class from the siblings of the newly activated menu item without a delay to fix a bug where mouseover of a menu item directly adjacent to the active item would cause a 1 pixel jump due to both items having a class with a border (ui-state-active and ui-state-focus) 2011-07-13 15:33:17 -05:00
Scott González
0080f2d581 Use .attr() for boolean ARIA attributes. 2011-07-12 11:36:34 -04:00
kborchers
9f5050ee06 Menu: Added close on click outside using technique from popup 2011-07-12 11:03:10 -04:00
kborchers
5d2b683761 Menu: Changed left and right methods to collapse and expand respectively. 2011-07-05 10:02:33 -05:00
gnarf
85eeaf0b05 menu: Second pass style guidance 2011-06-10 07:23:01 -05:00
gnarf
e993a9b210 menu: Partial Style Guidance - Fixing JSLint Warnings 2011-06-10 05:28:13 -05: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 #7436 - Widget: Store version numbers on instances. 2011-05-28 15:39:55 -04:00
Jörn Zaefferer
83424c6c33 Merge branch 'master' of github.com:jquery/jquery-ui 2011-05-11 19:49:16 +02:00
Scott González
b70256c368 Menu: Fixed variable name. 2011-05-11 08:43:37 -04:00
Scott González
24864de57d Menu: Use appropriate methods for getting scroll values for .prop()/.attr() compat. Fixes #7354 - Autocomplete: Scrollable results don't visually update with jQuery 1.6. 2011-05-11 08:37:27 -04:00
Jörn Zaefferer
0352c2c71f Menu: Remove default preventDefault. Add more meaningful href's on menu
and menubar demos. Change doesn't seem to affect autocomplete as that
doesn't use href-attributes anyway.
2011-05-11 13:39:58 +02:00
Jörn Zaefferer
c17f245d98 Autocomplete: Revert fix for #7024, broke regular menu selection.
Disabled test for now (need to reopen ticket).
2011-05-11 13:19:46 +02:00
kborchers
73ed73890c Autocomplete: Added check to determine if menu has just been created to override mouseover event and reset that variable from autocomplete on close. Fixed #7024 - Autocomplete menu options are activated even if mouse is not moved 2011-05-09 16:22:11 -05:00
Jörn Zaefferer
a444287642 Menu: Restore _destroy - remove tabIndex (gets added), don't remove ID
(can get generated, but removing only generated ideas hopefully isn't
necessary). May have to fix that later.
2011-05-03 21:58:26 +02:00
Jörn Zaefferer
cd61fb1b55 Merge branch 'master' into menubar
Conflicts:
	ui/jquery.ui.menu.js
2011-04-26 22:05:44 +02:00
jzaefferer
6326da3fdb Menu: Add ui-state-active to parent item when submenu item receives focus. 2011-04-23 17:36:52 +02:00
Hans Hillen
84f918ae44 Fix collapsing submenus issue 2011-04-22 23:14:04 +02:00
Hans Hillen
dc7410f55b Prevent branch menuitems from firing select event 2011-04-22 20:22:56 +02:00
jzaefferer
34e3a2401a Menu: Add icons support 2011-04-20 17:18:15 +02:00
jzaefferer
f0d5a0008f Menu: Make keyboard focus matching take submenus into account 2011-04-20 15:35:40 +02:00
Hans Hillen
d77185a5a1 Fix "menubar does not collapse when clicking on other menubar" + minor changes 2011-04-18 23:05:50 +02:00
Hans Hillen
f89f0ca61f ARIA & Focus changes to menu, specifically to how aria-activedescendant is handled 2011-04-15 19:18:38 +02:00
jzaefferer
5a112d4e03 Menu: Close submenu on ESCAPE keypress 2011-03-17 17:43:11 +01:00
jzaefferer
a077047fb3 Menu: Implement delaying of opening and closing submenus 2011-03-17 10:37:37 +01:00
Scott González
da67ece506 Menu: Handle clicking on a menu item without hovering it first. Fixes #7085 - Menu click when no mouseover causes error. 2011-03-15 14:02:18 -04:00
jzaefferer
2221dd6583 Menu: Cleanup 2011-02-28 22:38:06 +01:00
jzaefferer
a256e05df5 Menu: Move addClass(active) call to _open to make it work for both mouse
and keyboard interactions
2011-02-28 22:36:41 +01:00
maggiewachs
f73466a320 Removed active state when menu closes 2011-02-24 11:46:51 -05:00
maggiewachs
adf80bfb38 Added active state toggle to items with submenus to provide "breadcrumb" feedback 2011-02-24 11:44:47 -05:00
jzaefferer
0ddf677e40 Menu: Integrated flyoutmenu into menu, and moved flyoutmenu.html
testmenu into contextmenu.html
2011-02-24 15:51:51 +01:00
jzaefferer
38cfcfffe9 Menu: Update autocomplete to use deactivate and check for focus class 2011-02-24 12:05:20 +01:00
jzaefferer
6bd95efe5e Menu: Fix filter matching to work with flyout menu 2011-02-24 11:14:19 +01:00
jzaefferer
5d3f91bcbe Menu: Move item matching code into menu 2011-02-24 11:14:19 +01:00
jzaefferer
d74fb20a28 Menu: Replace ui-state-hover with ui-state-focus. More semantic, looks
the same.
2011-02-24 10:12:20 +01:00
jzaefferer
0d659d44c3 Menu: Rename activate to focus and deactivate to blur method 2011-02-24 10:06:08 +01:00
jzaefferer
355705878a Menu: Overhauled nested menu via flyoutmenu.js backported from Michael
Lang's fork. Changed key input handling by setting focus to menu,
getting rid of input option.
2011-02-22 11:51:08 +01:00
jzaefferer
ed531ef0d3 Menu: Remove ui-state-hover class from menu items on destroy 2011-02-16 08:39:30 +01:00
jzaefferer
e69839ae6a Menu: Fix unit tests and set the right menu1-activedescendant attribute 2011-02-11 15:42:44 +01: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
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
jzaefferer
2a226f6e63 Menu: Update license header. 2010-11-20 15:42:44 +01:00
jzaefferer
ecc0d0e74d Menu: Implemented new (experimental) ARIA based on discussions on the jquery-a11y list. 2010-11-16 20:35:08 +01:00
jzaefferer
9949fa4d76 Menu: Good enough 2010-10-28 19:24:51 +02:00
jzaefferer
8959057ecc Menu: Further refactoring of next/previousPage 2010-10-28 19:22:57 +02:00
jzaefferer
c55977d2ef Menu: Refactored next/previousPage logic and activate-scrolling, improved much! 2010-10-28 19:15:27 +02:00
jzaefferer
184ad699df Menu: Refactored menu to use .first()/.last() instead of :first/:last whereever possible 2010-10-28 18:38:40 +02:00
jzaefferer
1bd57c7421 Menu: Effing coding standards. 2010-10-28 18:12:52 +02:00
jzaefferer
6b3eead894 Menu: Use event delegation for mouseover/out events, instead of binding to menu items directly 2010-10-28 18:11:55 +02:00
jzaefferer
0746f99115 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 15:32:54 +02:00
jzaefferer
bf977a6770 Menu: Improve first and last methods to take non-menuitem items into account 2010-06-19 17:16:15 +02:00
jzaefferer
d5df3a5a56 Menu: make the move method private 2010-06-19 17:03:08 +02:00
jzaefferer
2360af22a8 Menu: make the hasScroll method private 2010-06-19 16:59:27 +02:00
jzaefferer
9ac357813f Menu: Fixes for destroy method completeness 2010-06-18 11:16:10 +02:00
jzaefferer
b376fa8dda Menu: Implemented destroy method and disabled option, modified test to pass html-compare-destroy test and extended default visual test for testing destroy and disabled features 2010-06-18 10:57:20 +02:00
jzaefferer
adf19a1849 Renamed menu event selected to select to be consistent with naming conventions, already updated spec on wiki 2010-04-30 13:18:34 +02:00
jzaefferer
abfdb2a8b6 First attempt at integrating key handling into menu 2010-04-30 13:04:09 +02:00
jzaefferer
c7edd586d4 Placeholder for destroy method in menu 2010-04-30 10:21:40 +02:00
jzaefferer
17f8079bc2 Menu: Extracted menu code from autocomplete, updated all dependencies 2010-04-21 21:01:08 +02:00