aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/dialog.js
Commit message (Collapse)AuthorAgeFilesLines
* 1.13.01.13.0Michał Gołębiowski-Owczarek2021-10-071-2/+2
|
* 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