diff --git a/application/controllers/Cron.php b/application/controllers/Cron.php index c2f5cf02f..acc9a274d 100644 --- a/application/controllers/Cron.php +++ b/application/controllers/Cron.php @@ -178,7 +178,7 @@ class cron extends CI_Controller { } private function cronExpression2html($expression) { - $htmlret = ''.$expression.''; + $htmlret = ''.$expression.''; return $htmlret; } diff --git a/application/views/cron/index.php b/application/views/cron/index.php index 27fd9c878..464fdfdab 100644 --- a/application/views/cron/index.php +++ b/application/views/cron/index.php @@ -54,7 +54,7 @@ disabled - ' . $cron->expression . ''; ?> + ' . $cron->expression . ''; ?> last_run ?? 'never'; ?> enabled == '1') { echo $cron->next_run ?? 'never'; diff --git a/assets/js/sections/cron.js b/assets/js/sections/cron.js index 9be519917..46f0f0fc3 100644 --- a/assets/js/sections/cron.js +++ b/assets/js/sections/cron.js @@ -1,6 +1,5 @@ $(document).ready(function () { - init_datatable() - init_expression_tooltips(); + init_datatable(); $(document).on('click', '.editCron', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS editCronDialog(e); @@ -53,6 +52,7 @@ function init_datatable() { } ] }); + init_expression_tooltips(); } function editCronDialog(e) {