Skip to content

Commit

Permalink
Merge branch 'MDL-71228-master-v02' of git://github.com/ferranrecio/m…
Browse files Browse the repository at this point in the history
…oodle
  • Loading branch information
junpataleta committed Sep 13, 2021
2 parents 5fad3cd + 7659a18 commit 355e30c
Show file tree
Hide file tree
Showing 62 changed files with 2,038 additions and 311 deletions.
2 changes: 1 addition & 1 deletion course/amd/build/actions.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion course/amd/build/actions.min.js.map

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions course/amd/src/actions.js
Expand Up @@ -279,11 +279,12 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/str'
*
* Used after d&d of the module to another section
*
* @param {JQuery} activityElement
* @param {JQuery|Element} element
* @param {Number} cmid
* @param {Number} sectionreturn
*/
var refreshModule = function(activityElement, cmid, sectionreturn) {
var refreshModule = function(element, cmid, sectionreturn) {
const activityElement = $(element);
var spinner = addActivitySpinner(activityElement);
var promises = ajax.call([{
methodname: 'core_course_get_module',
Expand Down Expand Up @@ -766,6 +767,8 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/str'
log.debug('replaceSectionActionItem() is deprecated and will be removed.');
var actionitem = sectionelement.find(SELECTOR.SECTIONACTIONMENU + ' ' + selector);
replaceActionItem(actionitem, image, stringname, stringcomponent, newaction);
}
},
// Method to refresh a module.
refreshModule,
};
});
2 changes: 1 addition & 1 deletion course/format/amd/build/courseeditor.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions course/format/amd/build/local/content.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 355e30c

Please sign in to comment.