mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
fix: lms quiz type error (#21153)
This commit is contained in:
@@ -29,7 +29,7 @@ class Quiz {
|
|||||||
this.questions.push(question)
|
this.questions.push(question)
|
||||||
this.wrapper.appendChild(question_wrapper);
|
this.wrapper.appendChild(question_wrapper);
|
||||||
})
|
})
|
||||||
if (data.activity.is_complete) {
|
if (data.activity && data.activity.is_complete) {
|
||||||
this.disable()
|
this.disable()
|
||||||
let indicator = 'red'
|
let indicator = 'red'
|
||||||
let message = 'Your are not allowed to attempt the quiz again.'
|
let message = 'Your are not allowed to attempt the quiz again.'
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h1>{{ content.name }} <span class="small text-muted">({{ position + 1 }}/{{length}})</span></h1>
|
<h2>{{ content.name }} <span class="small text-muted">({{ position + 1 }}/{{length}})</span></h2>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user