mirror of
https://github.com/moodle/moodle.git
synced 2025-03-17 14:10:08 +01:00
Merge branch 'MDL-35767-master' of git://git.luns.net.uk/moodle
This commit is contained in:
commit
e12a3e64ac
4
lib/yui/dragdrop/dragdrop.js
vendored
4
lib/yui/dragdrop/dragdrop.js
vendored
@ -167,6 +167,10 @@ YUI.add('moodle-core-dragdrop', function(Y) {
|
||||
// this.lastdroptarget (ghost node we use for indicating where to drop)
|
||||
e.drag = e.target;
|
||||
e.drop = this.lastdroptarget;
|
||||
// Check that drag object belongs to correct group
|
||||
if (!this.in_group(e.drag)) {
|
||||
return;
|
||||
}
|
||||
// Check that drop object belong to correct group
|
||||
if (!e.drop || !e.drop.inGroup(this.groups)) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user