mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
cd09777dbd
This allows an adminsitrator or a user with 'moodle/course:recommendactivity' to recommend activities in the activity chooser.
3 lines
619 B
JavaScript
3 lines
619 B
JavaScript
define ("core_course/recommendations",["exports","core/ajax","core/notification"],function(a,b,c){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.init=void 0;b=d(b);c=d(c);function d(a){return a&&a.__esModule?a:{default:a}}var e=function(a){var d={methodname:"core_course_toggle_activity_recommendation",args:{area:a.currentTarget.dataset.area,id:a.currentTarget.dataset.id}};b.default.call([d])[0].fail(c.default.exception)};a.init=function init(){var a=document.querySelectorAll("[data-area]");a.forEach(function(a){a.addEventListener("change",e)})}});
|
|
//# sourceMappingURL=recommendations.min.js.map
|