Skip to content

Commit

Permalink
MDL-45045 block theme: Fake blocks show empty region when editing and…
Browse files Browse the repository at this point in the history
… clicked.
  • Loading branch information
gjb2048 committed Apr 11, 2014
1 parent 9257294 commit a95e278
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/blocklib.php
Expand Up @@ -478,6 +478,7 @@ public function add_fake_block($bc, $region) {
throw new coding_exception('block_manager has already prepared the blocks in region ' .
$region . 'for output. It is too late to add a fake block.');
}
$bc->attributes['class'] .= ' block_fake';
$this->extracontent[$region][] = $bc;
}

Expand Down
Expand Up @@ -492,7 +492,7 @@ MANAGER.prototype = {
nodes: '.'+CSS.BLOCK,
target: true,
handles: ['.'+CSS.HEADER],
invalid: '.block-hider-hide, .block-hider-show, .moveto',
invalid: '.block-hider-hide, .block-hider-show, .moveto, .block_fake',
dragConfig: {groups: this.groups}
});
dragdelegation.dd.plug(Y.Plugin.DDProxy, {
Expand Down
2 changes: 1 addition & 1 deletion lib/yui/build/moodle-core-blocks/moodle-core-blocks-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/yui/build/moodle-core-blocks/moodle-core-blocks.js
Expand Up @@ -488,7 +488,7 @@ MANAGER.prototype = {
nodes: '.'+CSS.BLOCK,
target: true,
handles: ['.'+CSS.HEADER],
invalid: '.block-hider-hide, .block-hider-show, .moveto',
invalid: '.block-hider-hide, .block-hider-show, .moveto, .block_fake',
dragConfig: {groups: this.groups}
});
dragdelegation.dd.plug(Y.Plugin.DDProxy, {
Expand Down
2 changes: 1 addition & 1 deletion lib/yui/src/blocks/js/manager.js
Expand Up @@ -99,7 +99,7 @@ MANAGER.prototype = {
nodes: '.'+CSS.BLOCK,
target: true,
handles: ['.'+CSS.HEADER],
invalid: '.block-hider-hide, .block-hider-show, .moveto',
invalid: '.block-hider-hide, .block-hider-show, .moveto, .block_fake',
dragConfig: {groups: this.groups}
});
dragdelegation.dd.plug(Y.Plugin.DDProxy, {
Expand Down

0 comments on commit a95e278

Please sign in to comment.