mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
fix: stop checkbox click in admin index from navigating to recapitulatif
This commit is contained in:
1
TODO.md
1
TODO.md
@@ -8,6 +8,7 @@
|
|||||||
- [x] Add double-submit guard (`_xamxamActiveSubmit`)
|
- [x] Add double-submit guard (`_xamxamActiveSubmit`)
|
||||||
- [x] Fix spurious HTMX console warnings from checkbox-list default hx-include
|
- [x] Fix spurious HTMX console warnings from checkbox-list default hx-include
|
||||||
- [x] Fix duplicate language entries (accented vs non-accented variants)
|
- [x] Fix duplicate language entries (accented vs non-accented variants)
|
||||||
|
- [x] Fix checkbox click in admin index navigating to recapitulatif instead of toggling
|
||||||
- [x] Deduplicate getPredefinedLanguages() query
|
- [x] Deduplicate getPredefinedLanguages() query
|
||||||
- [x] Accent-tolerant getOrCreateLanguage() to prevent future duplicates
|
- [x] Accent-tolerant getOrCreateLanguage() to prevent future duplicates
|
||||||
- [x] Delete orphan non-accented language rows from DB
|
- [x] Delete orphan non-accented language rows from DB
|
||||||
|
|||||||
@@ -285,6 +285,19 @@
|
|||||||
+%%%%%%% diff from: somsyvxz 249f7943 "Bulk bar anti-shift, tags icons, AP no-wrap, credits reorder" (rebased revision)
|
+%%%%%%% diff from: somsyvxz 249f7943 "Bulk bar anti-shift, tags icons, AP no-wrap, credits reorder" (rebased revision)
|
||||||
+\\\\\\\ to: ymrzpvln 01fd03c9 "fix: spurious HTMX console warnings from checkbox-list default hx-include" (rebased revision)
|
+\\\\\\\ to: ymrzpvln 01fd03c9 "fix: spurious HTMX console warnings from checkbox-list default hx-include" (rebased revision)
|
||||||
++ $linkName = $link['name'] ?? '';
|
++ $linkName = $link['name'] ?? '';
|
||||||
|
++ $linkExpiresVal = $link['expires_at'] ? date('Y-m-d\TH:i', strtotime($link['expires_at'])) : '';
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff from: ymrzpvln 01fd03c9 "fix: spurious HTMX console warnings from checkbox-list default hx-include" (rebased revision)
|
||||||
|
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ to: somsyvxz 249f7943 "Bulk bar anti-shift, tags icons, AP no-wrap, credits reorder" (rebased revision)
|
||||||
|
- $linkName = $link['name'] ?? '';
|
||||||
|
- $linkExpiresVal = $link['expires_at'] ? date('Y-m-d\TH:i', strtotime($link['expires_at'])) : '';
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff from: somsyvxz 14a3cd10 "Bulk bar anti-shift, tags icons, AP no-wrap, credits reorder" (rebase destination)
|
||||||
|
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ to: urrtosru f5c94076 "fix: stop checkbox click in admin index from navigating to recapitulatif" (rebased revision)
|
||||||
|
$linkName = $link['name'] ?? '';
|
||||||
|
$linkExpiresVal = $link['expires_at'] ? date('Y-m-d\TH:i', strtotime($link['expires_at'])) : '';
|
||||||
|
$linkLockedYear = $link['locked_year'] ?? null;
|
||||||
|
+%%%%%%% diff from: somsyvxz 249f7943 "Bulk bar anti-shift, tags icons, AP no-wrap, credits reorder" (rebased revision)
|
||||||
|
+\\\\\\\ to: urrtosru e83a3728 "fix: stop checkbox click in admin index from navigating to recapitulatif" (rebased revision)
|
||||||
|
++ $linkName = $link['name'] ?? '';
|
||||||
++ $linkExpiresVal = $link['expires_at'] ? date('Y-m-d\TH:i', strtotime($link['expires_at'])) : '';
|
++ $linkExpiresVal = $link['expires_at'] ? date('Y-m-d\TH:i', strtotime($link['expires_at'])) : '';
|
||||||
?>
|
?>
|
||||||
<tr class="admin-table-row" onclick="event.stopPropagation(); window.open('/partage/<?= urlencode($link['slug']) ?>', '_blank')" style="cursor:pointer">
|
<tr class="admin-table-row" onclick="event.stopPropagation(); window.open('/partage/<?= urlencode($link['slug']) ?>', '_blank')" style="cursor:pointer">
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ $sortArrow = function(string $col) use ($sortCol, $sortDir): string {
|
|||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php foreach ($theses as $thesis): ?>
|
<?php foreach ($theses as $thesis): ?>
|
||||||
<tr class="admin-table-row" onclick="event.stopPropagation(); window.location='/admin/recapitulatif.php?id=<?= $thesis['id'] ?>'" style="cursor:pointer">
|
<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 class="admin-table-id"><?= htmlspecialchars($thesis['identifier'] ?? $thesis['id']) ?></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="thesis-title" title="<?= htmlspecialchars($thesis['title']) ?>"><?= htmlspecialchars($thesis['title']) ?></div>
|
<div class="thesis-title" title="<?= htmlspecialchars($thesis['title']) ?>"><?= htmlspecialchars($thesis['title']) ?></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user