diff --git a/application/views/cron/edit.php b/application/views/cron/edit.php index cc1ec5ca2..d69afe2c7 100644 --- a/application/views/cron/edit.php +++ b/application/views/cron/edit.php @@ -22,9 +22,7 @@ Enabled
- enabled ?? '0') { - echo 'checked'; - } ?>> + enabled ?? '0') { echo 'checked'; } ?>>
@@ -64,7 +62,7 @@

- OR -

Enter your own Cron Expression

- + diff --git a/assets/js/sections/cron.js b/assets/js/sections/cron.js index 709abc52e..604ee8020 100644 --- a/assets/js/sections/cron.js +++ b/assets/js/sections/cron.js @@ -94,7 +94,7 @@ function editCron() { var $cron_id = $('#edit_cron_id').val(); var $cron_description = $('#edit_cron_description').val(); var $cron_expression = $('#edit_cron_expression_custom').val(); - var $cron_enabled = $('#edit_' + $cron_id).is(':checked') ? '1' : '0'; + var $cron_enabled = $('#edit_' + $cron_id).is(':checked') ? 'true' : 'false'; $.ajax({ url: base_url + 'index.php/cron/edit', @@ -107,7 +107,6 @@ function editCron() { }, success: function (data) { reloadCrons(); - console.log('edit success'); }, error: function (data) { },