Permalink
Browse files

MDL-32742: Remove right div swapping

Swapping div.right is not required, as toolboxes determine section id on each toggle event.
  • Loading branch information...
1 parent e16e230 commit a7d0e1fdb5cd8978e13e649b4a4f86a3914239a5 Ruslan Kabalin committed May 9, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −4 course/format/topics/format.js
  2. +0 −3 course/format/weeks/format.js
View
5 course/format/topics/format.js
@@ -26,15 +26,12 @@ M.course.format.swap_sections = function(Y, node1, node2) {
var CSS = {
COURSECONTENT : 'course-content',
LEFT : 'left',
- RIGHT : 'right',
- SECTIONADDMENUS : 'section_add_menus',
+ SECTIONADDMENUS : 'section_add_menus'
};
var sectionlist = Y.Node.all('.'+CSS.COURSECONTENT+' '+M.course.format.get_section_selector(Y));
// Swap left block
sectionlist.item(node1).one('.'+CSS.LEFT).swap(sectionlist.item(node2).one('.'+CSS.LEFT));
- // Swap right block
- sectionlist.item(node1).one('.'+CSS.RIGHT).swap(sectionlist.item(node2).one('.'+CSS.RIGHT));
// Swap menus
sectionlist.item(node1).one('.'+CSS.SECTIONADDMENUS).swap(sectionlist.item(node2).one('.'+CSS.SECTIONADDMENUS));
}
View
3 course/format/weeks/format.js
@@ -26,16 +26,13 @@ M.course.format.swap_sections = function(Y, node1, node2) {
var CSS = {
COURSECONTENT : 'course-content',
LEFT : 'left',
- RIGHT : 'right',
SECTIONADDMENUS : 'section_add_menus',
WEEKDATES: 'weekdates'
};
var sectionlist = Y.Node.all('.'+CSS.COURSECONTENT+' '+M.course.format.get_section_selector(Y));
// Swap left block
sectionlist.item(node1).one('.'+CSS.LEFT).swap(sectionlist.item(node2).one('.'+CSS.LEFT));
- // Swap right block
- sectionlist.item(node1).one('.'+CSS.RIGHT).swap(sectionlist.item(node2).one('.'+CSS.RIGHT));
// Swap menus
sectionlist.item(node1).one('.'+CSS.SECTIONADDMENUS).swap(sectionlist.item(node2).one('.'+CSS.SECTIONADDMENUS));
// Swap week dates

0 comments on commit a7d0e1f

Please sign in to comment.