| Línea 108... |
Línea 108... |
| 108 |
cmid: cmid,
|
108 |
cmid: cmid,
|
| 109 |
activityname: activityname,
|
109 |
activityname: activityname,
|
| 110 |
overallcomplete: completed,
|
110 |
overallcomplete: completed,
|
| 111 |
overallincomplete: !completed,
|
111 |
overallincomplete: !completed,
|
| 112 |
istrackeduser: true, // We know that we're tracking completion for this user given the presence of this button.
|
112 |
istrackeduser: true, // We know that we're tracking completion for this user given the presence of this button.
|
| - |
|
113 |
normalbutton: !toggleButton.classList.contains('btn-sm'),
|
| 113 |
};
|
114 |
};
|
| 114 |
const renderObject = await Templates.renderForPromise('core_course/completion_manual', templateContext);
|
115 |
const renderObject = await Templates.renderForPromise('core_course/completion_manual', templateContext);
|
| Línea 115... |
Línea 116... |
| 115 |
|
116 |
|
| 116 |
// Replace the toggle button with the newly loaded template.
|
117 |
// Replace the toggle button with the newly loaded template.
|