Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit ecc8ce88c662afb42cf277e3f0ee893d2d748737 1 parent 5d6285c
Rajesh Taneja authored October 04, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  blocks/dock.js
2  blocks/dock.js
@@ -958,7 +958,7 @@ M.core_dock.genericblock.prototype = {
958 958
         placeholder.replace(this.Y.Node.getDOMNode(this.cachedcontentnode));
959 959
         this.cachedcontentnode = this.Y.one('#'+this.cachedcontentnode.get('id'));
960 960
 
961  
-        var commands = this.cachedcontentnode.one('.title .commands');
  961
+        var commands = dockitem.commands;
962 962
         if (commands) {
963 963
             commands.all('.hidepanelicon').remove();
964 964
             commands.all('.moveto').remove();

0 notes on commit ecc8ce8

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