Skip to content

Commit

Permalink
more local storage update
Browse files Browse the repository at this point in the history
  • Loading branch information
aanunez committed Nov 28, 2022
1 parent cf9032c commit 59416a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/viewTweaks.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ $(document).ready(() => {
const updateStorage = (event = false) => {
let storage = JSON.parse(localStorage.getItem(localStorageKey) || '{}');
const report = module.getUrlParameter('report_id');
storage[report] ??= {};
storage[report] ??= location.href.includes("ctri-redcap.dom.wisc.edu") ? { hideEventCol: true, hideRepeatCols: true } : {};
if (event) { // if called as an event
$("#rtCheckboxes input").each((_, el) => { storage[report][$(el).attr('id')] = $(el).is(':checked') });
localStorage.setItem(localStorageKey, JSON.stringify(storage));
Expand Down

0 comments on commit 59416a4

Please sign in to comment.