]> source.dussan.org Git - jquery-ui.git/log
jquery-ui.git
3 years agoDatepicker: Make sure altField is treated as a CSS selector
Michał Gołębiowski-Owczarek [Tue, 4 May 2021 11:30:06 +0000 (13:30 +0200)]
Datepicker: Make sure altField is treated as a CSS selector

Closes gh-1954

3 years agoTests: Accept delayed focusout in IE with jQuery 1.8
Michał Gołębiowski-Owczarek [Fri, 16 Apr 2021 21:33:57 +0000 (23:33 +0200)]
Tests: Accept delayed focusout in IE with jQuery 1.8

In IE with jQuery 1.8 focusout may not happen immediately so some checks
need to be done later.

Closes gh-1952

3 years agoTests: Fix the "dialog: core: focus tabbable" test in IE
Michał Gołębiowski-Owczarek [Tue, 16 Mar 2021 21:17:25 +0000 (22:17 +0100)]
Tests: Fix the "dialog: core: focus tabbable" test in IE

In IE in jQuery 3.4+ a sequence:
```js
$( inputNode ).trigger( "focus" ).trigger( "blur" ).trigger( "focus" );
```
doesn't end up with a focused input. However, in this test we only want to check
that the last focused input receives the focus back when `_focusTabbable()` is
called which in reality doesn't happen so quickly so let's avoid the issue by
waiting a bit.

Ref jquery/jquery#4856
Closes gh-1951

3 years agoBuild: Fix the new htmllint error regex
Michał Gołębiowski-Owczarek [Wed, 10 Mar 2021 10:50:52 +0000 (11:50 +0100)]
Build: Fix the new htmllint error regex

Some bad pages are being detected as Catalan randomly which makes the build
fail. This is reproducible both locally & on Travis. PR gh-1949 added a new
regex to account for this error but it didn't escape parens properly so it's
not matching the problematic error message.

Ref gh-1949
Closes gh-1950

3 years agoTests: Make some number comparisons less strict
Michał Gołębiowski-Owczarek [Mon, 8 Mar 2021 23:11:40 +0000 (00:11 +0100)]
Tests: Make some number comparisons less strict

Some of the APIs return fractional values in newer jQueries, making comparisons
sometimes not being 100% accurate. Allow some delta.

This is similar to what was already done in
98b539171b6e805fa79346a5e9896865e5213b9c but a few cases affecting IE and/or
Edge Legacy were missed.

Closes gh-1947

3 years agoBuild: Add a new htmllint error regex
Michał Gołębiowski-Owczarek [Mon, 8 Mar 2021 23:10:38 +0000 (00:10 +0100)]
Build: Add a new htmllint error regex

Some bad pages are being detected as Catalan randomly which makes the build
fail. This is reproducible both locally & on Travis. This commit adds a new
regex to account for this error.

Closes gh-1949

3 years agoBuild: Add jQuery 3.6.0, update Migrate from 3.3.1 to 3.3.2
Michał Gołębiowski-Owczarek [Mon, 8 Mar 2021 23:09:51 +0000 (00:09 +0100)]
Build: Add jQuery 3.6.0, update Migrate from 3.3.1 to 3.3.2

Closes gh-1948

3 years agoDialog: Workaround broken focus re-triggering in jQuery 3.4/3.5
Michał Gołębiowski-Owczarek [Sun, 21 Feb 2021 23:02:02 +0000 (00:02 +0100)]
Dialog: Workaround broken focus re-triggering in jQuery 3.4/3.5

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

3 years agoTests: Account for an extra noop focus/blur listener in jQuery >=3.4
Michał Gołębiowski-Owczarek [Sat, 20 Feb 2021 18:11:03 +0000 (19:11 +0100)]
Tests: Account for an extra noop focus/blur listener in jQuery >=3.4

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. This leaves extra focus & blur events if any of these events were ever
listened to at a particular element.

We've started skipping these handlers in the `domEqual` assertion in gh-1930 but
we missed a case where an event is triggered before any handler is attached -
jQuery >=3.4.0 attaches then an extra noop listener just to force the code path
to go through the setup code before the trigger happens. We now skip this extra
handler as well.

This fixes a test failure in "dialog: methods" destroy tests.

Closes gh-1945
Ref jquery/jquery#4496
Ref gh-1930

3 years agoBuild: Rename the primary branch `master` to `main`
Michał Gołębiowski-Owczarek [Fri, 19 Feb 2021 19:57:54 +0000 (20:57 +0100)]
Build: Rename the primary branch `master` to `main`

Closes gh-1944

4 years agoBuild: Update grunt-contrib-qunit version from 1.0.1 to 4.0.0
sakshi87 [Wed, 21 Oct 2020 21:43:26 +0000 (03:13 +0530)]
Build: Update grunt-contrib-qunit version from 1.0.1 to 4.0.0

Closes gh-1894

4 years agoCore: Resolve csslint issues with the IE filter property
Michał Gołębiowski-Owczarek [Thu, 15 Oct 2020 12:33:51 +0000 (14:33 +0200)]
Core: Resolve csslint issues with the IE filter property

IE filter property violates standard CSS parsing rules. Because of that, IE 8
added `-ms-filter` which accepts the same values but quoted:
https://web.archive.org/web/20101112132308/http://blogs.msdn.com/b/ie/archive/2008/09/08/microsoft-css-vendor-extensions.aspx
Both `filter` & `-ms-filter` serialize to the same `filter` property in
`currentStyle`.

This commit switches to that new property to resolve csslint issues.

Closes gh-1939

4 years agoBuild: Update to the latest version of Grunt & many other packages
Micah Miller [Wed, 14 Oct 2020 21:54:09 +0000 (17:54 -0400)]
Build: Update to the latest version of Grunt & many other packages

JSHint, JSCS & QUnit-related packages are not updated as they need more code
adjustments.

Fixes #15112
Closes gh-1882

4 years agoFocusable: Fix handling of `visibility: collapse`
Paul Capron [Wed, 14 Oct 2020 21:53:11 +0000 (23:53 +0200)]
Focusable: Fix handling of `visibility: collapse`

"collapse" is similar to "hidden", with a slight difference in the case
of tr/tbody/td/colgroup elements.
See https://www.w3.org/TR/CSS22/visufx.html#visibility
See https://www.w3.org/TR/CSS22/tables.html#dynamic-effects
See https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#Table_example

"visibility: collapse" elements are always not focusable, though.

Commit d3025968f34 introduced a regression by testing with `!== "hidden"`
instead of `=== "visible"`.

Closes gh-1843

4 years agoTravis: Use Node 10, remove obsolete properties
Michał Gołębiowski-Owczarek [Wed, 14 Oct 2020 21:45:19 +0000 (23:45 +0200)]
Travis: Use Node 10, remove obsolete properties

Also, migrate to a Java build as we need JDK 8 and it's easier to
install a specific Node.js version in a Java image than vice-versa.

Closes gh-1938

4 years agoWidget: Fix boolean option when under use strict
Hrvoje Novosel [Wed, 15 Jul 2020 14:10:20 +0000 (16:10 +0200)]
Widget: Fix boolean option when under use strict

Fix for `options === true` when using jQuery UI under `use strict`,
which throws:
```
Uncaught TypeError: Cannot create property 'complete' on boolean 'true'
```
on line:
```js
options.complete = callback;
```

Closes gh-1931

4 years agoBuild: Allow to specify browser sets to TestSwarm tasks
Michał Gołębiowski-Owczarek [Fri, 25 Sep 2020 07:40:33 +0000 (09:40 +0200)]
Build: Allow to specify browser sets to TestSwarm tasks

This will make it easier to e.g. now exclude Edge Legacy when testing against
jQuery 4.x.

Closes gh-1936

4 years agoResizable: Fix CSP violation (style unsafe-inline)
Jérémy Munsch [Fri, 19 Jun 2020 06:45:00 +0000 (08:45 +0200)]
Resizable: Fix CSP violation (style unsafe-inline)

4 years agoPackage: Remove Scott González from maintainers
Felix Nagel [Thu, 23 Jul 2020 20:44:03 +0000 (22:44 +0200)]
Package: Remove Scott González from maintainers

4 years agoTheme: Don't load the image sprite for 'ui-icon-blank'
Felix Nagel [Thu, 23 Jul 2020 20:43:06 +0000 (22:43 +0200)]
Theme: Don't load the image sprite for 'ui-icon-blank'

4 years agoTests: Update jQuery Migrate from 3.3.0 to 3.3.1
Michał Gołębiowski-Owczarek [Mon, 27 Jul 2020 19:03:48 +0000 (21:03 +0200)]
Tests: Update jQuery Migrate from 3.3.0 to 3.3.1

That upgrade makes UI pass the whole test suite without a single jQuery Migrate
warning. 🎉

Closes gh-1932

4 years agoExternal: Add .npmignore file
Szabolcs Szabolcsi-Toth [Fri, 24 Jul 2020 20:08:07 +0000 (22:08 +0200)]
External: Add .npmignore file

4 years agoAll: Remove a leftover empty file
Michał Gołębiowski-Owczarek [Fri, 24 Jul 2020 11:23:23 +0000 (13:23 +0200)]
All: Remove a leftover empty file

Closes gh-1933

4 years agoMenu: Account for scrollbars in jQuery 3.2
Michał Gołębiowski-Owczarek [Thu, 23 Jul 2020 13:55:18 +0000 (15:55 +0200)]
Menu: Account for scrollbars in jQuery 3.2

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

4 years agoTests: Account for extra focus/blur listeners in jQuery >=3.4
Michał Gołębiowski-Owczarek [Thu, 23 Jul 2020 13:54:16 +0000 (15:54 +0200)]
Tests: Account for extra focus/blur listeners in jQuery >=3.4

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>
4 years agoTests: Accept a small difference of animated width/height
Michał Gołębiowski-Owczarek [Thu, 23 Jul 2020 13:53:36 +0000 (15:53 +0200)]
Tests: Accept a small difference of animated width/height

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

4 years agoTests: Skip a scrollbar test in jQuery 3.2
Michał Gołębiowski-Owczarek [Thu, 23 Jul 2020 13:51:15 +0000 (15:51 +0200)]
Tests: Skip a scrollbar test in jQuery 3.2

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

4 years agoTests: Clear the timers queue in an animateClass test
Michał Gołębiowski-Owczarek [Thu, 23 Jul 2020 13:49:27 +0000 (15:49 +0200)]
Tests: Clear the timers queue in an animateClass test

jQueries older than 1.11 or 2.1 were leaving a timer in the queue which could
then influence other tests.

Closes gh-1926

4 years agoAll: Drop support for jQuery 1.7
Michał Gołębiowski-Owczarek [Wed, 22 Jul 2020 14:04:47 +0000 (16:04 +0200)]
All: Drop support for jQuery 1.7

Closes gh-1923

4 years agoBuild: Update the version from 1.12.2-pre to 1.13.0-pre
Michał Gołębiowski-Owczarek [Wed, 22 Jul 2020 14:03:52 +0000 (16:03 +0200)]
Build: Update the version from 1.12.2-pre to 1.13.0-pre

Closes gh-1921

4 years agoTests: Ensure no timers are running at the end of each test (#1920)
Michał Gołębiowski-Owczarek [Sat, 16 May 2020 07:16:24 +0000 (09:16 +0200)]
Tests: Ensure no timers are running at the end of each test (#1920)

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

4 years agoAll: Resolve most jQuery Migrate warnings
Michał Gołębiowski-Owczarek [Sat, 16 May 2020 06:36:55 +0000 (08:36 +0200)]
All: Resolve most jQuery Migrate warnings

Closes gh-1919

4 years agoTests: Load jQuery Migrate before UI test files
Michał Gołębiowski-Owczarek [Sat, 16 May 2020 06:30:11 +0000 (08:30 +0200)]
Tests: Load jQuery Migrate before UI test files

This is necessary to catch all possible warnings that the test files
may trigger.

Closes gh-1918

4 years agoBuild: Rename jquery-1-7 to jquery-patch
Michał Gołębiowski-Owczarek [Sat, 16 May 2020 06:29:08 +0000 (08:29 +0200)]
Build: Rename jquery-1-7 to jquery-patch

The file now contains many more than just jQuery 1.7 patches.

Closes gh-1917

4 years agoTests: Solve a frequent race condition in tests in Chrome/Safari
Michał Gołębiowski-Owczarek [Sat, 16 May 2020 06:28:26 +0000 (08:28 +0200)]
Tests: Solve a frequent race condition in tests in Chrome/Safari

Closes gh-1916

4 years agoBuild: Add jQuery 3.5.0 & 3.5.1
Michał Gołębiowski-Owczarek [Sat, 16 May 2020 06:27:27 +0000 (08:27 +0200)]
Build: Add jQuery 3.5.0 & 3.5.1

Closes gh-1915

4 years agoBuild: Update jQuery Simulate, jQuery Migrate & jQuery Color
Michał Gołębiowski-Owczarek [Sat, 16 May 2020 06:26:48 +0000 (08:26 +0200)]
Build: Update jQuery Simulate, jQuery Migrate & jQuery Color

The jQuery Simulate & jQuery Color updates are needed for compatibility
with jQuery master, a future jQuery 4.

Closes gh-1914

4 years agoDatepicker: Fix Hungarian localization to use uppercase for first characters
Fatér Zsolt [Wed, 18 Dec 2019 10:06:23 +0000 (11:06 +0100)]
Datepicker: Fix Hungarian localization to use uppercase for first characters

4 years agoDatepicker: Add German localization
Florian Wegscheider [Fri, 17 Jan 2020 07:09:37 +0000 (08:09 +0100)]
Datepicker: Add German localization

4 years agoDatepicker: Fixed current instance memory leak and added unit testcases
jigar gala [Wed, 31 Jan 2018 19:45:58 +0000 (01:15 +0530)]
Datepicker: Fixed current instance memory leak and added unit testcases

4 years agoAll: Remove usage of jQuery positional selectors
Michał Gołębiowski-Owczarek [Wed, 22 Jan 2020 15:44:34 +0000 (16:44 +0100)]
All: Remove usage of jQuery positional selectors

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

4 years agoTests: Add the 3.x-git jQuery version to the dropdown
Michał Gołębiowski-Owczarek [Mon, 30 Dec 2019 22:56:30 +0000 (23:56 +0100)]
Tests: Add the 3.x-git jQuery version to the dropdown

Closes gh-1905

4 years agoSortable: Remove reference to .disableSelection() from demos
Gez Quinn [Mon, 9 Dec 2019 20:13:03 +0000 (20:13 +0000)]
Sortable: Remove reference to .disableSelection() from demos

`.disableSelection()` was deprecated in v1.9:
http://api.jqueryui.com/disableSelection/

Closes gh-1856

4 years agoDatepicker: Fix typo in currentText in da localization
OskarNS [Mon, 9 Dec 2019 20:11:13 +0000 (21:11 +0100)]
Datepicker: Fix typo in currentText in da localization

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

4 years agoBuild: Add my new name to .mailmap, update it in AUTHORS.txt
Michał Gołębiowski-Owczarek [Sun, 8 Dec 2019 21:36:04 +0000 (22:36 +0100)]
Build: Add my new name to .mailmap, update it in AUTHORS.txt

Closes gh-1837

4 years agoAll: Use expr.pseudos instead of deprecated expr.filters
Maksymenkov Eugene [Sun, 8 Dec 2019 21:27:16 +0000 (23:27 +0200)]
All: Use expr.pseudos instead of deprecated expr.filters

See:
https://github.com/jquery/jquery-migrate/blob/master/warnings.md#jqmigrate-jqueryexprfilters-is-deprecated-use-jqueryexprpseudos

Closes gh-1887

4 years agoAll: Migrate away from deprecated/removed Core APIs
Michał Gołębiowski-Owczarek [Sun, 8 Dec 2019 21:23:08 +0000 (22:23 +0100)]
All: Migrate away from deprecated/removed Core APIs

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

7 years agoTests: Load `jquery-1-7` before other modules 1854/head
Scott González [Wed, 31 May 2017 18:09:05 +0000 (14:09 -0400)]
Tests: Load `jquery-1-7` before other modules

7 years agoDatepicker: Fix first day of week for pt-PT locale
Horus68 [Wed, 31 May 2017 14:53:30 +0000 (15:53 +0100)]
Datepicker: Fix first day of week for pt-PT locale

Fixes #15195
Closes gh-1820

7 years agoDialog: Fix shared event handler for modal dialogs
Scott González [Thu, 11 May 2017 17:58:08 +0000 (13:58 -0400)]
Dialog: Fix shared event handler for modal dialogs

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

7 years agoAll: Remove uses of `jQuery.proxy()`
Scott González [Mon, 8 May 2017 15:52:58 +0000 (11:52 -0400)]
All: Remove uses of `jQuery.proxy()`

Ref #15160
Closes gh-1813

7 years agoAll: Remove uses of `jQuery.camelCase()`
Scott González [Mon, 8 May 2017 14:47:27 +0000 (10:47 -0400)]
All: Remove uses of `jQuery.camelCase()`

Ref #15160
Ref gh-1813

7 years agoTests: Load `jquery-1-7` module for jQuery 2.x as well
Scott González [Mon, 15 May 2017 22:24:19 +0000 (18:24 -0400)]
Tests: Load `jquery-1-7` module for jQuery 2.x as well

7 years agoDemos: Fix a typo with an extra semicolon
Robert Brignull [Sun, 7 May 2017 20:30:16 +0000 (21:30 +0100)]
Demos: Fix a typo with an extra semicolon

Closes gh-1812

7 years agoTests: Load the `jquery-1-7` module for all 1.x versions
Scott González [Wed, 10 May 2017 13:02:53 +0000 (09:02 -0400)]
Tests: Load the `jquery-1-7` module for all 1.x versions

7 years agoPosition: Increase scrollbar test div to handle larger scrollbars
Scott González [Wed, 3 May 2017 17:12:34 +0000 (13:12 -0400)]
Position: Increase scrollbar test div to handle larger scrollbars

Fixes #15106
Closes gh-1811

7 years agoCore: Fix JQMIGRATE warning about `jQuery.expr[":"]`
Eirik Sletteberg [Fri, 2 Dec 2016 13:41:30 +0000 (14:41 +0100)]
Core: Fix JQMIGRATE warning about `jQuery.expr[":"]`

This commit polyfills `jQuery.expr.pseudos` for old versions of jQuery.

Fixes #15185
Closes gh-1773

7 years agoMenu: Ignore mouse events triggered due to page scrolling
Scott González [Tue, 18 Apr 2017 20:51:23 +0000 (16:51 -0400)]
Menu: Ignore mouse events triggered due to page scrolling

Fixes #9356
Closes gh-1806

7 years agoMenu: Handle mouse movement mixed with keyboard navigation
Scott González [Tue, 18 Apr 2017 17:57:23 +0000 (13:57 -0400)]
Menu: Handle mouse movement mixed with keyboard navigation

Fixes #9357
Closes gh-1805

7 years agoMenu: Don't focus dividers when wrapping via keyboard navigation
Scott González [Mon, 17 Apr 2017 16:26:22 +0000 (12:26 -0400)]
Menu: Don't focus dividers when wrapping via keyboard navigation

Fixes #15157
Closes gh-1804

7 years agoButton: Fix backcompat when called on collection of mixed elements
Alexander Schmitz [Wed, 19 Apr 2017 15:32:13 +0000 (11:32 -0400)]
Button: Fix backcompat when called on collection of mixed elements

Fixes #15109
Closes gh-1808

7 years agoSortable: Fix various scrolling issues
A. Wells [Thu, 16 Feb 2017 18:48:45 +0000 (13:48 -0500)]
Sortable: Fix various scrolling issues

* 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

7 years agoLabels: Handle empty sets
Scott González [Tue, 2 May 2017 16:42:49 +0000 (12:42 -0400)]
Labels: Handle empty sets

Fixes #15184

7 years agoMenu: Close menus immediately on selection or click outside
Scott González [Tue, 18 Apr 2017 21:37:15 +0000 (17:37 -0400)]
Menu: Close menus immediately on selection or click outside

Fixes #15034
Closes gh-1807

7 years agoWidget: Handle `Object.create(null)` for options objects
Scott González [Fri, 21 Apr 2017 18:49:52 +0000 (14:49 -0400)]
Widget: Handle `Object.create(null)` for options objects

Fixes #15179
Closes gh-1809

7 years agoWidget: Improve `remove` event bindings for `classes` options
Scott González [Wed, 16 Nov 2016 19:42:34 +0000 (14:42 -0500)]
Widget: Improve `remove` event bindings for `classes` options

Fixes #15078
Fixes #15082
Fixes #15095
Fixes #15136
Fixes #15152
Closes gh-1769

7 years agoResizable: Keep user-provided handles on destroy
Konstantin Dinev [Tue, 28 Feb 2017 16:21:46 +0000 (18:21 +0200)]
Resizable: Keep user-provided handles on destroy

Closes gh-1798
Ref gh-1795

7 years agoSlider: Use `cursor: pointer` on handles
Scott González [Thu, 9 Mar 2017 17:17:06 +0000 (12:17 -0500)]
Slider: Use `cursor: pointer` on handles

Fixes #9371
Closes gh-1800

7 years agoDatepicker: Corrections for Swedish localization
Albert Johansson [Wed, 1 Mar 2017 10:22:01 +0000 (11:22 +0100)]
Datepicker: Corrections for Swedish localization

Months and weekdays should be in small caps in Swedish.
https://sv.wikipedia.org/wiki/Versalisering

Fixes #15142
Closes gh-1799

7 years agoWidget: Don't swallow errors in `remove` events
Scott González [Tue, 28 Feb 2017 14:51:59 +0000 (09:51 -0500)]
Widget: Don't swallow errors in `remove` events

The try/catch was only there to support jQuery <1.6.3, which we no
longer support.

Ref jquery/jquery#3554

7 years agoResizable: Keep user defined handles on _setOption
Konstantin Dinev [Fri, 24 Feb 2017 15:36:19 +0000 (17:36 +0200)]
Resizable: Keep user defined handles on _setOption

Fixes #15084
Closes gh-1795

7 years agoSpinner: Ignore `mousewheel` events when not focused
Scott González [Sun, 19 Feb 2017 15:52:27 +0000 (10:52 -0500)]
Spinner: Ignore `mousewheel` events when not focused

Fixes #15139
Closes gh-1794

7 years agoBuild: Add missing semicolon
Scott González [Mon, 6 Feb 2017 15:20:50 +0000 (10:20 -0500)]
Build: Add missing semicolon

7 years agoQunit: Add bootstrap config for running tests with jQuery Migrate
Eirik Sletteberg [Sun, 4 Dec 2016 20:57:28 +0000 (21:57 +0100)]
Qunit: Add bootstrap config for running tests with jQuery Migrate

Closes gh-1774

7 years agoBuild: Add jQuery as explicit dependency, with min and max range
Jörn Zaefferer [Wed, 25 Jan 2017 18:28:37 +0000 (19:28 +0100)]
Build: Add jQuery as explicit dependency, with min and max range

1.7.0 is our minimum supported version, 3.x.x our maximum.

Closes gh-1779
Closes gh-1790

7 years agoDatepicker: Fix prev/next button behavior with `showCurrentAtPos`
claudi [Thu, 12 Jan 2017 09:23:27 +0000 (10:23 +0100)]
Datepicker: Fix prev/next button behavior with `showCurrentAtPos`

Fixes #15102
Closes gh-1784

7 years agoAutocomplete: Fix IE/Edge scrolling issues
Ryan Oriecuia [Thu, 12 Jan 2017 19:16:20 +0000 (11:16 -0800)]
Autocomplete: Fix IE/Edge scrolling issues

IE11 and scrolling autocompletes didn't get along great; this should help fix
their relationship.

When you click on an autocomplete scrollbar in IE11, the menu temporarily
gains focus, which caused a couple problems.

1. Depending on how long you clicked, the dropdown could close.

2. Scrolling down by clicking the scrollbar's down arrow would misbehave. The
list would pop back up to the top with the first item selected.

We can fix both problems by modifying the focus/blur handling a bit.

1. There is a flag to instruct the control to ignore blurs, but it was getting
cleared too quickly; when the code refocused the input after it was blurred,
IE would send *another* blur event, which wasn't getting ignored and would
close the dropdown. We now wait for the focus/blur pair to process before
clearing the flag.

2. We remove the tabindex from the dropdown menu, which prevents menu's focus
handler from firing. When you focus a menu, it will select the first menu item
if none are selected. Selecting a menu item will scroll it into view if it's
not visible. This combination of behaviors was causing the strange behavior
when attempting to scroll down.

I couldn't figure out a way to write a unit test for this, since it's IE only
and seems to require user interaction. You can verify the previous behavior
(and the fix) on `demos/autocomplete/maxheight.html`

Fixes #9638
Closes gh-1785

7 years agoEffect: Fix typo
Luke Brookhart [Thu, 15 Dec 2016 16:27:39 +0000 (11:27 -0500)]
Effect: Fix typo

Closes gh-1778

7 years agoThemes: Optimize PNG files with zopflipng
Jo Liss [Tue, 29 Nov 2016 12:47:48 +0000 (12:47 +0000)]
Themes: Optimize PNG files with zopflipng

Closes gh-1772

8 years agoSelectmenu: Don't render options with the `hidden` attribute
Scott González [Wed, 16 Nov 2016 17:52:15 +0000 (12:52 -0500)]
Selectmenu: Don't render options with the `hidden` attribute

Fixes #15098

8 years agoTooltip: Clear interval for delayed tracking tooltips on remove
pallxk [Sat, 12 Nov 2016 07:26:47 +0000 (15:26 +0800)]
Tooltip: Clear interval for delayed tracking tooltips on remove

This is needed in the case that the tooltip is removed before it gets shown.

Fixes #15099
Closes gh-1768

8 years agoTheme: Optimize images
Petri Partio [Fri, 21 Oct 2016 20:49:44 +0000 (23:49 +0300)]
Theme: Optimize images

Closes gh-1763

8 years agoBuild: Stop using the jquery-ui-future browser set
Michał Gołębiowski [Mon, 31 Oct 2016 16:29:15 +0000 (17:29 +0100)]
Build: Stop using the jquery-ui-future browser set

jQuery UI now doesn't support browsers not suspported by latest jQuery
so separating the browser sets no longer makes sense.

Closes gh-1765

8 years agoBuild: Add jQuery 3.1.1
Michał Gołębiowski [Mon, 31 Oct 2016 16:29:59 +0000 (17:29 +0100)]
Build: Add jQuery 3.1.1

Closes gh-1766

8 years agoBuild: Run Travis tests on Node.js 6, not 0.12
Michał Gołębiowski [Mon, 31 Oct 2016 19:14:10 +0000 (20:14 +0100)]
Build: Run Travis tests on Node.js 6, not 0.12

Node.js 0.12 loses upstream support at the end of 2016, while Node 6 is in the
Active support phase until 2018-04-18 and will receive security fixes until
2019-04-18.

Closes gh-1767

8 years agoSpinner: Fix typo
Kyle Rosenberg [Wed, 26 Oct 2016 14:12:12 +0000 (09:12 -0500)]
Spinner: Fix typo

Closes gh-1764

8 years agoSortable: Fix `z-index` switching from `auto` to `0`
Jeremy Mickelson [Thu, 13 Oct 2016 17:48:19 +0000 (11:48 -0600)]
Sortable: Fix `z-index` switching from `auto` to `0`

Save `z-index` before saving `opacity`. Setting `opacity` automatically
changes `z-index`.

Fixes #14683
Closes gh-1762

8 years agoTabs: Don't blur focused tab on sort
Scott González [Wed, 12 Oct 2016 16:21:01 +0000 (12:21 -0400)]
Tabs: Don't blur focused tab on sort

Fixes #14627
Closes gh-1761

8 years agoForm: Rename from `.form()` to `._form()` since its not for public use
Scott González [Tue, 11 Oct 2016 13:59:32 +0000 (09:59 -0400)]
Form: Rename from `.form()` to `._form()` since its not for public use

Fixes #15074
Closes gh-1760

8 years agoSortable: Setting table row placeholder height to be same as sorted row
Kevin Cupp [Thu, 16 Jul 2015 01:10:19 +0000 (21:10 -0400)]
Sortable: Setting table row placeholder height to be same as sorted row

Fixes #13662
Closes gh-1578

8 years agoCheckboxradio: Don't add ui-state-hover to icons
Alexander Schmitz [Fri, 30 Sep 2016 20:43:43 +0000 (16:43 -0400)]
Checkboxradio: Don't add ui-state-hover to icons

Fixes #15055
Closes gh-1756

8 years agoTheme: Removes css for ui-state-checked its not used any more
Alexander Schmitz [Tue, 4 Oct 2016 15:19:49 +0000 (11:19 -0400)]
Theme: Removes css for ui-state-checked its not used any more

Also updates checkbox icon border color to go with background color
Ref jquery/download.jqueryui.com#335
Fixes #15059
Closes gh-1753

8 years agoTheme: Replace missing definition for default icons
Alexander Schmitz [Thu, 29 Sep 2016 01:56:53 +0000 (21:56 -0400)]
Theme: Replace missing definition for default icons

Fixes jquery/download.jqueryui.com#335

8 years agoTheme: Switch icon background to use bgColorContent
Alexander Schmitz [Thu, 29 Sep 2016 01:42:50 +0000 (21:42 -0400)]
Theme: Switch icon background to use bgColorContent

It's more semanticly correct then fcActive and looks the same or better
on most themes

Fixes jquery/download.jqueryui.com#335

8 years agoDatepicker: Correct Traditional Chinese translation
Simon Asika [Thu, 29 Sep 2016 08:42:17 +0000 (16:42 +0800)]
Datepicker: Correct Traditional Chinese translation

Fixes #15060
Closes gh-1754

8 years agoSortable: Fix parent offset detection
Robin [Fri, 23 Sep 2016 11:40:36 +0000 (12:40 +0100)]
Sortable: Fix parent offset detection

Fixes #15021
Closes gh-1749

8 years agoDroppable: Use `$.ui.intersect()`
Evelyn Masso [Sat, 1 Oct 2016 22:47:36 +0000 (15:47 -0700)]
Droppable: Use `$.ui.intersect()`

Fixes #14963

8 years agoTabs: Remove presentation role
milk54 [Sun, 18 Sep 2016 10:11:41 +0000 (19:11 +0900)]
Tabs: Remove presentation role

Fixes #10122
Closes gh-1748

8 years agoResizable: Fix aspectRatio cannot be changed after initialization.
Sergei Ratnikov [Fri, 23 Sep 2016 15:42:21 +0000 (18:42 +0300)]
Resizable: Fix aspectRatio cannot be changed after initialization.

Fixes #4186
Closes gh-1750

8 years agoBuild: Fix list of source files 1-12-stable
Scott González [Mon, 26 Sep 2016 13:20:29 +0000 (09:20 -0400)]
Build: Fix list of source files

Fixes #15052
Closes gh-1751