Skip to content

Commit 904ff85

Browse files
author
Daniel Ureña
committed
Modified Javascript inside mustache
1 parent 2ff0065 commit 904ff85

File tree

7 files changed

+6
-32
lines changed

7 files changed

+6
-32
lines changed

amd/build/contributedstrings.min.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

amd/build/contributedstrings.min.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

amd/build/listcontributors.min.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

amd/build/listcontributors.min.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

amd/src/contributedstrings.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

amd/src/listcontributors.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

templates/frontpage.mustache

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@
2525

2626
{{#js}}
2727
{{#contributedstrings}}
28-
require(['local_amos/contributedstrings'], function(contributedstrings) {
29-
contributedstrings.init('{{{contributedstrings}}}');
28+
const contributedstringsElements = document.querySelectorAll('.contributedstrings');
29+
contributedstringsElements.forEach(element => {
30+
element.textContent = '{{{contributedstrings}}}';
3031
});
3132
{{/contributedstrings}}
3233
{{#listcontributors}}
33-
require(['local_amos/listcontributors'], function(listcontributors) {
34-
listcontributors.init('{{#str}} contributethanks, local_amos, { "listcontributors": {{#quote}} {{{listcontributors}}} {{/quote}} } {{/str}}');
34+
const listcontributorsElements = document.querySelectorAll('.listcontributors');
35+
listcontributorsElements.forEach(element => {
36+
element.innerHTML = '{{#str}} contributethanks, local_amos, { "listcontributors": {{#quote}} {{{listcontributors}}} {{/quote}} } {{/str}}';
3537
});
3638
{{/listcontributors}}
3739
{{/js}}

0 commit comments

Comments
 (0)