mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 04:49:36 -07:00
Catch invalid cron entry and reset to default
This commit is contained in:
parent
5ef8947532
commit
9699129a38
1 changed files with 3 additions and 1 deletions
|
@ -415,7 +415,9 @@
|
||||||
if (${newsletter['config']['custom_cron']}) {
|
if (${newsletter['config']['custom_cron']}) {
|
||||||
$('#cron_value').val('${newsletter['cron']}');
|
$('#cron_value').val('${newsletter['cron']}');
|
||||||
} else {
|
} else {
|
||||||
cron_widget.cron('value', '${newsletter['cron']}');
|
try {
|
||||||
|
cron_widget.cron('value', '${newsletter['cron']}');
|
||||||
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleCustomCron() {
|
function toggleCustomCron() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue