Skip to content
Snippets Groups Projects

Resolve "Page figée après une permutation de sections"

Merged Jean-François Lemoine (Paris Nanterre) requested to merge 3-permutation-de-sections into master
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -42,7 +42,10 @@ M.course.format.swap_sections = function(Y, node1, node2) {
@@ -42,7 +42,10 @@ M.course.format.swap_sections = function(Y, node1, node2) {
SECTIONADDMENUS: 'section_add_menus'
SECTIONADDMENUS: 'section_add_menus'
};
};
var sectionlist = Y.Node.all('.' + CSS.COURSECONTENT + ' ' + M.course.format.get_section_selector(Y));
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) {
M.course.format.process_sections = function(Y, sectionlist, response, sectionfrom, sectionto) {
Loading