-
Bug
-
Resolution: Fixed
-
Major
-
2.3
-
MOODLE_23_STABLE
-
MOODLE_23_STABLE
-
MDL-33890-master-2 -
-
In contributed themes like Aardvark Post-IT and Aerie which have custom block-regions set in the layout, the new AJAX Drag n Drop feature does not allow you to move blocks into these designated areas.
On further inspection of this problem, it has come to light that the main 'block-regions' like 'region-pre' snd 'region-post' have been hard coded in lib/yui/blocks/blocks.js
var regionid = this.get_region_id(blockregionlist.item(0));
|
if (regionid === 'post') {
|
// pre block is missing, instert it before post
|
blockregion.setAttrs({id : 'region-pre'});
|
blockregionlist.item(0).insert(blockregion, 'before');
|
blockregionlist.unshift(blockregion);
|
} else {
|
// post block is missing, instert it after pre
|
blockregion.setAttrs({id : 'region-post'});
|
blockregionlist.item(0).insert(blockregion, 'after');
|
blockregionlist.push(blockregion);
|
}
|