Commit 8a40531b by Chris Dodge

tweeks to template html/js

parent 8acba50f
...@@ -10,15 +10,17 @@ ...@@ -10,15 +10,17 @@
<strong> <strong>
{% trans "In order to successfully pass this exam you will have to answer the following questions and problems in the time allotted." %} {% trans "In order to successfully pass this exam you will have to answer the following questions and problems in the time allotted." %}
</strong> </strong>
{% blocktrans %}
Once you proceed, you'll start both the exam and the {{total_time|lower}} given to you. Once you proceed, you'll start both the exam and the {{total_time|lower}} given to you.
{% endblocktrans %}
</p> </p>
<div class="gated-sequence"> <div class="gated-sequence">
{% blocktrans %} <a class='start-timed-exam' data-ajax-url="{{enter_exam_endpoint}}" data-exam-id="{{exam_id}}">
I'm ready! Start this timed exam. {% blocktrans %}
<a class='start-timed-exam' data-ajax-url="{{enter_exam_endpoint}}"> I'm ready! Start this timed exam.
{% endblocktrans %}
<i class="fa fa-arrow-circle-right"></i> <i class="fa fa-arrow-circle-right"></i>
</a> </a>
{% endblocktrans %}
</div> </div>
</div> </div>
{% include 'proctoring/seq_timed_exam_footer.html' %} {% include 'proctoring/seq_timed_exam_footer.html' %}
...@@ -26,9 +28,9 @@ ...@@ -26,9 +28,9 @@
<script type="text/javascript"> <script type="text/javascript">
$('.start-timed-exam').click( $('.start-timed-exam').click(
function(event) { function(event) {
var target = $(event.target); var action_url = $(this).data('ajax-url');
var action_url = target.data('ajax-url'); var exam_id = $(this).data('exam-id');
var exam_id = target.parent().parent().data('exam-id');
$.post( $.post(
action_url, action_url,
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment