navigation MDL-22445 Fixed docking issue on multiple dock+undock actions

This commit is contained in:
Sam Hemelryk
2010-05-19 08:08:48 +00:00
parent 4d2ee4c2c0
commit f61e46ed33
+4
View File
@@ -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('<div class="commands"></div>');
this.cachedcontentnode.one('.title').append(blockcommands);
}
var moveto = this.Y.Node.create('<a class="moveto customcommand requiresjs"></a>');
moveto.append(this.Y.Node.create('<img src="'+M.util.image_url('t/dock_to_block', 'moodle')+'" alt="'+M.str.block.undockitem+'" title="'+M.str.block.undockitem+'" />'));
if (location.href.match(/\?/)) {