Made download a JS call

This commit is contained in:
Andreas Kristiansen
2025-01-30 21:07:58 +01:00
parent 8da0dc38e3
commit a25132d5cb
3 changed files with 29 additions and 5 deletions

View File

@@ -144,7 +144,7 @@ class Clublog extends CI_Controller
$this->load->model('clublog_model');
$customDate = $this->input->post('from');
$customDate = $this->input->post('date');
if ($customDate != NULL) {
$clublog_last_date = date($customDate);
} else {
@@ -161,7 +161,8 @@ class Clublog extends CI_Controller
$r = __("No user has configured Clublog.");
}
echo $r;
header('Content-type: application/json');
echo json_encode($r);
}
}