Skip to content

Commit 98e8fa3

Browse files
authored
Merge pull request #125 from DigiDago/dev
[FIX] - Fix issue with picture not able to be change
2 parents 71ab025 + ec511d6 commit 98e8fa3

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

templates/content.mustache

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
{{#js}}
5353
require(['core_courseformat/local/content'], function(component) {
54-
component.init('{{uniqid}}-course-format', {}, {{sectionreturn}});
54+
component.init('{{uniqid}}-course-format', {}, {{sectionreturn}});
5555
});
5656

5757
document.body.addEventListener('click', function (event) {
@@ -106,22 +106,27 @@
106106
}
107107
}
108108

109-
var rtime;
110-
var timeout = false;
111-
var delta = 200;
112-
$(window).resize(function() {
113-
rtime = new Date();
114-
if (timeout === false) {
115-
timeout = true;
116-
setTimeout(resizeend, delta);
117-
}});
118109

119-
function resizeend() {
120-
if (new Date() - rtime < delta) {
110+
require(['jquery'], function ($) {
111+
var rtime;
112+
var timeout = false;
113+
var delta = 200;
114+
115+
$(window).resize(function() {
116+
rtime = new Date();
117+
if (timeout === false) {
118+
timeout = true;
121119
setTimeout(resizeend, delta);
122-
} else {
123-
timeout = false;
124-
texttruncate('softcourse-section-summary');
125120
}
126-
}
121+
});
122+
123+
function resizeend() {
124+
if (new Date() - rtime < delta) {
125+
setTimeout(resizeend, delta);
126+
} else {
127+
timeout = false;
128+
texttruncate('softcourse-section-summary');
129+
}
130+
}
131+
});
127132
{{/js}}

version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
defined('MOODLE_INTERNAL') || die();
2626

27-
$plugin->version = 2024101601; // The current plugin version (Date: YYYYMMDDXX).
27+
$plugin->version = 2025011400; // The current plugin version (Date: YYYYMMDDXX).
2828
$plugin->requires = 2022032200; // Requires this Moodle version.
2929
$plugin->component = 'format_softcourse'; // Full name of the plugin (used for diagnostics).
30-
$plugin->release = '4.05';
30+
$plugin->release = '4.05.1';
3131
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)