mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-20 21:11:55 +00:00
date/time/datetime picker shoudl close after choice.
This commit is contained in:
parent
6b3fecaf3b
commit
87ee7c8d07
1 changed files with 3 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ function insertRichTextDeleteControl(elem) {
|
||||||
function initDateChooser(id) {
|
function initDateChooser(id) {
|
||||||
if (window.dateTimePickerTranslations) {
|
if (window.dateTimePickerTranslations) {
|
||||||
$('#' + id).datetimepicker({
|
$('#' + id).datetimepicker({
|
||||||
|
closeOnDateSelect: true,
|
||||||
timepicker: false,
|
timepicker: false,
|
||||||
scrollInput:false,
|
scrollInput:false,
|
||||||
format: 'Y-m-d',
|
format: 'Y-m-d',
|
||||||
|
|
@ -79,6 +80,7 @@ function initDateChooser(id) {
|
||||||
function initTimeChooser(id) {
|
function initTimeChooser(id) {
|
||||||
if (window.dateTimePickerTranslations) {
|
if (window.dateTimePickerTranslations) {
|
||||||
$('#' + id).datetimepicker({
|
$('#' + id).datetimepicker({
|
||||||
|
closeOnDateSelect: true,
|
||||||
datepicker: false,
|
datepicker: false,
|
||||||
scrollInput:false,
|
scrollInput:false,
|
||||||
format: 'H:i',
|
format: 'H:i',
|
||||||
|
|
@ -98,6 +100,7 @@ function initTimeChooser(id) {
|
||||||
function initDateTimeChooser(id) {
|
function initDateTimeChooser(id) {
|
||||||
if (window.dateTimePickerTranslations) {
|
if (window.dateTimePickerTranslations) {
|
||||||
$('#' + id).datetimepicker({
|
$('#' + id).datetimepicker({
|
||||||
|
closeOnDateSelect: true,
|
||||||
format: 'Y-m-d H:i:s',
|
format: 'Y-m-d H:i:s',
|
||||||
scrollInput:false,
|
scrollInput:false,
|
||||||
i18n: {
|
i18n: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue