fix typo in monthsField

This commit is contained in:
t1m0n 2016-02-01 11:15:39 +03:00
parent 4d2c26bf90
commit ea85bbfb7b
5 changed files with 6 additions and 6 deletions

View File

@ -53,7 +53,7 @@ var Datepicker;
autoClose: false,
// navigation
monthsFiled: 'monthsShort',
monthsField: 'monthsShort',
prevHtml: '<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',
nextHtml: '<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',
navTitles: {
@ -1296,7 +1296,7 @@ var Datepicker;
}
break;
case 'month':
html = parent.loc[parent.opts.monthsFiled][d.month];
html = parent.loc[parent.opts.monthsField][d.month];
break;
case 'year':
var decade = parent.curDecade;

File diff suppressed because one or more lines are too long

View File

@ -82,7 +82,7 @@
}
break;
case 'month':
html = parent.loc[parent.opts.monthsFiled][d.month];
html = parent.loc[parent.opts.monthsField][d.month];
break;
case 'year':
var decade = parent.curDecade;

View File

@ -53,7 +53,7 @@ var Datepicker;
autoClose: false,
// navigation
monthsFiled: 'monthsShort',
monthsField: 'monthsShort',
prevHtml: '<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',
nextHtml: '<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',
navTitles: {

View File

@ -742,7 +742,7 @@ describe('Options', function () {
describe('monthsField', function () {
it('defines which field from localization must be used as source for months name in "months view"', function () {
dp = $input.datepicker({
monthsFiled: 'months',
monthsField: 'months',
view: 'months'
}).data('datepicker');