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 :-)
pull/3797/merge
Lucas Moeskops 2017-08-24 22:38:39 +02:00 zatwierdzone przez Matt Westcott
rodzic 2cba1b13bf
commit f7024a4193
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

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

Wyświetl plik

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