Hide only the Fisnish Test button in Reading Comprehension question

See ab0ef42bf3

Resolves #2082
pull/2818/head
Angel Fernando Quiroz Campos 6 years ago
parent 77097cccc5
commit 8433ae1dad
  1. 5
      main/template/default/exercise/reading_comprehension.html.twig

@ -90,6 +90,7 @@
$(document).on('ready', function () { $(document).on('ready', function () {
var index = 0, var index = 0,
$questionTexts = $('#question-{{ id }}-text .text-highlight'), $questionTexts = $('#question-{{ id }}-text .text-highlight'),
$btnFinish = $('#question_div_{{ id }} .form-actions button.question-validate-btn'),
total = $questionTexts.length, total = $questionTexts.length,
timeOuId = null; timeOuId = null;
@ -100,7 +101,7 @@
if (index == total - 1) { if (index == total - 1) {
$('#question_div_{{ id }} .radio, #question_div_{{ id }} .question_title').removeClass('hide-reading-answers'); $('#question_div_{{ id }} .radio, #question_div_{{ id }} .question_title').removeClass('hide-reading-answers');
$('#question_div_{{ id }} .form-actions').show(); $btnFinish.show();
} }
if (index >= total) { if (index >= total) {
@ -132,7 +133,7 @@
timeOuId = window.setInterval(updateView, {{ refresh_time }} * 1000); timeOuId = window.setInterval(updateView, {{ refresh_time }} * 1000);
} }
$('#question_div_{{ id }} .form-actions').hide(); $btnFinish.hide();
{% if exercise_type == 1 %} {% if exercise_type == 1 %}
$('#question-{{ id }}-start').on('click', function (e) { $('#question-{{ id }}-start').on('click', function (e) {

Loading…
Cancel
Save