fixed cronstrue converter

This commit is contained in:
HB9HIL
2024-04-26 01:02:55 +02:00
parent 1d3e849839
commit 573017fa02
3 changed files with 4 additions and 4 deletions

View File

@@ -178,7 +178,7 @@ class cron extends CI_Controller {
}
private function cronExpression2html($expression) {
$htmlret = '<code>'.$expression.'</code>';
$htmlret = '<code id="humanreadable_tooltip" data-bs-toggle="tooltip">'.$expression.'</code>';
return $htmlret;
}

View File

@@ -54,7 +54,7 @@
<span class="badge text-bg-secondary">disabled</span>
<?php } ?>
</td>
<td style="vertical-align: middle;" id="humanreadable_tooltip" data-bs-toggle="tooltip"><?php echo '<code>' . $cron->expression . '</code>'; ?></td>
<td style="vertical-align: middle;"><?php echo '<code id="humanreadable_tooltip" data-bs-toggle="tooltip">' . $cron->expression . '</code>'; ?></td>
<td style="vertical-align: middle;"><?php echo $cron->last_run ?? 'never'; ?></td>
<td style="vertical-align: middle;"><?php if ($cron->enabled == '1') {
echo $cron->next_run ?? 'never';

View File

@@ -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) {