Bug 33484: Remove localStorage on logout

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-10-03 15:30:06 +02:00 committed by Katrin Fischer
parent 397ceeadd4
commit 7b706529a4
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -435,6 +435,9 @@ function logOut() {
localStorage.removeItem("patron_search_selections");
localStorage.removeItem("item_search_selections");
localStorage.removeItem("copiedPermissions");
// Remove DataTables states
Object.keys(localStorage).forEach(k => {if (k.match(/^DataTables_/)) { localStorage.removeItem(k)}});
}
function openHelp() {