MDL-38367 course dndupload - workaround to allow 'add X here' text to be drop target in Firefox

This commit is contained in:
Davo Smith
2013-03-11 22:44:55 +00:00
parent 66079e28fd
commit 413bca9f76
+4 -1
View File
@@ -503,7 +503,10 @@ M.course_dndupload = {
this.hide_preview_element();
var preview = section.one('li.dndupload-preview').removeClass('dndupload-hidden');
section.addClass('dndupload-over');
preview.one('span').setContent(type.addmessage);
// Horrible work-around to allow the 'Add X here' text to be a drop target in Firefox.
var node = preview.one('span')._node;
node.firstChild.nodeValue = type.addmessage;
},
/**