aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Tests: Account for extra focus/blur listeners in jQuery >=3.4Michał Gołębiowski-Owczarek2020-07-231-0/+70
| | | | | | | | | | | | | | jQuery >=3.4.0 uses a special focus/blur handler pair needed to fix various issues with checkboxes/radio buttons as well as being able to pass data in focus triggers. However, this leaves dummy focus & blur events if any of these events were ever listened to at a particular element. There's not a lot UI can do to fix this so we now just skip these handlers for data comparisons in tests. Ref jquery/jquery#4496 Closes gh-1930 Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
* Tests: Accept a small difference of animated width/heightMichał Gołębiowski-Owczarek2020-07-231-2/+4
| | | | | | | | | | | | | jQuery 3.2 & newer have a different animation logic and the animated elements width/height differ from the starting ones even at the beginning of the animation. The point of the assertions checking that they're identical was to ensure bug #5245 is fixed; that issue manifested by a big jump to half the element size. To test for that, it's enough to check that the first obtained values are close to the original ones. This makes effects tests pass in all supported jQuery versions. Closes gh-1928 Ref #5245
* Tests: Skip a scrollbar test in jQuery 3.2Michał Gołębiowski-Owczarek2020-07-231-1/+7
| | | | | | | | | | | jQuery 3.2 incorrectly handle scrollbars in WebKit/Blink-based browsers. This is fixed in version 3.3, see https://github.com/jquery/jquery/issues/3589. As the data here comes from jQuery directly and the changes to fix it are non-trivial: https://github.com/jquery/jquery/pull/3656, just accept that scrollbar data in this jQuery version is inaccurate. Closes gh-1927 Ref jquery/jquery#3589 Ref jquery/jquery#3656
* Tests: Clear the timers queue in an animateClass testMichał Gołębiowski-Owczarek2020-07-231-3/+2
| | | | | | jQueries older than 1.11 or 2.1 were leaving a timer in the queue which could then influence other tests. Closes gh-1926
* All: Drop support for jQuery 1.7Michał Gołębiowski-Owczarek2020-07-2216-28133/+17
| | | Closes gh-1923
* Build: Update the version from 1.12.2-pre to 1.13.0-preMichał Gołębiowski-Owczarek2020-07-221-1/+1
| | | Closes gh-1921
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-1692-175/+352
| | | | | | | | | | | | | This helps fix issues that make tooltip tests sometimes fail when run against jQuery 3.2 or newer due to timing differences. Details: * Add the `moduleAfterEach` function ensuring no timers are running. * Attach this function via `common.testWidget`. * Attach this function to most test suites. * Add a tooltip test helper cleaning up leftover timers. * Rename legacy `setup`/`teardown` hooks to `beforeEach`/`afterEach`. Closes gh-1920
* All: Resolve most jQuery Migrate warningsMichał Gołębiowski-Owczarek2020-05-1610-9/+11
| | | Closes gh-1919
* Tests: Load jQuery Migrate before UI test filesMichał Gołębiowski-Owczarek2020-05-161-6/+9
| | | | | | This is necessary to catch all possible warnings that the test files may trigger. Closes gh-1918
* Build: Rename jquery-1-7 to jquery-patchMichał Gołębiowski-Owczarek2020-05-163-2/+2
| | | | | The file now contains many more than just jQuery 1.7 patches. Closes gh-1917
* Tests: Solve a frequent race condition in tests in Chrome/SafariMichał Gołębiowski-Owczarek2020-05-161-4/+10
| | | Closes gh-1916
* Build: Add jQuery 3.5.0 & 3.5.1Michał Gołębiowski-Owczarek2020-05-169-0/+21795
| | | Closes gh-1915
* Build: Update jQuery Simulate, jQuery Migrate & jQuery ColorMichał Gołębiowski-Owczarek2020-05-1612-770/+1048
| | | | | | The jQuery Simulate & jQuery Color updates are needed for compatibility with jQuery master, a future jQuery 4. Closes gh-1914
* Datepicker: Fix Hungarian localization to use uppercase for first charactersFatér Zsolt2020-03-231-4/+4
|
* Datepicker: Add German localizationFlorian Wegscheider2020-03-231-0/+38
|
* Datepicker: Fixed current instance memory leak and added unit testcasesjigar gala2020-03-232-2/+12
|
* All: Remove usage of jQuery positional selectorsMichał Gołębiowski-Owczarek2020-01-2223-148/+193
| | | | | | | | | | | | | | | | | 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
* Tests: Add the 3.x-git jQuery version to the dropdownMichał Gołębiowski-Owczarek2020-01-141-1/+1
| | | | Closes gh-1905
* Sortable: Remove reference to .disableSelection() from demosGez Quinn2019-12-091-1/+0
| | | | | | `.disableSelection()` was deprecated in v1.9: http://api.jqueryui.com/disableSelection/ Closes gh-1856
* Datepicker: Fix typo in currentText in da localizationOskarNS2019-12-091-1/+1
| | | | | | | The term for "Today" in Danish is "I dag" not "Idag". This is a common misspelling in the Danish language. see https://dsn.dk/?retskriv=idag Dansk Sprognævn (DSN) is the authority over the Danish language. Closes gh-1862
* Build: Add my new name to .mailmap, update it in AUTHORS.txtMichał Gołębiowski-Owczarek2019-12-082-1/+2
| | | Closes gh-1837
* All: Use expr.pseudos instead of deprecated expr.filtersMaksymenkov Eugene2019-12-082-4/+4
| | | | | | See: https://github.com/jquery/jquery-migrate/blob/master/warnings.md#jqmigrate-jqueryexprfilters-is-deprecated-use-jqueryexprpseudos Closes gh-1887
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-0851-179/+62977
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Tests: Load `jquery-1-7` before other modulesScott González2017-05-311-1/+1
|
* Datepicker: Fix first day of week for pt-PT localeHorus682017-05-311-1/+1
| | | | | Fixes #15195 Closes gh-1820
* 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
* All: Remove uses of `jQuery.proxy()`Scott González2017-05-172-3/+3
| | | | | Ref #15160 Closes gh-1813
* All: Remove uses of `jQuery.camelCase()`Scott González2017-05-172-2/+14
| | | | | Ref #15160 Ref gh-1813
* Tests: Load `jquery-1-7` module for jQuery 2.x as wellScott González2017-05-151-2/+2
|
* Demos: Fix a typo with an extra semicolonRobert Brignull2017-05-101-1/+1
| | | | Closes gh-1812
* Tests: Load the `jquery-1-7` module for all 1.x versionsScott González2017-05-101-2/+2
|
* Position: Increase scrollbar test div to handle larger scrollbarsScott González2017-05-041-3/+3
| | | | | Fixes #15106 Closes gh-1811
* Core: Fix JQMIGRATE warning about `jQuery.expr[":"]`Eirik Sletteberg2017-05-027-8/+20
| | | | | | | This commit polyfills `jQuery.expr.pseudos` for old versions of jQuery. Fixes #15185 Closes gh-1773
* Menu: Ignore mouse events triggered due to page scrollingScott González2017-05-023-4/+16
| | | | | 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-023-11/+45
| | | | | Fixes #15157 Closes gh-1804
* Button: Fix backcompat when called on collection of mixed elementsAlexander Schmitz2017-05-023-14/+99
| | | | | Fixes #15109 Closes gh-1808
* Sortable: Fix various scrolling issuesA. Wells2017-05-021-129/+168
| | | | | | | | | | | | | | | | | | | * Created _scroll extension point and migrated scroll code from _mouseDrag * Cleaned up logic for scrolled * Fixed appendTo functionality to match documentation * Remove unnecessary function calls * Move set-up position functions to appropriate place * Base scrollParent on placeholder and not helper * Update scrollParent when switching containers Fixes #3173 Fixes #15165 Fixes #15166 Fixes #15167 Fixes #15168 Fixes #15169 Fixes #15170 Closes gh-1793
* Labels: Handle empty setsScott González2017-05-022-1/+7
| | | | Fixes #15184
* Menu: Close menus immediately on selection or click outsideScott González2017-04-252-3/+5
| | | | | Fixes #15034 Closes gh-1807
* Widget: Handle `Object.create(null)` for options objectsScott González2017-04-242-2/+8
| | | | | Fixes #15179 Closes gh-1809
* Widget: Improve `remove` event bindings for `classes` optionsScott González2017-04-191-5/+21
| | | | | | | | | Fixes #15078 Fixes #15082 Fixes #15095 Fixes #15136 Fixes #15152 Closes gh-1769
* Resizable: Keep user-provided handles on destroyKonstantin Dinev2017-04-172-4/+11
| | | | | Closes gh-1798 Ref gh-1795
* Slider: Use `cursor: pointer` on handlesScott González2017-04-121-1/+1
| | | | | Fixes #9371 Closes gh-1800
* Datepicker: Corrections for Swedish localizationAlbert Johansson2017-03-011-7/+7
| | | | | | | | Months and weekdays should be in small caps in Swedish. https://sv.wikipedia.org/wiki/Versalisering Fixes #15142 Closes gh-1799
* Widget: Don't swallow errors in `remove` eventsScott González2017-02-281-9/+5
| | | | | | | The try/catch was only there to support jQuery <1.6.3, which we no longer support. Ref jquery/jquery#3554
* Resizable: Keep user defined handles on _setOptionKonstantin Dinev2017-02-242-10/+26
| | | | | Fixes #15084 Closes gh-1795
* Spinner: Ignore `mousewheel` events when not focusedScott González2017-02-212-10/+30
| | | | | Fixes #15139 Closes gh-1794
* Build: Add missing semicolonScott González2017-02-061-1/+1
|