Commit Graph

90 Commits

Author SHA1 Message Date
Scott González
fc6e72bf73 Datepicker: Don't set _curInst in hideDatepicker. Fixes #8174 - jQuery datepicker is stuck open if label is clicked from open state.
(cherry picked from commit 4ade13450e)

Conflicts:

	ui/jquery.ui.datepicker.js
2012-04-03 15:37:56 -04:00
Jörn Zaefferer
dc67d2c5d2 Protect all copyright notices against minification
For instance, this is useful for the jquery-ui-rails gem, which does not
use jQuery UI's own minification, but relies on Rails to minify the
files where necessary. Rails in turn uses UglifyJS for JS and YUI for
CSS, both of which respect the /*! ... */ convention.
(cherry picked from commit 37dcc3e21d, dropped menu, spinner and tooltip)
2012-04-02 18:14:51 +02:00
Scott González
5e3ad8f160 Updated copyright year. 2012-03-19 09:25:07 -04:00
Jasvir Nagra
5c2eea3fd9 Datepicker: modified a catch variable to no longer mask an existing variable in scope. Fixed #8138 - datepicker: IE8 does not create a new scope for catch blocks and will cause
(cherry picked from commit 367da95ba5)
2012-02-25 07:12:40 -05:00
Scott González
dc12b4d310 Datepicker: Allow descendant elements in triggers. Fixes #8107 - Closing the datepicker via the provided button does not work in Chrome when the button contains other non-text elements.
(cherry picked from commit c964894b9b)
2012-02-08 13:43:34 -05:00
ryanolton
120ee58e5b Datepicker: added check to account for multiple pickers on one page. Fixed #5818 – multiple DatePickers won't trigger close event(cherry picked from commit 82cf9e297f) 2012-01-20 11:27:19 -05:00
Jay Oster
63bd71f14c Datepicker: Fix this reference in _hideDatepicker(). Fixed #7722 - Datepicker: Does not properly clear current instance when hidden.
(cherry picked from commit c36b43d0ee)
2011-11-21 16:33:22 -05:00
kborchers
872387abd5 Datepicker: Added additional check to checkExternalClick to work when clicking in another datepicker and removed old fix. Fixes #7686 - infinite loop when onclose event shows a second calendar
(cherry picked from commit af76ad1c82)
2011-09-16 10:47:46 -04:00
Scott González
7c15d3c19f Datepicker: Revert "Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object" Fixes #7623 - DatePicker reappears after selection in ie8.
This reverts commit 86a09aeb33.
2011-08-10 07:58:17 -04:00
Karl Kirch
1b5af10bb1 Datepicker: Added ability to stop datepicker from beforeShow. Fixes #7602 - Ability to stop datepicker from appearing with beforeShow event handler.
(cherry picked from commit d146297356)
2011-08-09 09:58:13 -04:00
Scott González
3e98e73772 Revert "Datepicker: Added onSelect.apply() call to _setDate method if onSelect is defined. Fixed #6264 - Datepicker: onSelect does not fire when setDate is called"
This reverts commit b8e14e79e5.
2011-08-09 08:27:04 -04:00
Scott González
1d4795683e Datepicker: Removed click handling for month and year dropdowns. Fixes #6198 - Datepicker Month and Year dropdowns in IE have to click twice.
Thanks jdufresne
(cherry picked from commit 70687f7955)
2011-08-01 15:29:54 -04:00
Richard D. Worth
c81bfb9815 Datepicker: show inline datepicker setting explicit display:block instead of using .show() in case it is disconnected. Fixed #7552 - A Datepicker created on a detached div has zero height
(cherry picked from commit b8af0d1f75)
2011-07-19 08:12:41 -04:00
Corey Frang
ab3b78e9eb Merge pull request #322 from kborchers/bug_5665
Datepicker: Added checks for the disabled option. Fixed #5665 - Datepicker: Disabled parameter doesn't work(cherry picked from commit 4bdbab9a67)
2011-07-19 08:10:05 -04:00
marcneuwirth
b8e14e79e5 Datepicker: Added onSelect.apply() call to _setDate method if onSelect is defined. Fixed #6264 - Datepicker: onSelect does not fire when setDate is called
(cherry picked from commit effdd5d19c)
2011-06-28 11:00:06 -05:00
marcneuwirth
bb9f9fac81 Datepicker: Added onSelect.apply() call to _doKeyDown method when enter button pushed if onSelect is defined. Fixed #7124 - Datepicker: onSelect does not fire when enter button is pushed
(cherry picked from commit a56aa861b1)
2011-06-28 10:50:58 -05:00
marcneuwirth
86a09aeb33 Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object 2011-06-27 17:07:43 -05:00
kborchers
4878ed8c1a Datepicker: Reset this.maxRows (rows in a month) on each row in a multi-row datepicker.
(cherry picked from commit ed7802090f)
2011-06-16 13:35:56 -04:00
kborchers
57b9e9d399 Datepicker: Calculate the max number of rows necessary when displaying months. Fixes #7043 - Datepicker: Using multiple months always renders 6 rows of dates even if only 5 are needed
(cherry picked from commit 1d984e76b7)
2011-06-16 13:35:48 -04:00
Scott González
4d8529cf84 Datepicker: Don't use .delegate(). Fixes #7470 - Datepicker: 1.8.x can't be used with jQuery 1.3.2 due to use of .delegate(). 2011-06-13 08:46:57 -04:00
Jörn Zaefferer
e05559eb16 There's no guard against unparsed characters at the end of the date string, any extra characters are just ignored
Fixes #7244 - Datepicker: parseDate() does not throw an exception for long years
(cherry picked from commit 92b0f6702a)
2011-05-18 17:35:57 +02:00
Kato Kazuyoshi
3124864541 Datepicker: onClose callback should be triggered by show. Fixed #6656 - onClose event not triggered.
(cherry picked from commit 2063a113d6)
2011-05-18 16:03:13 +02:00
Jay Merrifield
c1470492bd Datepicker: Made the day of year calculator be more accurate. Fixes #6827 - Datepicker: Incorrect value for "oo" during Daylight Saving Time.
(cherry picked from commit 41205cef4b)
2011-05-16 07:54:38 -04:00
Andrew Powell
10fa7f9ae9 Datepicker: removed conditional mozilla browser check block. Fixes #7322 - Year selector disappears after setting an option in Firefox
(cherry picked from commit a6227be2c0)
2011-05-12 11:29:13 -04:00
Scott González
804ba0a2df Revert "Datepicker: Fixed #7043 - Using multiple months always renders 6 rows of dates even if only 5 are needed."
This reverts commit 5e1032ec74.
2011-05-12 08:18:06 -04:00
Kato Kazuyoshi
2b84107b31 Datepicker: Disabled datepicker should disable own select element too. Fixed #6850 - Disable datepicker should disable month and year dropdowns.
(cherry picked from commit 4585182c70)
2011-05-11 15:33:16 -04:00
Garrison Locke
3edda96f2a Datepicker: Removed duplicate call to _updateDatepicker when changing option in Firefox. Fixed #7322 - datepicker: Year would disappear when changing option.
(cherry picked from commit a645630eba)
2011-05-11 14:22:59 -04:00
Kato Kazuyoshi
5e1032ec74 Datepicker: Fixed #7043 - Using multiple months always renders 6 rows of dates even if only 5 are needed.
(cherry picked from commit ac459ff7df)
2011-05-11 11:10:37 -04:00
Scott González
73602652ac Datepicker: Moved the setting of _datepickerShowing to after postProcess to prevent being able to tab away leaving the datepicker open. Fixed #6775 - DatePicker remains open when tabbing out 2011-05-06 13:31:43 -04:00
Kato Kazuyoshi
870977ae6b Datepicker: Remove old "ui-datepicker-multi-N" before add new one. Fixed #6704 - Display overflow when multiple datepickers have different numberOfMonths.
(cherry picked from commit fc97ccd398)
2011-05-04 17:12:01 -04:00
Kato Kazuyoshi
f9faa0ab5f Datepicker: Greedy matching in month name. Fixed #7062 - $.datepicker.parseDate does not work for some locale date strings.
(cherry picked from commit a891e81e06)
2011-05-04 17:00:40 -04:00
adambaratz
0da176b006 Datepicker: bind hover events using delegate. Fixed #7256 - minimize event binding in Datepicker initialization.
(cherry picked from commit 74d195e396)
2011-05-02 10:07:33 -04:00
Scott González
a8fc3da628 Datepicker: Only generate yearshtml once. Fixes #7176 - Datepicker shows only single year in year dropdown if numberOfMonths > 1.
(cherry picked from commit 98c53d8432)
2011-04-04 07:56:52 -04:00
Scott González
2b4a902e00 Datepicker: Changed a comment that causes problems with YUI Compressor. Fixes #7129 - Datepicker: Can't minify with YUI Compressor.
(cherry picked from commit 6d01645716)
2011-03-18 08:27:46 -04:00
Adam Parod
12d38b1886 Datepicker: Reformat minDate/maxDate when dateFormat changes. Fixes #7009 - Reformat minDate/maxDate when dateFormat changes.
(cherry picked from commit 74b7c3f684)
2011-03-07 09:35:40 -05:00
Scott González
9162679e15 Datepicker: Account for daylight saving when calculating number of days in a month. Fixes #6978 - In Calender for march 2011 dates showing till 5th only.
Thanks jomyjohn
(cherry picked from commit c44818fcca)
2011-02-16 13:16:00 -05:00
Dan Heberden
ab7a5b441a Datepicker: prevent datepicker initialization on empty jquery collection and add unit test. Fixed #6976 - datepicker creates extra dom element with empty object
(cherry picked from commit 5c3dc7d48a)
2011-02-15 13:27:18 -05:00
Scott González
cf9dac6c17 Datepicker: Properly handle datepickers attached to inputs that are hidden using CSS. Fixes #6988 - Datepicker: Treat all hidden text fields the same.
(cherry picked from commit 6fbee255d8d895c7e84a4b2eaad2cfadc8a3425a)
2011-02-15 08:38:27 -05:00
Tobias Brunner
d14366abce Datepicker: only set the focus explicitly if it is not already on the target field. Fixed #6694 – datepicker does not fire change event in IE8
jQuery stores the current content of a field whenever it gets the focus. Since the fixed function is also called for KeyUp events the change event is not triggered anymore when the input looses focus.
(cherry picked from commit 39cf7d5bb4)
2011-02-03 08:52:27 -05:00
Ivan Peters
015ea163d1 Datepicker: Update parseDate to properly handle a string value in shortYearCutoff. Fixed #6872: parseDate does not default shortYearCutoff correctly. 2011-01-18 00:42:25 -05:00
Scott González
83fca58d1c Updated copyright year. 2011-01-17 09:36:00 -05:00
dblood
51695f82c8 Datepicker: enabled OSX meta keys to work when constraining input. Fixed #5317 - datepicker cmd+a/c/v is not working on MAC OS-X 2010-12-03 08:44:34 -05:00
pheiberg
98f7e6a8d6 Datepicker: made it possible to select a date in the selected month using enter. Fixes #5527 - Datepicker: Problem selecting the date with keyboard shorcuts 2010-11-30 17:46:53 -05:00
Scott González
9ade71071a Datepicker: Proper handling of empty strings for dates. 2010-11-22 12:59:57 -05:00
Scott González
7b523c2ec1 Datepicker: Handle clearing the date inside _setDate() as early as possible. Fixes #6684 - Datepicker: setDate() should accept an empty string.
Thanks RobinHerbots.
2010-11-22 11:46:36 -05:00
Scott González
a4d54b4d77 Datepicker: Don't use ui-helper-hidden-accessible for initial hiding. 2010-11-22 11:40:11 -05:00
pheiberg
d69f2ecb12 Datepicker: changed setDate not to modify the passed date argument. Fixes #6671 - setDate manipulates its argument 2010-11-22 08:29:29 -05:00
pheiberg
a2e0eb920a Datepicker: Fixed parsing of single y character for date formats. Fixes #6659 - Datepicker: Date format ymmdd not parsed correctly. 2010-11-18 16:13:28 -05:00
Scott González
7832fd8e9c Datepicker: Avoid flash during render in Firefox. Fixes #5493 - Datepicker: changeYear + yearRange causes flash in Firefox.
Thanks israelrios.
2010-11-05 10:25:06 -04:00
m157y
66346d04bf Datepicker: fixed problem on ids with. Fixed #6154 – Datepicker brokes handler ids with dashes 2010-10-06 08:37:25 -04:00