mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-45124-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
8ddcb3ff8c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user