diff --git a/blocks/dock.js b/blocks/dock.js index 73c2b9f0385..503a646f12b 100644 --- a/blocks/dock.js +++ b/blocks/dock.js @@ -388,6 +388,10 @@ M.core_dock = { blocktitle = this.fix_title_orientation(blocktitle); var blockcommands = this.cachedcontentnode.one('.title .commands'); + if (!blockcommands) { + blockcommands = this.Y.Node.create('
'); + this.cachedcontentnode.one('.title').append(blockcommands); + } var moveto = this.Y.Node.create(''); moveto.append(this.Y.Node.create(''+M.str.block.undockitem+'')); if (location.href.match(/\?/)) {