Permalink
Browse files

MDL-27309 Blocks: command node is taken from dockitem during restore

  • Loading branch information...
1 parent 5d6285c commit ecc8ce88c662afb42cf277e3f0ee893d2d748737 Rajesh Taneja committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/dock.js
View
@@ -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();

0 comments on commit ecc8ce8

Please sign in to comment.