summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/grade_user.html
diff options
context:
space:
mode:
authorHardik Ghaghada2013-04-26 16:40:34 +0530
committerHardik Ghaghada2013-04-26 16:40:34 +0530
commitc8b68813ca80aee16261e5f02d541ed48712feae (patch)
tree85ee9038f09b7aab4fb1b57cbb444108736f708e /testapp/templates/exam/grade_user.html
parent1dd9573cfaa0587cd3217495847a0b456ceb6223 (diff)
downloadonline_test-c8b68813ca80aee16261e5f02d541ed48712feae.tar.gz
online_test-c8b68813ca80aee16261e5f02d541ed48712feae.tar.bz2
online_test-c8b68813ca80aee16261e5f02d541ed48712feae.zip
Dumped JS from HTML pages to separate JS files
Diffstat (limited to 'testapp/templates/exam/grade_user.html')
-rw-r--r--testapp/templates/exam/grade_user.html17
1 files changed, 2 insertions, 15 deletions
diff --git a/testapp/templates/exam/grade_user.html b/testapp/templates/exam/grade_user.html
index 58e118b..ae9274e 100644
--- a/testapp/templates/exam/grade_user.html
+++ b/testapp/templates/exam/grade_user.html
@@ -9,20 +9,7 @@
{% endblock %}
{% block script %}
-<script type='text/javascript'>
-function data(showHideDiv)
-{
- var ele=document.getElementById(showHideDiv);
- if (ele.style.display=="block")
- {
- ele.style.display = "none";
- }
- else
- {
- ele.style.display = "block";
- }
-}
-</script>
+<script src= "{{ URL_ROOT }}/static/exam/js/edit_question.js"></script>
{% endblock %}
{% block manage %}
@@ -59,7 +46,7 @@ Start time: {{ paper.start_time }} <br/>
<p><strong>
Question: {{ question.id }}. {{ question.summary }} (Points: {{ question.points }})
</strong>
-<strong><a href="" onClick="data('myContent{{question.id}}'); return false;" style="cursor:pointer;" />Details</strong></p></a>
+<strong><a href="" onClick="grade_data('myContent{{question.id}}'); return false;" style="cursor:pointer;" />Details</strong></p></a>
<div id="contentDiv">
<div id="myContent{{question.id}}" style="padding:5px; display:none;">
<p> Description : {{ question.description }} </p>