From ecc8ce88c662afb42cf277e3f0ee893d2d748737 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Thu, 4 Oct 2012 15:17:42 +0800 Subject: [PATCH] MDL-27309 Blocks: command node is taken from dockitem during restore --- blocks/dock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/dock.js b/blocks/dock.js index 4eff68cee88..3c8a31b24e3 100644 --- a/blocks/dock.js +++ b/blocks/dock.js @@ -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();