Skip to content

feat(webserver): pause auto-refresh while checkboxes are selected - #213

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

feat(webserver): pause auto-refresh while checkboxes are selected#213
ngosang merged 1 commit into
amule-org:masterfrom
ngosang:feature/issues13

Conversation

@ngosang

@ngosang ngosang commented Jun 20, 2026

Copy link
Copy Markdown
Member

Replace the unconditional in the default template with a JS setInterval that reloads on the same cadence but skips the reload whenever any checkbox is checked, so the user's in-progress selection is never wiped out from under them.

The mechanism is now applied uniformly across all main pages:

  • dload, kad, stats: replaced the old with the JS guard.
  • search, shared, servers: gained the auto-refresh (none before), each reusing the same guarded block for consistency.

The log pages are intentionally left unchanged: the container has no checkboxes and its log content already self-refreshes inside its iframes, so a full-page reload would only reset iframe scroll for no benefit.

Replace the unconditional <meta http-equiv="refresh"> in the default
template with a JS setInterval that reloads on the same cadence but skips
the reload whenever any checkbox is checked, so the user's in-progress
selection is never wiped out from under them.

The mechanism is now applied uniformly across all main pages:
- dload, kad, stats: replaced the old <meta refresh> with the JS guard.
- search, shared, servers: gained the auto-refresh (none before), each
  reusing the same guarded block for consistency.

The log pages are intentionally left unchanged: the container has no
checkboxes and its log content already self-refreshes inside its iframes,
so a full-page reload would only reset iframe scroll for no benefit.
@ngosang
ngosang merged commit 2effbb2 into amule-org:master Jun 20, 2026
10 checks passed
@ngosang
ngosang deleted the feature/issues13 branch June 20, 2026 17:32
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