Datepicker - Fixed #4787 - Datepicker: fix animation control

This commit is contained in:
Keith Wood 2009-12-01 01:24:00 +00:00
parent f07293942f
commit fe217c4745
2 changed files with 2 additions and 2 deletions

View File

@ -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';

View File

@ -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');
});