Catch invalid cron entry and reset to default

This commit is contained in:
JonnyWong16 2018-04-02 14:50:01 -07:00
commit 9699129a38

View file

@ -415,7 +415,9 @@
if (${newsletter['config']['custom_cron']}) {
$('#cron_value').val('${newsletter['cron']}');
} else {
cron_widget.cron('value', '${newsletter['cron']}');
try {
cron_widget.cron('value', '${newsletter['cron']}');
} catch (e) {}
}
function toggleCustomCron() {