Skip to content

Commit

Permalink
Address yet another comment from code checker
Browse files Browse the repository at this point in the history
  • Loading branch information
FMCorz committed Apr 23, 2024
1 parent bbc2016 commit 0a439ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/completion-rules-scope-switcher.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
</div>
{{#js}}
require(['block_xp/course-selector'], function(CourseSelector) {
const trigger = document.getElementById('block_xp-course-selector-{{uniqid}}');
const courseUrlTemplate = "{{ courseurltemplate }}";
trigger.addEventListener('click', () => {
var trigger = document.getElementById('block_xp-course-selector-{{uniqid}}');
var courseUrlTemplate = "{{ courseurltemplate }}";
trigger.addEventListener('click', function() => {
CourseSelector.openCourseSelector(function(course) {
window.location.href = courseUrlTemplate.replace('CONTEXTID', course.contextid);
});
Expand Down

0 comments on commit 0a439ff

Please sign in to comment.