|
|
|
@ -25,7 +25,7 @@ |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="list-row__side"> |
|
|
|
<div class="list-row__side"> |
|
|
|
<button type="button" class="btn btn-ghost btn-start-pass" data-test-id="{{ t.id }}">Пройти</button> |
|
|
|
<button type="button" class="btn btn-ghost btn-start-pass" data-test-id="{{ t.id }}">Продолжить</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
@ -49,7 +49,7 @@ |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="list-row__side"> |
|
|
|
<div class="list-row__side"> |
|
|
|
<button type="button" class="btn btn-ghost btn-start-pass" data-test-id="{{ t.id }}">Пройти</button> |
|
|
|
<button type="button" class="btn btn-ghost btn-start-pass" data-test-id="{{ t.id }}">Продолжить</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
@ -199,8 +199,7 @@ |
|
|
|
const testId = btn.dataset.testId; |
|
|
|
const testId = btn.dataset.testId; |
|
|
|
if (!testId) return; |
|
|
|
if (!testId) return; |
|
|
|
btn.disabled = true; |
|
|
|
btn.disabled = true; |
|
|
|
const oldText = btn.textContent; |
|
|
|
btn.textContent = 'Продолжить…'; |
|
|
|
btn.textContent = '…'; |
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
const r = await fetch(`/api/tests/${testId}/attempts/start`, { |
|
|
|
const r = await fetch(`/api/tests/${testId}/attempts/start`, { |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
|