mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Datepicker - Fixed #4787 - Datepicker: fix animation control
This commit is contained in:
parent
f07293942f
commit
fe217c4745
@ -33,7 +33,7 @@ function addMonths(date, offset) {
|
||||
|
||||
function init(id, options) {
|
||||
$.datepicker.setDefaults($.datepicker.regional['']);
|
||||
return $(id).datepicker($.extend({duration: ''}, options || {}));
|
||||
return $(id).datepicker($.extend({showAnim: ''}, options || {}));
|
||||
}
|
||||
|
||||
var PROP_NAME = 'datepicker';
|
||||
|
@ -46,7 +46,7 @@ test('option', function() {
|
||||
equals(inp.datepicker('option', 'showOn'), 'button', 'Change instance showOn');
|
||||
inp.datepicker('option', 'showOn', undefined);
|
||||
equals(inp.datepicker('option', 'showOn'), 'focus', 'Reset instance showOn');
|
||||
same(inp.datepicker('option', 'all'), {duration: ''}, 'Get instance settings');
|
||||
same(inp.datepicker('option', 'all'), {showAnim: ''}, 'Get instance settings');
|
||||
same(inp.datepicker('option', 'defaults'), $.datepicker._defaults,
|
||||
'Get default settings');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user