aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/dialog.js
Commit message (Collapse)AuthorAgeFilesLines
* Dialog: Add option to put the dialog title in a header elementRalf Koller2024-09-091-1/+8
| | | | | | | | | Implement a new option: `uiDialogTitleHeadingLevel`, allowing to change the `span` wrapping the dialog title into a heading element (`h1`-`h6`). Value `0` represents the `span`, values 1-6 - a heading at the specified level. Fixes gh-2271 Closes gh-2275
* Dialog: Add aria-modal supportRalf Koller2024-06-141-1/+6
| | | | | | | | | | | | Reflect the `modal` dialog option into the `aria-modal` attribute - when `modal` is `true`, set `aria-modal` to `"true"`. This helps some accessibility tools like VoiceOver with their rotor functionality as it reduces the number of elements presented. Fixes gh-2246 Closes gh-2257 Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
* All: Drop support for IE & some other browsers (but mostly IE)Michał Gołębiowski-Owczarek2024-05-151-13/+3
| | | | Closes gh-2249
* All: Drop support for jQueries different than the latest for each majorMichał Gołębiowski-Owczarek2024-05-151-14/+0
| | | | | | Also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4. Closes gh-2249
* Core: Make back compat disabled by defaultMichał Gołębiowski-Owczarek2024-05-131-1/+1
| | | Closes gh-2250
* 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
* Dialog: Fix IE tests about interactions with other dialogsMichał Gołębiowski-Owczarek2023-05-101-5/+8
| | | | | | | | | | The workaround triggering a second delayed focus to a tabbable element was applied in jQueries 3.4 & 3.5 to fix IE issues. It also needs to be applied in jQuery 3.6 which this commit adds. This will no longer be needed in jQuery 3.7 and jQuery 3.x-git tests are already passing because of that. Closes gh-2160
* 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
* Dialog: Workaround broken focus re-triggering in jQuery 3.4/3.5Michał Gołębiowski-Owczarek2021-02-221-10/+22
| | | | | | | | | | | Focus re-triggering in jQuery 3.4/3.5 makes the original element have its focus event propagated last, breaking the re-targeting. Trigger focus in a delay in addition if needed to avoid the issue. This fixes the "interaction between overlay and other dialogs" core dialog test when tested against jQuery 3.4/3.5. Closes gh-1946 Ref jquery/jquery#4382
* All: Remove usage of jQuery positional selectorsMichał Gołębiowski-Owczarek2020-01-221-2/+2
| | | | | | | | | | | | | | | | | jQuery positional selectors () have been deprecated in [jQuery 3.4.0](https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/) and they'll be removed in jQuery 4.0.0. This PR removes their usage. Most of the changes were possible without changing public API. However, dropping `:even` usage required a change to the [`header` option](https://api.jqueryui.com/accordion/#option-header) of the accordion widget. I made it an optional function; this will need to be documented. The polyfill for `.even()` & `.odd()` is added for jQuery <3.5.0. There was no usage of the :odd selector in the code but the `.odd()` method is also polyfilled for completeness. Closes gh-1904
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-081-2/+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
* Dialog: Fix shared event handler for modal dialogsScott González2017-05-171-15/+14
| | | | | | | | | The old logic worked when all widgets of the same type used the same event namespace. However, now that each instance has its own namespace, we cannot use `_on()` for shared event handlers. Fixes #15182 Closes gh-1817
* Dialog: Support deprecated button optionsScott González2016-07-251-1/+11
| | | | | Fixes #15016 Closes gh-1723
* Dialog: Fix line length issuesAlexander Schmitz2016-04-131-2/+4
| | | | Ref gh-1690
* Dialog: Escape closeText option before passing it to buttonJörn Zaefferer2015-10-281-2/+2
| | | | | Ref gh-1632 Fixes jquery/api.jqueryui.com#281
* 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.
* Dialog: Updating dialog and tests for new button APIAlexander Schmitz2015-10-071-8/+9
|
* Dialog: Override disabled option on create, force always-enabled stateJörn Zaefferer2015-09-251-0/+5
| | | | | | | | Without this, _on will still respect the disabled option and ends up preventing closing the dialog. Ref #9151 Ref gh-1599
* Dialog: Style updatesAlexander Schmitz2015-09-111-0/+15
| | | | Ref #14246
* Dialog: Style updatesAlexander Schmitz2015-08-211-7/+7
| | | | | Ref #14246 Ref gh-1588
* Resizable: Move resizable into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Mouse: Move mouse into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Draggable: Move draggable into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Dialog: Move dialog into widgets folderAlexander Schmitz2015-08-081-0/+907
Ref #13885