Skip to content

Commit 503033a

Browse files
committed
patch
1 parent 42d04b7 commit 503033a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

www/public/resources/js/task.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ $(document).on('change','input:radio[name="task-schedule-type"]',function () {
5555
$('.task-schedule-form-params[action="' + action + '"]').find('.task-schedule-recurring-day-input').hide();
5656
$('.task-schedule-form-params[action="' + action + '"]').find('.task-schedule-recurring-monthly-input').hide();
5757
$('.task-schedule-form-params[action="' + action + '"]').find('.task-schedule-recurring-cron-input').hide();
58+
$('input[type="checkbox"][param-name="schedule-notify-error"]').prop('checked', true);
59+
$('input[type="checkbox"][param-name="schedule-notify-success"]').prop('checked', true);
5860
}
5961

6062
/**
@@ -64,6 +66,9 @@ $(document).on('change','input:radio[name="task-schedule-type"]',function () {
6466
$('.task-schedule-form-params[action="' + action + '"]').find('.task-schedule-recurring-frequency-input').show();
6567
$('.task-schedule-form-params[action="' + action + '"]').find('.task-schedule-unique-input').hide();
6668
$('.task-schedule-form-params[action="' + action + '"]').find('.task-schedule-recurring-cron-input').hide();
69+
// Disable notification on success by default for recurring tasks to avoid spamming users with notifications
70+
$('input[type="checkbox"][param-name="schedule-notify-error"]').prop('checked', true);
71+
$('input[type="checkbox"][param-name="schedule-notify-success"]').prop('checked', false);
6772
}
6873
}).trigger('change');
6974

www/views/includes/forms/tasks/schedule.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191

9292
<div class="task-schedule-recurring-cron-input hide">
9393
<h6 class="required">CRON EXPRESSION</h6>
94+
<p class="note">Format: minute hour day month weekday.</p>
9495
<input type="text" class="task-param" param-name="schedule-cron" placeholder="*/15 * * * *" />
95-
<p class="note">Format: minute hour day month weekday</p>
9696
</div>
9797
<?php
9898
endif;

0 commit comments

Comments
 (0)