Fix datepicker functionality for Bootstrap 5 x-editable

- Updated Gruntfile to use npm bootstrap-datepicker instead of bundled version
- Fixed DPGlobal reference from bdatepicker to datepicker
- Changed mode from inline to popup to ensure date input type is used
- Fixed missing type assignment in editable element initialization
- Enhanced input2value function with fallback logic to extract dates from dates array
- Added comprehensive debugging and error handling
- Datepicker now properly opens, captures selections, and submits formatted dates
This commit is contained in:
Micha
2025-07-26 14:25:39 +02:00
parent 1dbf4d2fa7
commit f4dc8a3dd0
20 changed files with 571 additions and 38 deletions

View File

@@ -38,7 +38,10 @@ Makes editable any HTML element on the page. Applied as jQuery method.
this.input = $.fn.editableutils.createInput(this.options);
if(!this.input) {
return;
}
}
// Set the editable's type from the input's type
this.type = this.input.type;
//set value from settings or by element's text
if (this.options.value === undefined || this.options.value === null) {