Commit Graph

37 Commits

Author SHA1 Message Date
Micha
1ae5282bc7 v25.0.6: Fix bootstrap-datepicker and select2 integration for Bootstrap 5
Major improvements and fixes:

## Bootstrap-datepicker Integration
- Fix DPGlobal undefined error in date input
- Remove conflicting bdatepicker alias that was causing noConflict errors
- Add graceful error handling for missing bootstrap-datepicker dependency
- Implement proper initialization sequence for DPGlobal API
- Position datepicker above input with improved UX styling

## Select2 Integration & Compatibility
- Fix select2 integration with Select2 v4.1.0-rc.0
- Resolve issue where select2:select event fired but value didn't update
- Add event handler to manually update select2 value on selection
- Fix webpack build inconsistency between demo and standalone builds
- Remove redundant npm dependencies from demo (bootstrap-datepicker, select2)
- Implement proper Select2 v4 API usage for value setting

## Build System Improvements
- Fix webpack configuration to properly handle CSS imports
- Remove CSS file copying for npm dependencies, use webpack imports instead
- Ensure consistent input type registration across all build targets
- Clean up build output and remove debugging code

## Demo & Testing
- Update demo to use webpack source build for consistency
- Add comprehensive error handling and user feedback
- Clean up all debugging console output
- Improve demo page descriptions and usability

## Technical Fixes
- Fix 'Unknown type: select2' error in demo build
- Resolve value change detection preventing save operations
- Implement savenochange option for better UX
- Remove deprecated jQuery UI conflicts and aliases
- Update to modern webpack and build practices
2025-07-29 13:36:06 +02:00
Micha
6ea537cd55 Fix datepicker workflow to match legacy behavior
- Implement proper button hiding/showing workflow for datepicker inputs
- Buttons now hidden initially when datepicker opens
- Buttons appear only after date selection, not immediately
- Datepicker closes automatically after date selection
- Enhanced CSS specificity for reliable button control
- Robust fallback methods for datepicker closing
- Update to version 25.0.5
2025-07-27 16:40:58 +02:00
Micha
ab45b130b1 Clean up debug code: remove all console.log statements
- Removed all debug console.log statements from source files
- Cleaned up date.js and datefield.js of debugging output
- Simplified test.js by removing extensive debug logging
- Reduced bundle size and improved production readiness
- Maintained all functionality while removing debug clutter

Code is now production-ready without console noise.
2025-07-26 15:46:30 +02:00
Micha
f4dc8a3dd0 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
2025-07-26 14:25:39 +02:00
vitalets
45cae0de5f docs: corect link to datepicker options 2013-11-01 13:42:56 +04:00
vitalets
c5610a678f remove original title 2013-10-02 00:18:25 +04:00
vitalets
1329e0ccf9 add option escape, fixes #377 2013-09-22 01:05:42 +04:00
vitalets
0eb6a0ffff allow data-datepicker and data-datetimepicker, fix #302 2013-07-21 03:35:14 +04:00
vitalets
b1e96ef177 fix datepicker noconflict 2013-06-23 18:03:37 +04:00
vitalets
89cccbb860 fix lint errors 2013-06-23 17:16:15 +04:00
vitalets
a00dac75ca fix datefield (datetimefield) to return null for incorrect dates 2013-06-22 13:30:54 +04:00
vitalets
f8d8799fbc use noConflict of bootstrap-datepicker, fix #156 2013-06-13 07:38:16 +04:00
vitalets
fd2898de94 added use strict 2013-04-11 23:40:05 +04:00
vitalets
72f964a7cc fix showbuttons passing to input options 2013-04-03 00:17:24 +04:00
vitalets
21a6148f8d clear date & datetime when showbuttons=false, fix #171 2013-04-02 21:32:29 +04:00
vitalets
8fd0987f12 Merge branch 'dev' of https://github.com/vitalets/x-editable into dev 2013-03-06 19:29:03 +04:00
vitalets
8a258c88a3 fix #149 2013-03-06 18:29:10 +04:00
Kevin
c7f506b6e2 Update bootstrap datepicker library and add minViewMode to options 2013-02-15 13:40:42 +01:00
vitalets
e3ed66c606 comments for docs 2013-01-11 19:43:47 +04:00
vitalets
5ac48f3fd8 comments for docs 2013-01-07 12:33:12 +04:00
vitalets
ee79d5cec4 add wysi input, refactor all inputs to append $tpl to form before render() 2013-01-07 01:03:09 +04:00
vitalets
5edc4bbfcb text x-clear button and new $tpl property in inputs, need tests 2013-01-05 16:23:58 +04:00
vitalets
9492610a9a datefield test ready 2013-01-04 17:37:22 +04:00
vitalets
5dfa8bb218 datefield ready, need tests 2013-01-04 16:08:00 +04:00
vitalets
11844fb1dc date and dateui comments for i18n 2013-01-01 21:23:44 +04:00
vitalets
4543ecf404 rename abstract to abstractinput fix #41 2012-12-10 13:22:04 +04:00
vitalets
8ed61d6b6b display option ready 2012-12-06 00:33:07 +04:00
vitalets
5d3d7d8c4c implement requirejs loading to test 2012-12-04 17:24:20 +04:00
vitalets
ed836c2271 autosubmit method 2012-11-30 18:48:42 +04:00
vitalets
18f29820f3 many fixes for ie7+ compatibility 2012-11-27 13:25:42 +04:00
vitalets
2438ea8da1 clear link in date input 2012-11-26 13:36:29 +04:00
vitalets
d2f988d545 list input + checklist alpha 2012-11-25 12:12:26 +04:00
vitalets
ec1ff5d29d replace post.php with /post in src comments 2012-11-21 17:30:27 +04:00
vitalets
522b90e918 input templatees cleared from styles 2012-11-17 12:41:57 +04:00
vitalets
01b242d9da remove date and dateui global config of datepicker 2012-11-16 16:47:30 +04:00
vitalets
fc7095d6ee comments for docs 2012-11-15 22:29:56 +04:00
vitalets
ccdff0ee51 init 2012-11-09 12:58:42 +04:00