mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
Merge branch 'MDL-66245-master' of git://github.com/junpataleta/moodle
This commit is contained in:
commit
c68080c4c2
@ -62,7 +62,11 @@ function loadContent(datafile, callback) {
|
||||
}
|
||||
|
||||
newscript.type = 'text/javascript';
|
||||
newscript.src = encodeURIComponent(data);
|
||||
var dataParts = data.split('/');
|
||||
dataParts.forEach(function(part, index) {
|
||||
this[index] = encodeURIComponent(part);
|
||||
}, dataParts);
|
||||
newscript.src = dataParts.join('/');
|
||||
newscript.charset = 'utf-8';
|
||||
document.getElementsByTagName("head")[0].appendChild(newscript);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user