datepicker go under overlay then 'datetime' field is editing
datepicker go under overlay then 'datetime' field is editing
Hi, Allan.
I use 'datetime' type field in my project and than I edit it, datepicker appeared in left down screen corner under editor's window halftone overlay.
I upgraded editor to 1.5.4. version, but problem not solved yet.
This is link to live example http://uchet.nuzenavtor.ru/Ed-15/dt/modx_vkrzakaz.html
Datatable debug code is oreqoy.
and link to screenshot of editor's window https://dl.dropboxusercontent.com/u/18673924/editor-datetime-field.png
My editor definition:
var editor = new $.fn.dataTable.Editor( {
ajax: 'php/table.modx_vkrzakaz_sm.php',
table: '#modx_vkrzakaz',
fields: [
{
"label": "\u2116 \u0437\u0430\u043a\u0430\u0437\u0430",
"name": "modx_vkrzakaz.no_zak"
},
{
"label": "\u041a\u043b\u0438\u0435\u043d\u0442",
"name": "modx_vkrzakaz.kli_zak",
"type": "select"
},
{
"label": "ВУЗ",
"name": "modx_vkrklient.vuz"
},
{
"label": "Е-mail",
"name": "modx_vkrklient.toemail"
},
{
"label": "Город",
"name": "modx_vkrklient.city"
},
{
"label": "\u0410\u0432\u0442\u043e\u0440",
"name": "modx_vkravtor.name"
},
{
"label": "\u0412\u0438\u0434 \u0437\u0430\u043a\u0430\u0437\u0430",
"name": "modx_vkrzakaz.vid_zak",
"type": "select"
},
{
"label": "Отсутствует",
"name": "modx_vkrzakaz.is_step1",
"type": "checkbox",
"separator": "|",
"options": [
{label: '', value: '1'}
]
},
{
"label": "Отсутствует",
"name": "modx_vkrzakaz.is_step2",
"type": "checkbox",
"separator": "|",
"options": [
{label: '', value: '1'}
]
},
{
"label": "Отсутствует",
"name": "modx_vkrzakaz.is_step3",
"type": "checkbox",
"separator": "|",
"options": [
{label: '', value: '1'}
]
},
{
"label": "Отсутствует",
"name": "modx_vkrzakaz.is_step4",
"type": "checkbox",
"separator": "|",
"options": [
{label: '', value: '1'}
]
},
{
"label": "Отсутствует",
"name": "modx_vkrzakaz.is_step5",
"type": "checkbox",
"separator": "|",
"options": [
{label: '', value: '1'}
]
},
{
"label": "Отсутствует",
"name": "modx_vkrzakaz.is_step6",
"type": "checkbox",
"separator": "|",
"options": [
{label: '', value: '1'}
]
},
{
"label": "Отсутствует",
"name": "modx_vkrzakaz.is_step7",
"type": "checkbox",
"separator": "|",
"options": [
{label: '', value: '1'}
]
},
{
"label": "Тема",
"name": "modx_vkrzakaz.tema_zak"
},
{
"label": "Предприятие",
"name": "modx_vkrzakaz.predpr_zak"
},
{
"label": "Сезон заказа",
"name": "modx_vkrzakaz.sezon_zak"
},
{
"label": "Срок заказа",
"name": "modx_vkrzakaz.srok_zak",
type: 'datetime',
def: function () { return new Date(); }
},
{
"label": "Приоритет",
"name": "modx_vkrzakaz.priority"
},
{
"label": "\u0421\u0443\u043c\u043c\u0430 \u0437\u0430\u043a\u0430\u0437\u0430",
"name": "modx_vkrzakaz.sum"
},
{
"label": "\u041e\u043f\u043b\u0430\u0447\u0435\u043d\u043e",
"name": "modx_vkrzakaz.sum_opl"
},
{ "label": "Комментарий",
"name": "modx_vkrzakaz.comment"
}
]
} );
This question has an accepted answers - jump to answer
Answers
This is my datatable definition.
This field definition
works in examples, but don't working in my code((.
How I can solve this problem?
It looks like the Editor CSS file hasn't been included. You need to include
editor.bootstrap.css
on your page as well.Allan
But it's included...
Here is full text of my
head
section.Thanks, Allan.
You are right. This problem in css. It was from old version. I rewrite it with new from Editor 1.5.4 package and now datepicker is working.