Skip to content
Browse files

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

  • Loading branch information...
1 parent c5575c6 commit 32d5bad1e1d3ad876b83e9ae22d1bddbf41234d7 @rajeshtaneja rajeshtaneja committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/dock.js
View
2 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();

0 comments on commit 32d5bad

Please sign in to comment.
Something went wrong with that request. Please try again.