Skip to content

Commit

Permalink
Merge branch 'MDL-45124-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Apr 23, 2014
2 parents a544822 + d278280 commit 8ddcb3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion course/dndupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,12 @@ M.course_dndupload = {
types_includes: function(e, type) {
var i;
var types = e._event.dataTransfer.types;
type = type.toLowerCase();
for (i=0; i<types.length; i++) {
if (types[i] == type) {
if (!types.hasOwnProperty(i)) {
continue;
}
if (types[i].toLowerCase() === type) {
return true;
}
}
Expand Down

0 comments on commit 8ddcb3f

Please sign in to comment.