Commit 8b23032d authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

nettoyage js, correctif toggle sur txt_options.

parent 8dcbb12d
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -72,14 +72,12 @@ class MaxTEI extends AbstractMax {
                document.querySelectorAll("." + optionName).forEach((e) => {
                    e.style.display = 'inline';
                })
                //$("." + optionName).show();
            } else {
                e.removeAttribute('checked');
                //updates visibility
                document.querySelectorAll("." + optionName).forEach((e) => {
                    e.style.display = 'hidden';
                    e.style.display = 'none';
                })
                //$("." + optionName).hide();
            }

        });
@@ -101,7 +99,6 @@ class MaxTEI extends AbstractMax {
            let originalTop = manchette.offsetTop//$(this).position().top;
            //déplacement de la note dans la colonne prévue
            marginNode.append(manchette);
            //$(this).appendTo("#margin_notes");
            //mise à jour top (+anti-chevauchement)
            let newTop = originalTop;
            if (previousNote != null && previousNote.offsetTop) {
@@ -111,7 +108,6 @@ class MaxTEI extends AbstractMax {
                }
            }
            manchette.style.top = newTop + "px";
            //$(this).css("top", newTop + "px");
            previousNote = manchette;//$(this);
        });

@@ -164,7 +160,6 @@ class MaxTEI extends AbstractMax {
            })
            localStorage.setItem(window.MAX_LOCAL_STORAGE_PREFIX + className, window.MAX_VISIBLE_PROPERTY_STRING);
        } else {
            //$("." + className).hide();
            document.querySelectorAll('.'+className).forEach((e) => {
                e.style.display='none'
            })