Commit Graph

7350 Commits

Author SHA1 Message Date
Felix Nagel
1b885ff768 Merge branch 'master' into datepicker
# Conflicts:
#	ui/i18n/datepicker-pt.js
2017-08-26 13:08:14 +02:00
Scott González
74f8a0ac95 Tests: Load jquery-1-7 before other modules 2017-05-31 14:09:05 -04:00
Horus68
6fdd0e34a7 Datepicker: Fix first day of week for pt-PT locale
Fixes #15195
Closes gh-1820
2017-05-31 11:10:41 -04:00
Scott González
5708046ea1 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
2017-05-17 11:29:09 -04:00
Scott González
809f29efa7 All: Remove uses of jQuery.proxy()
Ref #15160
Closes gh-1813
2017-05-17 11:17:17 -04:00
Scott González
0940cb9bd2 All: Remove uses of jQuery.camelCase()
Ref #15160
Ref gh-1813
2017-05-17 11:17:09 -04:00
Scott González
ae31f2b3b4 Tests: Load jquery-1-7 module for jQuery 2.x as well 2017-05-15 18:24:19 -04:00
Robert Brignull
ceccf507be Demos: Fix a typo with an extra semicolon
Closes gh-1812
2017-05-10 12:32:40 -04:00
Scott González
39bbe70b54 Tests: Load the jquery-1-7 module for all 1.x versions 2017-05-10 09:02:53 -04:00
Scott González
efb1fee02b Position: Increase scrollbar test div to handle larger scrollbars
Fixes #15106
Closes gh-1811
2017-05-04 11:00:59 -04:00
Eirik Sletteberg
0b7246b6ee Core: Fix JQMIGRATE warning about jQuery.expr[":"]
This commit polyfills `jQuery.expr.pseudos` for old versions of jQuery.

Fixes #15185
Closes gh-1773
2017-05-02 15:28:51 -04:00
Scott González
50efd6e1b0 Menu: Ignore mouse events triggered due to page scrolling
Fixes #9356
Closes gh-1806
2017-05-02 15:16:17 -04:00
Scott González
7d992ae29d Menu: Handle mouse movement mixed with keyboard navigation
Fixes #9357
Closes gh-1805
2017-05-02 15:12:47 -04:00
Scott González
a3e953b495 Menu: Don't focus dividers when wrapping via keyboard navigation
Fixes #15157
Closes gh-1804
2017-05-02 15:12:04 -04:00
Alexander Schmitz
abc9e7ce2f Button: Fix backcompat when called on collection of mixed elements
Fixes #15109
Closes gh-1808
2017-05-02 15:11:24 -04:00
A. Wells
c866e45537 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
2017-05-02 13:34:02 -04:00
Scott González
adcf9b6f6e Labels: Handle empty sets
Fixes #15184
2017-05-02 12:42:49 -04:00
Scott González
0d25a36eec Menu: Close menus immediately on selection or click outside
Fixes #15034
Closes gh-1807
2017-04-25 06:33:00 -04:00
Scott González
b3c0a7f71d Widget: Handle Object.create(null) for options objects
Fixes #15179
Closes gh-1809
2017-04-24 12:41:29 -04:00
Scott González
ef2e9bab92 Widget: Improve remove event bindings for classes options
Fixes #15078
Fixes #15082
Fixes #15095
Fixes #15136
Fixes #15152
Closes gh-1769
2017-04-19 12:53:53 -04:00
Konstantin Dinev
c426b9a203 Resizable: Keep user-provided handles on destroy
Closes gh-1798
Ref gh-1795
2017-04-17 14:58:12 -04:00
Felix Nagel
2b611bad90 Calendar: Create helper methods for Date object creation 2017-04-14 11:34:55 +02:00
Felix Nagel
d6de67a70a Calendar: Introduce getter / setter for grid id 2017-04-14 11:32:06 +02:00
Felix Nagel
9bb209cc94 Calendar: Introduce getter / setter for date and viewDate 2017-04-14 11:32:02 +02:00
Felix Nagel
5ee64dd0e0 Calendar: Introduce build methods for year and month title 2017-04-12 22:47:27 +02:00
Felix Nagel
c1cb6e3398 Calendar: Use widget extension to render year and month select 2017-04-12 22:32:48 +02:00
Scott González
c6e2b52d70 Slider: Use cursor: pointer on handles
Fixes #9371
Closes gh-1800
2017-04-12 12:38:28 -04:00
Felix Nagel
7ef7f3ab9e Datepicker tests: Add ARIA tests 2017-03-31 22:11:17 +02:00
Felix Nagel
b09c7e8cee Calendar tests: Add basic ARIA attribute tests 2017-03-31 21:51:08 +02:00
Felix Nagel
27f9f87fa2 Calendar tests: Remove unused and outdated daylight saving tests 2017-03-31 21:33:06 +02:00
Felix Nagel
6d81c03493 Date: Rename and improve timestamp and day getter and setter 2017-03-31 21:31:45 +02:00
Felix Nagel
a31bc8b7ee Date tests: Add basic timestamp tests 2017-03-31 21:30:40 +02:00
Felix Nagel
4267e4283c Merge branch 'master' into datepicker
# Conflicts:
#	ui/i18n/datepicker-sv.js
#	ui/widgets/datepicker.js
2017-03-30 23:18:25 +02:00
Albert Johansson
032ddc3349 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
2017-03-01 13:43:47 -05:00
Scott González
1f2011ece3 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
2017-02-28 09:51:59 -05:00
Konstantin Dinev
278d1e1108 Resizable: Keep user defined handles on _setOption
Fixes #15084
Closes gh-1795
2017-02-24 14:30:58 -05:00
Scott González
a3b9129be1 Spinner: Ignore mousewheel events when not focused
Fixes #15139
Closes gh-1794
2017-02-21 12:45:19 -05:00
Scott González
162377fba2 Build: Add missing semicolon 2017-02-06 10:20:50 -05:00
Eirik Sletteberg
4fa0267edc Qunit: Add bootstrap config for running tests with jQuery Migrate
Closes gh-1774
2017-02-06 08:23:18 -05:00
Jörn Zaefferer
c1f96f11cc 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
2017-01-25 13:53:50 -05:00
Felix Nagel
188550faff Calendar: Make sure option numberOfMonth could be changed after creation 2017-01-25 18:29:45 +01:00
Felix Nagel
00a470b435 Calendar: Remove aria hidden on day cells 2017-01-25 18:29:45 +01:00
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
Felix Nagel
767d173040 Calendar: Introduce refresh callback event 2017-01-21 13:49:36 +01:00
Felix Nagel
8b864309f6 Datepicker: Make select and change event pass the current value 2017-01-21 13:49:35 +01:00
Felix Nagel
de20614bd7 Calendar: Make select and change event pass the current value 2017-01-21 13:49:35 +01:00
Felix Nagel
b49d12d088 Calendar: Use old globalize for spinner tests
Workaround has been removed when merged with master.
This commit adds the proper dependency again to fix the tests.
2017-01-19 00:04:31 +01:00
Luke Brookhart
4b9f32486c Effect: Fix typo
Closes gh-1778
2016-12-16 19:55:44 -05:00
Felix Nagel
f001a4b9a6 Calendar: Fix line length violations 2016-12-11 17:54:16 +01:00