]> git.kaiwu.me - haproxy.git/commit
DEV: patchbot: keep the review start in sync with the radios on reload
authorWilly Tarreau <w@1wt.eu>
Mon, 6 Jul 2026 18:33:03 +0000 (20:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Jul 2026 08:58:38 +0000 (10:58 +0200)
commitb39d2afe4887855aaa8c540207c356f22dc984d8
tree024dfb11ef77c78b7a053e3826892c06538d7ff8
parent3596904a8db13bbd22cbafea2f476258dbe961aa
DEV: patchbot: keep the review start in sync with the radios on reload

When the page is reloaded, the browser restores the "review" radio
column to the user's last selection (e.g. "All"), but the "review" JS
variable is regenerated to the default first line to review: the
listing then restarts from that line while "All" still appears
selected, and one has to click a random line then "All" again to
really see everything.

Give an id to each line's review radio and resynchronize the variable
from the actually checked radio when the page loads: a restored "All"
(or any restored line) now behaves as selected, and on a fresh load the
checked radio is the generated one so nothing changes.
dev/patchbot/scripts/post-ai.sh