From 573017fa02c6892efad9f209bc17906349dff589 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Fri, 26 Apr 2024 01:02:55 +0200 Subject: [PATCH] fixed cronstrue converter --- application/controllers/Cron.php | 2 +- application/views/cron/index.php | 2 +- assets/js/sections/cron.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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) {