From da7014b32635f47d0fd66931ce5961e54f82ae94 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 24 Feb 2015 14:13:38 +0530 Subject: Answer is now saved from the question navigator as well --- testapp/exam/templates/exam/question.html | 20 ++++++++++++++------ testapp/exam/views.py | 23 +++++++++++++++++++++++ 2 files changed, 37 insertions(+), 6 deletions(-) (limited to 'testapp/exam') diff --git a/testapp/exam/templates/exam/question.html b/testapp/exam/templates/exam/question.html index 96e7bd6..5d03b37 100644 --- a/testapp/exam/templates/exam/question.html +++ b/testapp/exam/templates/exam/question.html @@ -48,7 +48,12 @@ function setSnippetHeight() ta.style.height = height; autoresize(); } - +function call_skip(url) +{ + form = document.forms["code"] + form.action = url + form.submit(); +} {% endblock script %} @@ -82,17 +87,18 @@ function setSnippetHeight() +