File tree Expand file tree Collapse file tree 2 files changed +23
-18
lines changed Expand file tree Collapse file tree 2 files changed +23
-18
lines changed Original file line number Diff line number Diff line change 51
51
52
52
{ {#js} }
53
53
require(['core_courseformat/local/content'], function(component) {
54
- component.init(' {{uniqid}}-course-format' , {} , { {sectionreturn} });
54
+ component.init(' {{uniqid}}-course-format' , {} , { {sectionreturn} });
55
55
});
56
56
57
57
document.body.addEventListener('click', function (event) {
106
106
}
107
107
}
108
108
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
- } });
118
109
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 ;
121
119
setTimeout(resizeend, delta);
122
- } else {
123
- timeout = false ;
124
- texttruncate(' softcourse-section-summary' );
125
120
}
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
+ });
127
132
{ {/js} }
Original file line number Diff line number Diff line change 24
24
25
25
defined ('MOODLE_INTERNAL ' ) || die ();
26
26
27
- $ plugin ->version = 2024101601 ; // The current plugin version (Date: YYYYMMDDXX).
27
+ $ plugin ->version = 2025011400 ; // The current plugin version (Date: YYYYMMDDXX).
28
28
$ plugin ->requires = 2022032200 ; // Requires this Moodle version.
29
29
$ plugin ->component = 'format_softcourse ' ; // Full name of the plugin (used for diagnostics).
30
- $ plugin ->release = '4.05 ' ;
30
+ $ plugin ->release = '4.05.1 ' ;
31
31
$ plugin ->maturity = MATURITY_STABLE ;
You can’t perform that action at this time.
0 commit comments