sisyphus
sisyphus copied to clipboard
Bootstrap Datepicker dates are not saved
Hi, using https://github.com/Eonasdan/bootstrap-datetimepicker doesn't save field content. Bye
I've analyzed the behaviour circumnstances: datas are not saved only if selected through datepicker. They are correctly stored if typed with keyboard (checked with chrome localstorage inspector). This is my js code initialization code:
$(function(){
$( "form" ).sisyphus({
autoRelease: true,
excludeFields: $( "select[name='idAssicurato']" ),
});
});
This is input field html:
<input name='dataIncarico' type='text' data-inputmask="'alias': 'date'" data-mask class="form-control" value="<?php echo $incarico->dataIncarico ? DateTime::createFromFormat('Y-m-d',$incarico->dataIncarico)->format('d/m/Y') : null;?>"/>
Thank you Alex