Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-38367 course dndupload - workaround to allow 'add X here' text to…

… be drop target in Firefox
  • Loading branch information...
commit 413bca9f765f358c279865e2e990fa792b3e9872 1 parent 66079e2
@davosmith davosmith authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 course/dndupload.js
View
5 course/dndupload.js
@@ -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;
},
/**
Please sign in to comment.
Something went wrong with that request. Please try again.