Merge branch 'MDL-77922-400' of https://github.com/lameze/moodle into MOODLE_400_STABLE

This commit is contained in:
Jun Pataleta
2023-04-20 16:10:21 +08:00
3 changed files with 6 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
@@ -258,6 +258,8 @@ export default class extends BaseComponent {
event.preventDefault();
const pendingModalReady = new Pending(`courseformat/actions:prepareMoveCmModal`);
// The section edit menu to refocus on end.
const editTools = this._getClosestActionMenuToogler(target);
@@ -333,6 +335,8 @@ export default class extends BaseComponent {
this.reactive.dispatch('cmMove', [cmId], targetSectionId, targetCmId);
this._destroyModal(modal, editTools);
});
pendingModalReady.resolve();
}
/**