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:
parent
397ceeadd4
commit
7b706529a4
1 changed files with 3 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue