Commit 4547551d authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

des restes de jquery...

parent 715183c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+8 −3
Original line number Diff line number Diff line
@@ -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);
        }
    }