summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
authorMahesh Gudi2018-03-21 13:48:56 +0000
committerGitHub2018-03-21 13:48:56 +0000
commit9a5918700857ee7b912221e1df850bb0288262c2 (patch)
tree367ef8a4e85b0b6643836ab83786f9e7e8c00d95 /yaksh/static
parente244cd285669d3de80a764d75eecbb46b6d3fd63 (diff)
parent4b356aa2f6097cd0f46292218f31ded18b631e53 (diff)
downloadonline_test-9a5918700857ee7b912221e1df850bb0288262c2.tar.gz
online_test-9a5918700857ee7b912221e1df850bb0288262c2.tar.bz2
online_test-9a5918700857ee7b912221e1df850bb0288262c2.zip
Merge branch 'master' into fix_quiz_completion
Diffstat (limited to 'yaksh/static')
-rw-r--r--yaksh/static/yaksh/js/add_question.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/static/yaksh/js/add_question.js b/yaksh/static/yaksh/js/add_question.js
index 346991a..0f02aab 100644
--- a/yaksh/static/yaksh/js/add_question.js
+++ b/yaksh/static/yaksh/js/add_question.js
@@ -126,8 +126,9 @@ function textareaformat()
document.getElementById('my').innerHTML = document.getElementById('id_description').value ;
document.getElementById('rend_solution').innerHTML = document.getElementById('id_solution').value ;
+ var question_type = document.getElementById('id_type').value
if (document.getElementById('id_grade_assignment_upload').checked ||
- document.getElementById('id_type').value == 'upload'){
+ question_type == 'upload'){
$("#id_grade_assignment_upload").prop("disabled", false);
}
else{