mirror of
https://github.com/frappe/air-datepicker.git
synced 2026-01-14 11:01:22 +08:00
fix typo in monthsField
This commit is contained in:
parent
4d2c26bf90
commit
ea85bbfb7b
4
dist/js/datepicker.js
vendored
4
dist/js/datepicker.js
vendored
@ -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;
|
||||
|
||||
2
dist/js/datepicker.min.js
vendored
2
dist/js/datepicker.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
||||
|
||||
@ -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: {
|
||||
|
||||
@ -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');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user