Catch invalid cron entry and reset to default
This commit is contained in:
@@ -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 {
|
||||||
|
try {
|
||||||
cron_widget.cron('value', '${newsletter['cron']}');
|
cron_widget.cron('value', '${newsletter['cron']}');
|
||||||
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleCustomCron() {
|
function toggleCustomCron() {
|
||||||
|
|||||||
Reference in New Issue
Block a user