Skip to content

feat(webserver): add select-all checkbox to file tables in default template - #212

Merged
ngosang merged 1 commit into
amule-org:masterfrom
ngosang:feature/issues12
Jun 20, 2026
Merged

feat(webserver): add select-all checkbox to file tables in default template#212
ngosang merged 1 commit into
amule-org:masterfrom
ngosang:feature/issues12

Conversation

@ngosang

@ngosang ngosang commented Jun 20, 2026

Copy link
Copy Markdown
Member

Add a master checkbox in the table header of the Downloads, Search and Shared pages that toggles every row checkbox at once, instead of having to tick files one by one.

  • Add a JS selectAll(check) helper to each page that walks all input[type=checkbox] in the document and sets them to check.checked.
  • Replace the empty header cell with containing the master checkbox (onclick="selectAll(this)"). The al-left class matches the left alignment of the row checkbox cells, which would otherwise center.
  • Name the master checkbox selectAllFiles (not a 32-char hash) so the command-processing loop, which only acts on 32-char file-hash names, ignores it automatically.

…mplate

Add a master checkbox in the table header of the Downloads, Search and
Shared pages that toggles every row checkbox at once, instead of having
to tick files one by one.

- Add a JS selectAll(check) helper to each page that walks all
  input[type=checkbox] in the document and sets them to check.checked.
- Replace the empty header cell with <th class="al-left"> containing the
  master checkbox (onclick="selectAll(this)"). The al-left class matches
  the left alignment of the row checkbox cells, which <th> would
  otherwise center.
- Name the master checkbox selectAllFiles (not a 32-char hash) so the
  command-processing loop, which only acts on 32-char file-hash names,
  ignores it automatically.

No backend changes; all logic is client-side.
@ngosang
ngosang merged commit b3d6f9f into amule-org:master Jun 20, 2026
10 checks passed
@ngosang
ngosang deleted the feature/issues12 branch June 20, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant