Loading plugins/correction/correction.js +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ class CorrectionPlugin extends Plugin{ } setCorrVisible(){ if($('#toggle_corr').is(":checked")) if(document.getElementById('toggle_corr').checked) { this.on(); localStorage.setItem(MAX_LOCAL_STORAGE_PREFIX + CORR_CLASS, MAX_VISIBLE_PROPERTY_STRING); Loading ui/js/MaxTEI.js +8 −3 Original line number Diff line number Diff line Loading @@ -158,11 +158,16 @@ class MaxTEI extends AbstractMax { */ setClassVisibility(className) { if ($('#toggle_' + className).prop("checked")) { $("." + className).show(); if (document.getElementById('toggle_' + className).checked) { document.querySelectorAll('.'+className).forEach((e) => { e.style.display=''; }) localStorage.setItem(window.MAX_LOCAL_STORAGE_PREFIX + className, window.MAX_VISIBLE_PROPERTY_STRING); } else { $("." + className).hide(); //$("." + className).hide(); document.querySelectorAll('.'+className).forEach((e) => { e.style.display='none' }) localStorage.removeItem(window.MAX_LOCAL_STORAGE_PREFIX + className); } } Loading Loading
plugins/correction/correction.js +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ class CorrectionPlugin extends Plugin{ } setCorrVisible(){ if($('#toggle_corr').is(":checked")) if(document.getElementById('toggle_corr').checked) { this.on(); localStorage.setItem(MAX_LOCAL_STORAGE_PREFIX + CORR_CLASS, MAX_VISIBLE_PROPERTY_STRING); Loading
ui/js/MaxTEI.js +8 −3 Original line number Diff line number Diff line Loading @@ -158,11 +158,16 @@ class MaxTEI extends AbstractMax { */ setClassVisibility(className) { if ($('#toggle_' + className).prop("checked")) { $("." + className).show(); if (document.getElementById('toggle_' + className).checked) { document.querySelectorAll('.'+className).forEach((e) => { e.style.display=''; }) localStorage.setItem(window.MAX_LOCAL_STORAGE_PREFIX + className, window.MAX_VISIBLE_PROPERTY_STRING); } else { $("." + className).hide(); //$("." + className).hide(); document.querySelectorAll('.'+className).forEach((e) => { e.style.display='none' }) localStorage.removeItem(window.MAX_LOCAL_STORAGE_PREFIX + className); } } Loading