Skip to content

Commit

Permalink
MDL-27309 Blocks: command node is taken from dockitem during restore
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Oct 4, 2012
1 parent c5575c6 commit 32d5bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/dock.js
Expand Up @@ -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();
Expand Down

0 comments on commit 32d5bad

Please sign in to comment.