mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Optimize datetimepicker form validation events (fixes #726)
This commit is contained in:
parent
73b3ad3b4c
commit
0327188125
@ -32,6 +32,7 @@
|
||||
### General & other improvements/fixes
|
||||
- Fixed that all number inputs are always prefilled in the browser locale number format
|
||||
- Fixed (again) that the `update.sh` file had wrong line endings (DOS instead of Unix)
|
||||
- Optimized that sometimes the corresponding form was not validated when selecting a date from the datetimepicker
|
||||
- New `config.php` setting `FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_FIELD_NUMBER_PAD` which activates the number pad for best-before-date fields on (supported) mobile browsers (useful because of [shorthands](https://github.com/grocy/grocy#input-shorthands-for-date-fields)) (defaults to `true`) (thanks @Mik-)
|
||||
- Enhancements for the camera barcode scanner (thanks @Mik-)
|
||||
- The light button only displayed when the device has a flash light
|
||||
|
@ -276,6 +276,7 @@ $('.datetimepicker').on('update.datetimepicker', function(e)
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('input');
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('change');
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('keypress');
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('keyup');
|
||||
});
|
||||
|
||||
$('.datetimepicker').on('hide.datetimepicker', function(e)
|
||||
@ -283,6 +284,7 @@ $('.datetimepicker').on('hide.datetimepicker', function(e)
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('input');
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('change');
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('keypress');
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('keyup');
|
||||
});
|
||||
|
||||
$("#datetimepicker-shortcut").on("click", function()
|
||||
|
@ -276,6 +276,7 @@ $('.datetimepicker2').on('update.datetimepicker', function(e)
|
||||
Grocy.Components.DateTimePicker2.GetInputElement().trigger('input');
|
||||
Grocy.Components.DateTimePicker2.GetInputElement().trigger('change');
|
||||
Grocy.Components.DateTimePicker2.GetInputElement().trigger('keypress');
|
||||
Grocy.Components.DateTimePicker2.GetInputElement().trigger('keyup');
|
||||
});
|
||||
|
||||
$('.datetimepicker2').on('hide.datetimepicker', function(e)
|
||||
@ -283,6 +284,7 @@ $('.datetimepicker2').on('hide.datetimepicker', function(e)
|
||||
Grocy.Components.DateTimePicker2.GetInputElement().trigger('input');
|
||||
Grocy.Components.DateTimePicker2.GetInputElement().trigger('change');
|
||||
Grocy.Components.DateTimePicker2.GetInputElement().trigger('keypress');
|
||||
Grocy.Components.DateTimePicker2.GetInputElement().trigger('keyup');
|
||||
});
|
||||
|
||||
$("#datetimepicker2-shortcut").on("click", function()
|
||||
|
Loading…
x
Reference in New Issue
Block a user