mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 02:04:38 +00:00
Some bug fixes. (#1000)
* Fix #997. Remove datetimepicker if FEATURE_FLAG_STOCK_BEST_BEFORE_DATE is not set. * datetimepicker: Fix that SetValue did not set the value if "shortcut-checkbox" (e.g. "never expires") was checked. * Use parent div as clickable area for checkboxes in dropdowns * Fix nightmode-enable * Fix possibly undefined variables in CalendarService.php * Fix undefined variable in GenericEntityApiController.php * Fix "Trying to access property barcodes on non-object" in productpicker * Fix undefined "hintId" in shoppinglocationpicker * Fix undefined variables in locationpicker.blade.php
This commit is contained in:
committed by
GitHub
parent
0624b0df59
commit
5056ca9397
@@ -12,9 +12,6 @@ Grocy.Components.DateTimePicker.GetValue = function()
|
||||
|
||||
Grocy.Components.DateTimePicker.SetValue = function(value)
|
||||
{
|
||||
Grocy.Components.DateTimePicker.GetInputElement().val(value);
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('change');
|
||||
|
||||
// "Click" the shortcut checkbox when the desired value is
|
||||
// not the shortcut value and it is currently set
|
||||
var shortcutValue = $("#datetimepicker-shortcut").data("datetimepicker-shortcut-value");
|
||||
@@ -22,6 +19,8 @@ Grocy.Components.DateTimePicker.SetValue = function(value)
|
||||
{
|
||||
$("#datetimepicker-shortcut").click();
|
||||
}
|
||||
Grocy.Components.DateTimePicker.GetInputElement().val(value);
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('change');
|
||||
|
||||
Grocy.Components.DateTimePicker.GetInputElement().keyup();
|
||||
}
|
||||
|
Reference in New Issue
Block a user