diff --git lib/yui/src/blocks/js/blocks.js lib/yui/src/blocks/js/blocks.js index 06a82eacaa6897b5537e5c9362f3bc7d3de4d713..1588b67af0816ea5c8bb95197f3d2d18047e3359 100644 --- lib/yui/src/blocks/js/blocks.js +++ lib/yui/src/blocks/js/blocks.js @@ -43,7 +43,7 @@ Y.extend(DRAGBLOCK, M.core.dragdrop, { this.parentnodeclass = CSS.REGIONCONTENT; // Add relevant classes and ID to 'content' block region on My Home page. - var myhomecontent = Y.Node.all('body#'+CSS.MYINDEX+' #'+CSS.REGIONMAIN+' > .'+CSS.REGIONCONTENT); + var myhomecontent = Y.Node.all('body#'+CSS.MYINDEX+' #'+CSS.REGIONMAIN+' .'+CSS.REGIONCONTENT); if (myhomecontent.size() > 0) { var contentregion = myhomecontent.item(0); contentregion.addClass(CSS.BLOCKREGION); diff --git lib/yui/src/blocks/js/manager.js lib/yui/src/blocks/js/manager.js index 11d5e8795d7b865073be918dba860644c93564b9..87c038b0aef811715122871fef05a465b2176b30 100644 --- lib/yui/src/blocks/js/manager.js +++ lib/yui/src/blocks/js/manager.js @@ -67,11 +67,13 @@ MANAGER.prototype = { this.parentnodeclass = CSS.BLOCKREGION; // Add relevant classes and ID to 'content' block region on My Home page. - var myhomecontent = Y.Node.all('body#'+CSS.MYINDEX+' #'+CSS.REGIONMAIN+' > .'+CSS.REGIONCONTENT); + var myhomecontent = Y.Node.all('body#'+CSS.MYINDEX+' #'+CSS.REGIONMAIN+' .'+CSS.REGIONCONTENT); if (myhomecontent.size() > 0) { var contentregion = myhomecontent.item(0); contentregion.addClass(CSS.BLOCKREGION); - contentregion.set('id', CSS.REGIONCONTENT); + contentregion.set('id', 'block-' + CSS.REGIONCONTENT); + contentregion.setAttribute('data-blockregion', 'content'); + contentregion.setAttribute('data-droptarget', '1'); contentregion.one('div').addClass(CSS.REGIONCONTENT); } diff --git theme/clean/layout/columns3.php theme/clean/layout/columns3.php index 3f342ce64d8450eebce5fb7a0fa6e9138c5fda1c..ee2d2e294ef430568c11b3c8779560e61ed2adf7 100644 --- theme/clean/layout/columns3.php +++ theme/clean/layout/columns3.php @@ -87,11 +87,13 @@ echo $OUTPUT->doctype() ?>