mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 10:14:39 +00:00
Replace Timeago with momentjs (#1687)
* Replaced timeago with moment.fromNow * Fixed datetime when best_before_date is empty * Removed the now unnecessary timeago package * Removed not longer localization strings * Check for empty instead of string comparison Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
@@ -270,7 +270,6 @@ Grocy.Components.DateTimePicker2.GetInputElement().on('keyup', function(e)
|
||||
Grocy.Components.DateTimePicker2.GetInputElement().on('input', function(e)
|
||||
{
|
||||
$('#datetimepicker2-timeago').attr("datetime", Grocy.Components.DateTimePicker2.GetValue());
|
||||
EmptyElementWhenMatches('#datetimepicker2-timeago', __t('timeago_nan'));
|
||||
RefreshContextualTimeago(".datetimepicker2-wrapper");
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user