Fixed chore edit form - period type hint did not work (references #151)

This commit is contained in:
Bernd Bestel 2019-05-04 15:40:26 +02:00
parent fe8bb43996
commit 98fcd767b3
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 2 additions and 2 deletions

View File

@ -117,6 +117,6 @@ $('.input-group-chore-period-type').on('change', function(e)
$("label[for='period_days']").text(__t("Day of month"));
$("#period_days").attr("min", "1");
$("#period_days").attr("max", "31");
$("#period_days").parent().find(".invalid-feedback").text(__t('The amount must be between %s and %s', "0", "31"));
$("#period_days").parent().find(".invalid-feedback").text(__t('The amount must be between %s and %s', "1", "31"));
}
});

View File

@ -50,7 +50,7 @@
'min' => '0',
'additionalCssClasses' => 'input-group-chore-period-type',
'invalidFeedback' => $__t('This cannot be negative'),
'hintId' => 'chore-period-type-info',
'additionalHtmlElements' => '<span id="chore-period-type-info" class="small text-muted"></span>',
'additionalGroupCssClasses' => 'period-type-input period-type-dynamic-regular period-type-monthly'
))