added a datepicker fix

This commit is contained in:
Micha
2025-11-04 16:05:37 +01:00
parent b87ac53dc8
commit 71ee0d9b72
18 changed files with 169 additions and 117 deletions

View File

@@ -114,9 +114,13 @@ $(function(){
this.$input.bdatepicker('update', value);
},
input2value: function() {
return this.$input.data('datepicker').date;
},
input2value: function() {
const dp = this.$input.data('datepicker');
if (dp && typeof dp.getFormattedDate === 'function') {
return dp.getFormattedDate(this.options.format || 'yyyy-mm-dd');
}
return this.$input.val();
},
activate: function() {
},