mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Update rrule.js to v2.7.2-14-g9f2061f (#5538) (Z#23210685)
* Update rrule.js to v2.7.2-14-g9f2061f * Prevent negative count
This commit is contained in:
@@ -79,7 +79,7 @@ $(document).on("pretix:bind-forms", function () {
|
||||
|
||||
var end = $form.find("input[name*=end]:checked").val();
|
||||
if (end === "count") {
|
||||
rule_args.count = parseInt($form.find("input[name*=count]").val()) || 1;
|
||||
rule_args.count = Math.max(parseInt($form.find("input[name*=count]").val()) || 1, 1);
|
||||
} else {
|
||||
var date = $form.find("input[name*=until]").data("DateTimePicker").date();
|
||||
if (date !== null) {
|
||||
|
||||
5101
src/pretix/static/rrule/rrule.js
vendored
5101
src/pretix/static/rrule/rrule.js
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user