Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iena
iena-course-format
Commits
b64f2116
Commit
b64f2116
authored
Feb 07, 2022
by
comete-upn
Browse files
Ne permuter les menus de section que s’ils existent.
parent
511d99b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
format.js
View file @
b64f2116
...
...
@@ -42,7 +42,10 @@ M.course.format.swap_sections = function(Y, node1, node2) {
SECTIONADDMENUS
:
'
section_add_menus
'
};
var
sectionlist
=
Y
.
Node
.
all
(
'
.
'
+
CSS
.
COURSECONTENT
+
'
'
+
M
.
course
.
format
.
get_section_selector
(
Y
));
sectionlist
.
item
(
node1
).
one
(
'
.
'
+
CSS
.
SECTIONADDMENUS
).
swap
(
sectionlist
.
item
(
node2
).
one
(
'
.
'
+
CSS
.
SECTIONADDMENUS
));
// Swap the non-ajax menus, noting these are not always present (depends on theme and user prefs).
if
(
sectionlist
.
item
(
node1
).
one
(
'
.
'
+
CSS
.
SECTIONADDMENUS
))
{
sectionlist
.
item
(
node1
).
one
(
'
.
'
+
CSS
.
SECTIONADDMENUS
).
swap
(
sectionlist
.
item
(
node2
).
one
(
'
.
'
+
CSS
.
SECTIONADDMENUS
));
}
};
M
.
course
.
format
.
process_sections
=
function
(
Y
,
sectionlist
,
response
,
sectionfrom
,
sectionto
)
{
...
...
Write
Preview
Markdown
is supported
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