Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pdn-certic
MaX
Commits
8b23032d
Commit
8b23032d
authored
Apr 01, 2022
by
Jerome Chauveau
Browse files
nettoyage js, correctif toggle sur txt_options.
parent
8dcbb12d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/js/MaxTEI.js
View file @
8b23032d
...
...
@@ -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
'
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment