Commit Graph

7135 Commits

Author SHA1 Message Date
claudi
17404ced47 Datepicker: Fix prev/next button behavior with showCurrentAtPos
Fixes #15102
Closes gh-1784
2017-01-25 11:14:57 -05:00
Ryan Oriecuia
573e7e69c9 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
2017-01-25 10:57:34 -05:00
Luke Brookhart
4b9f32486c Effect: Fix typo
Closes gh-1778
2016-12-16 19:55:44 -05:00
Jo Liss
cc37fe76aa Themes: Optimize PNG files with zopflipng
Closes gh-1772
2016-11-29 09:42:36 -05:00
Scott González
a2b25ef6ca Selectmenu: Don't render options with the hidden attribute
Fixes #15098
2016-11-16 12:52:15 -05:00
pallxk
9a4c057157 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
2016-11-16 12:12:22 -05:00
Petri Partio
d85c68f6cd Theme: Optimize images
Closes gh-1763
2016-11-02 12:54:57 -04:00
Michał Gołębiowski
017bb979f6 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
2016-11-02 12:53:30 -04:00
Michał Gołębiowski
4673c8808b Build: Add jQuery 3.1.1
Closes gh-1766
2016-11-02 12:52:22 -04:00
Michał Gołębiowski
622a129a4d 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
2016-11-02 12:51:23 -04:00
Kyle Rosenberg
863a49f95b Spinner: Fix typo
Closes gh-1764
2016-11-02 12:48:00 -04:00
Jeremy Mickelson
9c5ce4c3e9 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
2016-10-19 14:46:47 -04:00
Scott González
f1fa076f62 Tabs: Don't blur focused tab on sort
Fixes #14627
Closes gh-1761
2016-10-12 13:14:28 -04:00
Scott González
0627eb3645 Form: Rename from .form() to ._form() since its not for public use
Fixes #15074
Closes gh-1760
2016-10-11 10:15:04 -04:00
Kevin Cupp
87eab46a58 Sortable: Setting table row placeholder height to be same as sorted row
Fixes #13662
Closes gh-1578
2016-10-04 15:22:14 -04:00
Alexander Schmitz
b9d687deb5 Checkboxradio: Don't add ui-state-hover to icons
Fixes #15055
Closes gh-1756
2016-10-04 11:33:17 -04:00
Alexander Schmitz
1b0e947f46 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
2016-10-04 11:29:17 -04:00
Alexander Schmitz
dde9b83df6 Theme: Replace missing definition for default icons
Fixes jquery/download.jqueryui.com#335
2016-10-04 11:29:17 -04:00
Alexander Schmitz
265b8f5e53 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
2016-10-04 11:29:17 -04:00
Simon Asika
1294343847 Datepicker: Correct Traditional Chinese translation
Fixes #15060
Closes gh-1754
2016-10-04 11:16:44 -04:00
Robin
1d409528a1 Sortable: Fix parent offset detection
Fixes #15021
Closes gh-1749
2016-10-04 11:05:01 -04:00
Evelyn Masso
fd30534b73 Droppable: Use $.ui.intersect()
Fixes #14963
2016-10-03 09:16:41 -04:00
milk54
b9ffc34710 Tabs: Remove presentation role
Fixes #10122
Closes gh-1748
2016-09-29 10:15:19 -04:00
Sergei Ratnikov
c481400f22 Resizable: Fix aspectRatio cannot be changed after initialization.
Fixes #4186
Closes gh-1750
2016-09-28 11:55:13 -04:00
Scott González
c218bee80d Build: Fix list of source files
Fixes #15052
Closes gh-1751
2016-09-27 08:41:33 -04:00
Scott González
69e66ea655 Autocomplete: Escape HTML tags in callback name to avoid XSS in demo
Fixes #15048
2016-09-22 07:53:22 -04:00
Scott González
c571d2f234 Build: Updating the master version to 1.12.2-pre. 2016-09-14 12:34:40 -04:00
Scott González
90d9fee6e3 Build: Update authors list 2016-09-14 12:29:20 -04:00
Scott González
19027bb085 Sortable: Use an event object for simulated mouseup in cancel()
Regression caused by a1d69208ba

Fixes #15042
Closes gh-1746
2016-09-14 12:06:33 -04:00
Alexander Schmitz
391d45ea6c Theme: Fix icon default color when not within a button
Fixes jquery/jqueryui.com#159
Closes gh-1745
2016-09-14 07:56:53 -04:00
Alexander Schmitz
89af4c292e Widget: Untrack classes elements when they are removed from the DOM
Fixes #15043
Closes gh-1744
2016-09-13 15:11:34 -04:00
Scott González
7b7b9b6d86 Release: Remove externals directory from CDN zip
Closes gh-1741
2016-09-13 09:09:36 -04:00
Ryan Oriecuia
8c66934434 Draggable: Fix spurious blur in dialogs on mousedown
I was running into a problem with a popup menu control in a dialog; clicks
weren't working (but keyboard was working fine). It turned out that the menu
was getting destroyed before the click event could fire.

Tracked down the issue to the way draggable blurs focused controls; it was
doing the blur before it ran through the logic to figure out if the drag was
actually on the handle. I've moved the blur below these checks, so it'll only
blur things if it actually needs to handle the drag. Otherwise, it asserts no
opinion on what should and shouldn't be focused, which seems like the way
things ought to be.

Also, added a unit test to check for the expected behavior.

Fixes #15046
Closes gh-1730
2016-09-13 08:53:00 -04:00
Scott González
51461d5238 Slider: Add demo for custom handle
Fixes #15023
Closes gh-1740
2016-09-13 08:41:33 -04:00
Scott González
57bff499de Build: Update authors list 2016-09-07 10:11:36 -04:00
Scott González
fd81307dd9 Autocomplete: Remove unreachable code in remote demo 2016-09-01 15:56:29 -04:00
Scott González
930934f4d2 Autocomplete: Change JSONP demo to use local data source
Fixes #14974
2016-09-01 15:55:25 -04:00
Scott González
586d572ad2 Position: Remove fractional pixel detection
Hooray for newer browsers.

Closes gh-1739
2016-08-31 17:00:19 -04:00
Scott González
3606e1c33a Controlgroup: Don't use String.prototype.trim()
We still support IE 8, which doesn't have this method.
2016-08-31 16:29:56 -04:00
Scott González
4e39014803 Dialog: Fix code style 2016-08-31 11:22:54 -04:00
Scott González
d2ce363200 Dialog: Allow for subpixel calculation errors in tests
Tests were failing in IE 10-11 with values that were off by 0.01 pixels.

Closes gh-1737
2016-08-31 11:01:39 -04:00
Scott González
398bd8dd36 Tabs: Strip hash from remote content URLs
As of jQuery 3.0.0, hashes are no longer stripped for Ajax requests. This
causes issues in IE <11, so we need to strip this before making the request.

Ref jquery/jquery#1732
Closes gh-1736
2016-08-31 07:45:09 -04:00
Scott González
3a45a47968 Effects: Adjust animation duration in tests
With jQuery 3 using `requestAnimationFrame()`, the `setTimeout()` timing
for short animations wasn't working consistently. This resulted in infrequent
failures everywhere (but infrequent enough that it's hard to even notice), but
consistent failures in IE and Edge. Bumping up the duration and running the
assertions in the middle seems to give consistent results.

Eventually, we should refactor this to use `requestAnimationFrame()` in the
tests themselves to avoid problems like this.

Closes gh-1738
2016-08-30 16:37:24 -04:00
Ville Skyttä
d7ea031bd3 Demos: Optimize *.png with zopflipng
zopflipng -m, version 1.0.1.

Closes gh-1726
2016-08-24 12:01:45 -04:00
Felix Nagel
ac9ca9e52c Menu: Support number pad keyboard input
Fixes #15031
Closes gh-1732
2016-08-24 11:56:26 -04:00
Scott González
1148aefd59 CONTRIBUTING: Replace grunt commands with npm
Closes gh-1733
2016-08-24 11:55:53 -04:00
Johannes Schäfer
f25f9ec72d Build: Update bower.json with license information
Closes gh-1731
2016-08-18 09:37:14 -04:00
Scott González
3dd8a09b44 Widget: instance() should return undefined for empty sets
Fixes #15019
2016-08-04 09:04:49 -04:00
Alexander Schmitz
57537d09a4 Checkboxradio: Adjust rule order to avoid specificty issues with other icons
Fixes #15003
Closes gh-1725
2016-07-27 10:16:04 -04:00
Scott González
6c754b4b5b Dialog: Support deprecated button options
Fixes #15016
Closes gh-1723
2016-07-25 08:38:51 -04:00