summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
authorPrabhu Ramachandran2018-03-21 18:11:32 +0530
committerGitHub2018-03-21 18:11:32 +0530
commitb569eec5ef66b13eca8b6895802f4ee40cdb568d (patch)
tree31bcd3d4a8eec287b201ab69893be908bea5db4e /yaksh/static
parent06abd01fd28eb10aafd18dd60b790549e0233edc (diff)
parent4a5463d753c9af41d85a6be33257012c17d2ab15 (diff)
downloadonline_test-b569eec5ef66b13eca8b6895802f4ee40cdb568d.tar.gz
online_test-b569eec5ef66b13eca8b6895802f4ee40cdb568d.tar.bz2
online_test-b569eec5ef66b13eca8b6895802f4ee40cdb568d.zip
Merge pull request #429 from maheshgudi/shuffle_testcases
Shuffle testcases
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{