mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-27309 Blocks: command node is taken from dockitem during restore
This commit is contained in:
parent
5d6285c220
commit
ecc8ce88c6
@ -958,7 +958,7 @@ M.core_dock.genericblock.prototype = {
|
||||
placeholder.replace(this.Y.Node.getDOMNode(this.cachedcontentnode));
|
||||
this.cachedcontentnode = this.Y.one('#'+this.cachedcontentnode.get('id'));
|
||||
|
||||
var commands = this.cachedcontentnode.one('.title .commands');
|
||||
var commands = dockitem.commands;
|
||||
if (commands) {
|
||||
commands.all('.hidepanelicon').remove();
|
||||
commands.all('.moveto').remove();
|
||||
|
Loading…
x
Reference in New Issue
Block a user