mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
fixed cronstrue converter
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user