mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
Merge branch 'MDL-33588-master-1' of git://git.luns.net.uk/moodle
This commit is contained in:
commit
ac961e292a
6
lib/yui/dragdrop/dragdrop.js
vendored
6
lib/yui/dragdrop/dragdrop.js
vendored
@ -135,7 +135,7 @@ YUI.add('moodle-core-dragdrop', function(Y) {
|
||||
|
||||
global_drop_over : function(e) {
|
||||
// Check that drop object belong to correct group
|
||||
if (!e.drop.inGroup(this.groups)) {
|
||||
if (!e.drop || !e.drop.inGroup(this.groups)) {
|
||||
return;
|
||||
}
|
||||
//Get a reference to our drag and drop nodes
|
||||
@ -168,7 +168,7 @@ YUI.add('moodle-core-dragdrop', function(Y) {
|
||||
// this.lastdroptarget (ghost node we use for indicating where to drop)
|
||||
e.drag = e.target;
|
||||
// Check that drop object belong to correct group
|
||||
if (!e.drag.target.inGroup(this.groups)) {
|
||||
if (!e.drop || !e.drop.inGroup(this.groups)) {
|
||||
return;
|
||||
}
|
||||
e.drop = this.lastdroptarget;
|
||||
@ -177,7 +177,7 @@ YUI.add('moodle-core-dragdrop', function(Y) {
|
||||
|
||||
global_drop_hit : function(e) {
|
||||
// Check that drop object belong to correct group
|
||||
if (!e.drop.inGroup(this.groups)) {
|
||||
if (!e.drop || !e.drop.inGroup(this.groups)) {
|
||||
return;
|
||||
}
|
||||
this.drop_hit(e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user