mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Fixed chore edit form - period type hint did not work (references #151)
This commit is contained in:
parent
fe8bb43996
commit
98fcd767b3
@ -117,6 +117,6 @@ $('.input-group-chore-period-type').on('change', function(e)
|
|||||||
$("label[for='period_days']").text(__t("Day of month"));
|
$("label[for='period_days']").text(__t("Day of month"));
|
||||||
$("#period_days").attr("min", "1");
|
$("#period_days").attr("min", "1");
|
||||||
$("#period_days").attr("max", "31");
|
$("#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"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
'min' => '0',
|
'min' => '0',
|
||||||
'additionalCssClasses' => 'input-group-chore-period-type',
|
'additionalCssClasses' => 'input-group-chore-period-type',
|
||||||
'invalidFeedback' => $__t('This cannot be negative'),
|
'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'
|
'additionalGroupCssClasses' => 'period-type-input period-type-dynamic-regular period-type-monthly'
|
||||||
))
|
))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user