mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-20 06:40:51 +00:00
refactor: remove comments that restate the code under website/
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
14eb4a19b8
commit
d58e8d835a
6 changed files with 0 additions and 82 deletions
|
|
@ -271,10 +271,8 @@ function updateSortIndicators() {
|
|||
});
|
||||
}
|
||||
|
||||
// Expand/collapse: event delegation on tbody
|
||||
if (tbody) {
|
||||
tbody.addEventListener("click", function (e) {
|
||||
// Don't toggle if clicking a link
|
||||
if (e.target.closest("a")) return;
|
||||
|
||||
let row = e.target.closest("tr.row");
|
||||
|
|
@ -287,7 +285,6 @@ if (tbody) {
|
|||
setRowOpen(row, !row.classList.contains("open"));
|
||||
});
|
||||
|
||||
// Keyboard: Enter or Space on focused .row toggles expand
|
||||
tbody.addEventListener("keydown", function (e) {
|
||||
if (e.key !== "Enter" && e.key !== " ") return;
|
||||
if (e.target.closest("a")) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue