Added new hourly chore period type (closes #266)

This commit is contained in:
Bernd Bestel
2022-02-09 20:02:11 +01:00
parent c9a2041fae
commit 10d7d44825
8 changed files with 92 additions and 2 deletions

View File

@@ -159,6 +159,10 @@ $('.input-group-chore-period-type').on('change keyup', function(e)
$("#period_days").removeAttr("max");
$('#chore-schedule-info').text(__n(periodDays, "This means the next execution of this chore is scheduled %s day after the last execution", "This means the next execution of this chore is scheduled %s days after the last execution"));
}
else if (periodType === 'hourly')
{
$('#chore-schedule-info').text(__n(periodInterval, "This means the next execution of this chore is scheduled %s hour after the last execution", "This means the next execution of this chore is scheduled %s hours after the last execution"));
}
else if (periodType === 'daily')
{
$('#chore-schedule-info').text(__n(periodInterval, "This means the next execution of this chore is scheduled %s day after the last execution", "This means the next execution of this chore is scheduled %s days after the last execution"));