Improved date display of "Track date only"-chores (never show the time part for them)

This commit is contained in:
Bernd Bestel
2019-09-14 13:05:36 +02:00
parent a4454f825a
commit 26ebeec74f
3 changed files with 16 additions and 2 deletions

View File

@@ -116,8 +116,13 @@ $(document).on('click', '.track-chore-button', function(e)
Grocy.FrontendHelpers.EndUiBusy();
toastr.success(__t('Tracked execution of chore %1$s on %2$s', choreName, trackedTime));
RefreshContextualTimeago();
RefreshStatistics();
// Delay due to delayed/animated set of new timestamps above
setTimeout(function()
{
RefreshContextualTimeago();
}, 550);
},
function(xhr)
{