Fixed wrong argument for datetimechooser widget

The argument for specifying the language of the DateTimeChooser is wrong, which makes it impossible to customise the language. Compare for reference the argument specification for the DateChooser and the TimeChooser :-)
This commit is contained in:
Lucas Moeskops 2017-08-24 22:38:39 +02:00 committed by Matt Westcott
parent 2cba1b13bf
commit f7024a4193
3 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,7 @@ Changelog
* Fix: Inline panel first and last sorting arrows correctly hidden in non-default tabs (Matt Westcott)
* Fix: `WAGTAILAPI_LIMIT_MAX` now accepts None to disable limiting (jcronyn)
* Fix: In PostgreSQL, new default ordering when ranking of objects is the same (Bertrand Bordage)
* Fix: Enabled translations within date-time chooser widget (Lucas Moeskops)
1.12 LTS (21.08.2017)

View file

@ -25,6 +25,7 @@ Bug fixes
* Inline panel first and last sorting arrows correctly hidden in non-default tabs (Matt Westcott)
* ``WAGTAILAPI_LIMIT_MAX`` now accepts None to disable limiting (jcronyn)
* In PostgreSQL, new default ordering when ranking of objects is the same (Bertrand Bordage)
* Enabled translations within date-time chooser widget (Lucas Moeskops)
Upgrade considerations

View file

@ -86,7 +86,7 @@ function initDateTimeChooser(id, opts) {
i18n: {
lang: window.dateTimePickerTranslations
},
language: 'lang',
lang: 'lang',
onGenerate: hideCurrent
}, opts || {}));
} else {