Hello, after moodle upgrade from 3.3.2+ to version 3.4.1, the JS function that used the jquery plugin has stopped working. For example, the following code does not have access to the jquery plugin and shows the error:
Uncaught TypeError: $(...).datetimepicker is not a function
The code that calls the function
$(function(){
$('body').on('click',function(){
$('.test').html('<input type="text" id="dataww" name="sdaf"/>');
$('#dataww').datetimepicker({
timepicker:false,mask:true,format: 'Y-m-d',formatTime: 'H:i',formatDate: 'Y-m-d'
});
});
})
the script is linked to the page:
$PAGE->requires->js(new moodle_url($CFG->wwwroot . '/js/jquery.datetimepicker.full.min.js'),true);
I am asking for help if I can manage it somehow / fix it to work