MDL-36607: Improve block drag and drop

* Adding support for subpage
* Adding support for regions that do not start with "side-"
This commit is contained in:
Mark Nielsen
2012-12-10 14:12:57 +13:00
committed by Sam Hemelryk
parent 9d8abffc87
commit e893c6d442
3 changed files with 14 additions and 1 deletions
+1
View File
@@ -4493,6 +4493,7 @@ function include_course_ajax($course, $usedmodules = array(), $enabledmodules =
'courseid' => $course->id,
'pagetype' => $PAGE->pagetype,
'pagelayout' => $PAGE->pagelayout,
'subpage' => $PAGE->subpage,
'regions' => $PAGE->blocks->get_regions(),
);
$PAGE->requires->yui_module('moodle-core-blocks', 'M.core_blocks.init_dragdrop', array($params), null, true);