mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 08:43:10 +00:00
further tweaks to prevent scrolling of date inputs
This commit is contained in:
parent
91fe81bb9b
commit
2c50a49ef6
2 changed files with 10 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ function initDateChooser(id) {
|
|||
if (window.dateTimePickerTranslations) {
|
||||
$('#' + id).datetimepicker({
|
||||
timepicker: false,
|
||||
scrollInput:false,
|
||||
format: 'Y-m-d',
|
||||
i18n: {
|
||||
lang: window.dateTimePickerTranslations
|
||||
|
|
@ -69,6 +70,7 @@ function initDateChooser(id) {
|
|||
} else {
|
||||
$('#' + id).datetimepicker({
|
||||
timepicker: false,
|
||||
scrollInput:false,
|
||||
format: 'Y-m-d',
|
||||
});
|
||||
}
|
||||
|
|
@ -78,6 +80,7 @@ function initTimeChooser(id) {
|
|||
if (window.dateTimePickerTranslations) {
|
||||
$('#' + id).datetimepicker({
|
||||
datepicker: false,
|
||||
scrollInput:false,
|
||||
format: 'H:i',
|
||||
i18n: {
|
||||
lang: window.dateTimePickerTranslations
|
||||
|
|
@ -96,6 +99,7 @@ function initDateTimeChooser(id) {
|
|||
if (window.dateTimePickerTranslations) {
|
||||
$('#' + id).datetimepicker({
|
||||
format: 'Y-m-d H:i',
|
||||
scrollInput:false,
|
||||
i18n: {
|
||||
lang: window.dateTimePickerTranslations
|
||||
},
|
||||
|
|
|
|||
|
|
@ -25,6 +25,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
.page-editor .xdsoft_datetimepicker{
|
||||
border-top:0;
|
||||
margin-top:-1px;
|
||||
margin-left:3px;
|
||||
}
|
||||
|
||||
.object{
|
||||
position:relative;
|
||||
overflow:hidden;
|
||||
|
|
|
|||
Loading…
Reference in a new issue