mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-68439 qtype_ddwtos: UI issues
- Fixed cursor for dropped ddwtos - Fixed the animation of "flying back to the home position" starts off at the right end of the previous line"
This commit is contained in:
parent
9df4a4de18
commit
51de017235
2
question/type/ddwtos/amd/build/ddwtos.min.js
vendored
2
question/type/ddwtos/amd/build/ddwtos.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -314,11 +314,11 @@ define(['jquery', 'core/dragdrop', 'core/key_codes'], function($, dragDrop, keys
|
||||
// Is there already a drag in this drop? if so, evict it.
|
||||
var oldDrag = this.getCurrentDragInPlace(this.getPlace(drop));
|
||||
if (oldDrag.length !== 0) {
|
||||
oldDrag.addClass('beingdragged');
|
||||
oldDrag.offset(oldDrag.offset());
|
||||
var currentPlace = this.getClassnameNumericSuffix(oldDrag, 'inplace');
|
||||
var hiddenDrop = this.getDrop(oldDrag, currentPlace);
|
||||
hiddenDrop.addClass('active');
|
||||
oldDrag.addClass('beingdragged');
|
||||
oldDrag.offset(hiddenDrop.offset());
|
||||
this.sendDragHome(oldDrag);
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.que.ddwtos .readonly .draghome {
|
||||
.que.ddwtos.qtype_ddwtos-readonly .draghome {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user