mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-45045 block theme: Fake blocks show empty region when editing and clicked.
This commit is contained in:
parent
1a727e121e
commit
625fc64c73
@ -449,6 +449,7 @@ class block_manager {
|
||||
if (!isset($bc->attributes['data-block'])) {
|
||||
$bc->attributes['data-block'] = '_fake';
|
||||
}
|
||||
$bc->attributes['class'] .= ' block_fake';
|
||||
$this->extracontent[$region][] = $bc;
|
||||
}
|
||||
|
||||
|
@ -473,7 +473,7 @@ MANAGER.prototype = {
|
||||
nodes: '.'+CSS.BLOCK,
|
||||
target: true,
|
||||
handles: [SELECTOR.DRAGHANDLE],
|
||||
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, {
|
||||
|
File diff suppressed because one or more lines are too long
@ -472,7 +472,7 @@ MANAGER.prototype = {
|
||||
nodes: '.'+CSS.BLOCK,
|
||||
target: true,
|
||||
handles: [SELECTOR.DRAGHANDLE],
|
||||
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, {
|
||||
|
2
lib/yui/src/blocks/js/manager.js
vendored
2
lib/yui/src/blocks/js/manager.js
vendored
@ -99,7 +99,7 @@ MANAGER.prototype = {
|
||||
nodes: '.'+CSS.BLOCK,
|
||||
target: true,
|
||||
handles: [SELECTOR.DRAGHANDLE],
|
||||
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, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user