Merge branch 'MDL-75978-401' of https://github.com/JBThong/moodle into MOODLE_401_STABLE

This commit is contained in:
Andrew Nicols 2023-01-27 12:34:04 +08:00
commit 0a4f551fff
3 changed files with 7 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -393,6 +393,11 @@ define([
drop.focus();
}
} else {
// Prevent the drag item drop into two drop-zone.
if (this.getClassnameNumericSuffix(drag, 'inplace')) {
return;
}
this.setInputValue(this.getPlace(drop), this.getChoice(drag));
drag.removeClass('unplaced')
.addClass('placed inplace' + this.getPlace(drop));