aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/menu.js
Commit message (Collapse)AuthorAgeFilesLines
* Docs: Change a few most common domains from HTTP to HTTPSMichał Gołębiowski-Owczarek2024-04-261-4/+4
| | | | | Also, update a few stale URLs to what they redirect now to. Closes gh-2244
* All: Update JS Foundation mentions to OpenJS FoundationMichał Gołębiowski-Owczarek2022-07-191-1/+1
| | | Closes gh-2104
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-071-2/+5
| | | | | Fixes #15393 Closes gh-1958
* Menu: Account for scrollbars in jQuery 3.2Michał Gołębiowski-Owczarek2020-07-231-2/+14
| | | | | | | | | | jQuery >=3.2 doesn't include scrollbars in `.height()`, this commit switches it to `.innerHeight()` which does so in jQuery >=3.3. In jQuery 3.2 it doesn't either so include scrollbars in innerHeight, add it back. Using `.innerHeight()` instead of `.height()` should be fine as menu doesn't define padding styles. Closes gh-1929
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of the changes: * Build: Add jQuery 3.2.0-3.4.1 to versions UI can be tested against * Build: Load jQuery & Migrate via HTTPS * Build: Add package-lock.json to .gitignore * Build: Update jQuery Migrate from 3.0.0 to 3.1.0 * Build: Allow to run tests against jQuery 3.x-git * Build: Fix formatting according to JSCS rules * Build: Disable JSCS for the inlined jQuery Color * All: Switch from $.isArray to Array.isArray (jQuery.isArray will be removed in jQuery 4.0) * All: Switch from `$.isFunction( x )` to `typeof x === "function"` (jQuery.isFunction will be removed in jQuery 4.0) * All: Inline jQuery.isWindow as it'll be removed in jQuery 4.0 * Effects: Fix a timing issue in a variable declaration. Previously, a jQuery object was created, chained & assigned to a variable that was then accessed in a callback used inside of this chained definition. Due to a timing difference in when the callback fired for the first time in latest jQuery master, it was being called before the variable was defined. * Tests: Make dialog & draggable unit tests less strict (newest jQuery returns fractional results in some cases, making comparisons fail when there's a tiny difference) * All: Migrate from $.trim to bare String.prototype.trim (jQuery.trim will be deprecated in jQuery 3.5) Closes gh-1901
* Menu: Ignore mouse events triggered due to page scrollingScott González2017-05-021-0/+12
| | | | | Fixes #9356 Closes gh-1806
* Menu: Handle mouse movement mixed with keyboard navigationScott González2017-05-021-23/+33
| | | | | Fixes #9357 Closes gh-1805
* Menu: Don't focus dividers when wrapping via keyboard navigationScott González2017-05-021-11/+13
| | | | | Fixes #15157 Closes gh-1804
* Menu: Close menus immediately on selection or click outsideScott González2017-04-251-2/+2
| | | | | Fixes #15034 Closes gh-1807
* Menu: Support number pad keyboard inputFelix Nagel2016-08-241-1/+4
| | | | | Fixes #15031 Closes gh-1732
* Menu: Remove extraneous blank linesScott González2016-04-131-2/+0
|
* Menu: Fix line length issuesAlexander Schmitz2016-04-131-3/+12
| | | | Ref gh-1690
* Menu: Don't reset active element until after triggering `blur` eventScott González2016-04-131-1/+1
| | | | | | | This ensures that `ui.item` actually exists in the `blur` event. Fixes #14945 Closes gh-1696
* Menu: Check that there is an active item in `_activate()`Rand Scullard2016-03-301-1/+1
| | | | Closes gh-1606
* Menu: Remove active class from top-level item when menu is blurredJörn Zaefferer2016-03-111-8/+8
| | | | | | | | | | | This issue was introduced by 0bbd1569182bc03e8dc4f5f8aa203e8edbe15f99, which reduced the use of ui-state-focus and ui-state-active to using only ui-state-focus. This introduced the issue addressed here. The fix is more of a workaround. With test test in place, we can investigate a better solution in the future. Fixes #14919
* All: Fix manifest issues for categories and CSS dependenciesJörn Zaefferer2015-10-231-3/+3
| | | | | | | Collapses "UI Core" and "Core" into just "Core". Fixes bad paths for CSS dependencies. Regressed when moving widgets into the widgets subfolder.
* Menu: Remove redundant handling of disabled option on createJörn Zaefferer2015-09-251-9/+7
| | | | | Ref #9151 Ref gh-1599
* Menu: Style updatesAlexander Schmitz2015-09-111-0/+3
| | | | Ref #14246
* Menu: Style updatesAlexander Schmitz2015-08-211-1/+1
| | | | | Ref #14246 Ref gh-1588
* Menu: Move menu into widgets folderAlexander Schmitz2015-08-081-0/+662
Ref #13885