fix: stop checkbox click in admin index from navigating to recapitulatif

This commit is contained in:
Pontoporeia
2026-05-10 19:53:01 +02:00
parent f28a20d642
commit 11e6eed980
3 changed files with 15 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ $sortArrow = function(string $col) use ($sortCol, $sortDir): string {
<?php else: ?>
<?php foreach ($theses as $thesis): ?>
<tr class="admin-table-row" onclick="event.stopPropagation(); window.location='/admin/recapitulatif.php?id=<?= $thesis['id'] ?>'" style="cursor:pointer">
<td><input type="checkbox" name="selected_theses[]" value="<?= $thesis['id'] ?>"></td>
<td onclick="event.stopPropagation()"><input type="checkbox" name="selected_theses[]" value="<?= $thesis['id'] ?>"></td>
<td class="admin-table-id"><?= htmlspecialchars($thesis['identifier'] ?? $thesis['id']) ?></td>
<td>
<div class="thesis-title" title="<?= htmlspecialchars($thesis['title']) ?>"><?= htmlspecialchars($thesis['title']) ?></div>