]> git.proxmox.com Git - pmg-gui.git/commit
quarantine: restore behavior of selecting next in list after action
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Apr 2021 11:40:03 +0000 (13:40 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Apr 2021 11:42:53 +0000 (13:42 +0200)
commit642aba90edfd35c03104dbf645ff1e5b6f8a13be
tree6a202a78a7cc9b71af22d6adc9e56db4239a9599
parent9b4247fbf29823f3413713053af0ce442949c79c
quarantine: restore behavior of selecting next in list after action

This fixes a UX regression stemming from the recently introduced
commit 9aed379a700a0bc3bc26fa32d43a5bab75eb206b
"spam quarantine: avoid full store reload on single-element actions"

A load restored the saved selection after load complete, with the
neat and very useful feature to jump to the next in line if the old
one did not exist anymore.

Call this now factored out code part ourself in the fast-path.

This was reported in the forum:
https://forum.proxmox.com/threads/proxmox-mail-gateway-6-4-released.86760/#post-380971

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/SpamQuarantine.js