Commit 81722c3b by Muhammad Hasnain Naveed

Merge pull request #123 from edx/hasnain/revert-commit-d58d6895

reverting the commit
parents 374864f4 c4550056
......@@ -25,7 +25,7 @@
{% endblocktrans %}
</p>
<i class="fa fa-arrow-circle-right"></i>
<i class="fa fa-arrow-circle-right start-timed-exam" data-ajax-url="{{enter_exam_endpoint}}" data-exam-id="{{exam_id}}" data-attempt-proctored=true data-start-immediately=false></i>
</button>
<button class="gated-sequence start-timed-exam" data-ajax-url="{{enter_exam_endpoint}}" data-exam-id="{{exam_id}}" data-attempt-proctored=false data-start-immediately=true>
<span><i class="fa fa-unlock"></i></span>
......@@ -44,22 +44,12 @@
{% include 'proctoring/seq_proctored_exam_footer.html' %}
<script type="text/javascript">
var selector = $('.start-timed-exam');
selector.click(
$('.start-timed-exam').click(
function(event) {
var action_url = selector.data('ajax-url');
var exam_id = selector.data('exam-id');
var attempt_proctored = selector.data('attempt-proctored');
var start_immediately = selector.data('start-immediately');
// unbind the click event to prevent the multiple calls
selector.unbind('click');
// adding class for moving cursor and to change the color of button
selector.parent().addClass('disable-proctored-exam-btn');
var action_url = $(this).data('ajax-url');
var exam_id = $(this).data('exam-id');
var attempt_proctored = $(this).data('attempt-proctored');
var start_immediately = $(this).data('start-immediately');
if (!attempt_proctored) {
var msg = gettext(
......@@ -82,11 +72,6 @@
"start_clock": start_immediately
},
function(data) {
// remove the class and bind the click event
selector.parent().removeClass('disable-proctored-exam-btn');
selector.bind('click');
// reload the page, because we've unlocked it
location.reload();
}
......
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