mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 11:27:03 +00:00
Improved date display of "Track date only"-chores (never show the time part for them)
This commit is contained in:
@@ -14,6 +14,15 @@ Grocy.Components.ChoreCard.Refresh = function(choreId)
|
||||
$('#chorecard-chore-edit-button').attr("href", U("/chore/" + choreDetails.chore.id.toString()));
|
||||
$('#chorecard-chore-edit-button').removeClass("disabled");
|
||||
|
||||
if (choreDetails.chore.track_date_only == 1)
|
||||
{
|
||||
$("#chorecard-chore-last-tracked-timeago").addClass("timeago-date-only");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#chorecard-chore-last-tracked-timeago").removeClass("timeago-date-only");
|
||||
}
|
||||
|
||||
EmptyElementWhenMatches('#chorecard-chore-last-tracked-timeago', __t('timeago_nan'));
|
||||
RefreshContextualTimeago();
|
||||
},
|
||||
|
Reference in New Issue
Block a user