How to initialize the module?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
13 views
I have a question, I have a modal window opens dynamically, that is approximately so
{{ $lesson->directions->name }}{{ $lesson->type == 1 ? 'Group session' : 'private lesson' }}Teacher: {{ $lesson->executes->fullName }}Clients:@foreach($lesson->clients as $client) {{ $client->fullName }} @endforeach 

And js
$('body').on('click', '.block-lesson', function (e) { $(modal).modal('show').find('.modal-content').load($(this).data('href')); })

Only valid inside this modal window I have stopped working model bootstrap datetimepicker
and select 2
For example how to enable the module I have
$('.datetimepicker').datetimepicker({ format: 'DD MMMM YYYY', pickTime: false, locale: 'EN', language: 'EN-us', });

Maybe someone faced with such problem
by | 13 views

1 Answer

0 like 0 dislike
Bayan©
$('body').on('click', '.block-lesson', function (e) { $(modal).modal('show').find('.modal-content').load($(this).data('href')); //here initialize the desired datepicker and селекты2 for your modelki or something $('.datetimepicker').datetimepicker({ format: 'DD MMMM YYYY', pickTime: false, locale: 'EN', language: 'EN-us', }); $('.select2').select2(); })

This is because you have no formal element, where should be select points with datepickers, after a click they appear.
by

Related questions

0 like 0 dislike
1 answer
asked Jun 12, 2019 by MegaPuxapb
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
asked Apr 13, 2019 by denisyla_dev
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users