Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ maxViewMode

Number, String. Default: 4, "centuries"

Set a maximum limit for the view mode. Accepts: 0 or "days" or "month", 1 or "months" or "year", 2 or "years" or "decade", 3 or "decades" or "century", and 4 or "centuries" or "millenium".
Set a maximum limit for the view mode. Accepts: 0 or "days" or "month", 1 or "months" or "year", 2 or "years" or "decade", 3 or "decades" or "century", and 4 or "centuries" or "millennium".
Gives the ability to pick only a day, a month, a year or a decade. The day is set to the 1st for "months", the month is set to January for "years", the year is set to the first year from the decade for "decades", and the year is set to the first from the millennium for "centuries".


Expand All @@ -352,7 +352,7 @@ minViewMode

Number, String. Default: 0, "days"

Set a minimum limit for the view mode. Accepts: 0 or "days" or "month", 1 or "months" or "year", 2 or "years" or "decade", 3 or "decades" or "century", and 4 or "centuries" or "millenium".
Set a minimum limit for the view mode. Accepts: 0 or "days" or "month", 1 or "months" or "year", 2 or "years" or "decade", 3 or "decades" or "century", and 4 or "centuries" or "millennium".
Gives the ability to pick only a month, a year or a decade. The day is set to the 1st for "months", and the month is set to January for "years", the year is set to the first year from the decade for "decades", and the year is set to the first from the millennium for "centuries".


Expand Down Expand Up @@ -416,7 +416,7 @@ startView

Number, String. Default: 0, "days"

The view that the datepicker should show when it is opened. Accepts: 0 or "days" or "month", 1 or "months" or "year", 2 or "years" or "decade", 3 or "decades" or "century", and 4 or "centuries" or "millenium". Useful for date-of-birth datepickers.
The view that the datepicker should show when it is opened. Accepts: 0 or "days" or "month", 1 or "months" or "year", 2 or "years" or "decade", 3 or "decades" or "century", and 4 or "centuries" or "millennium". Useful for date-of-birth datepickers.


templates
Expand Down
2 changes: 1 addition & 1 deletion tests/suites/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ test('picker should render fine when `$.fn.show` and `$.fn.hide` are overridden'
}
}));

test('Focused ceil for decade/century/millenium views', function(){
test('Focused ceil for decade/century/millennium views', function(){
var input = $('<input />')
.appendTo('#qunit-fixture')
.datepicker({
Expand Down
6 changes: 3 additions & 3 deletions tests/suites/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -1933,7 +1933,7 @@ test('Nav arrow html templates .prev click', function () {
equal(target.text(), '2011');
});

test('Visibility of the prev and next arrows for year/decade/century/millenium views with startDate and endDate', function(){
test('Visibility of the prev and next arrows for year/decade/century/millennium views with startDate and endDate', function(){
var input = $('<input />')
.appendTo('#qunit-fixture')
.val('01/01/2015')
Expand Down Expand Up @@ -1973,7 +1973,7 @@ test('Visibility of the prev and next arrows for year/decade/century/millenium v
ok(target.hasClass('disabled'), 'Next switcher is hidden');
});

test('Visibility of the prev arrow for month/year/decade/century/millenium views with startDate eq value', function(){
test('Visibility of the prev arrow for month/year/decade/century/millennium views with startDate eq value', function(){
var input = $('<input />')
.appendTo('#qunit-fixture')
.val('01/01/2014')
Expand Down Expand Up @@ -2009,7 +2009,7 @@ test('Visibility of the prev arrow for month/year/decade/century/millenium views
ok(target.hasClass('disabled'), 'Prev switcher is hidden');
});

test('Visibility of the next arrow for month/year/decade/century/millenium views with endDate eq value', function(){
test('Visibility of the next arrow for month/year/decade/century/millennium views with endDate eq value', function(){
var input = $('<input />')
.appendTo('#qunit-fixture')
.val('31/12/1999')
Expand Down