diff options
author | mahesh | 2018-02-16 16:30:55 +0530 |
---|---|---|
committer | maheshgudi | 2018-03-16 15:17:20 +0530 |
commit | 140b6c6a06269cc39eae192605f623c7818e9260 (patch) | |
tree | 23cb79c0dd0931120cf0959e35534fad8118e321 /yaksh/static | |
parent | 366f9adce899b4cfd1e7a0e9a74dd5602fb0345a (diff) | |
download | online_test-140b6c6a06269cc39eae192605f623c7818e9260.tar.gz online_test-140b6c6a06269cc39eae192605f623c7818e9260.tar.bz2 online_test-140b6c6a06269cc39eae192605f623c7818e9260.zip |
Add shuffle_testcases to QuestionPaper model instead of Question
Diffstat (limited to 'yaksh/static')
-rw-r--r-- | yaksh/static/yaksh/js/add_question.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/yaksh/static/yaksh/js/add_question.js b/yaksh/static/yaksh/js/add_question.js index 579904b..0f02aab 100644 --- a/yaksh/static/yaksh/js/add_question.js +++ b/yaksh/static/yaksh/js/add_question.js @@ -143,23 +143,6 @@ function textareaformat() $("#id_grade_assignment_upload").prop("disabled", true); } }); - - if (document.getElementById('id_shuffle_testcases').checked || - question_type == "mcc" || question_type == "mcq"){ - $("#id_shuffle_testcases").prop("disabled", false); - } - else{ - $("#id_shuffle_testcases").prop("disabled", true); - } - - $('#id_type').change(function() { - if ($(this).val() == "mcc" || $(this).val() == "mcq"){ - $("#id_shuffle_testcases").prop("disabled", false); - } - else{ - $("#id_shuffle_testcases").prop("disabled", true); - } - }); } function autosubmit() |