diff options
author | mahesh | 2018-02-16 16:30:55 +0530 |
---|---|---|
committer | maheshgudi | 2018-03-16 15:15:50 +0530 |
commit | f531b9ca9c088263a53aff8574e93b74945b468f (patch) | |
tree | 23cb79c0dd0931120cf0959e35534fad8118e321 /yaksh/static | |
parent | 337daeef8954a1be20164c5fb27050e67597b8a2 (diff) | |
download | online_test-f531b9ca9c088263a53aff8574e93b74945b468f.tar.gz online_test-f531b9ca9c088263a53aff8574e93b74945b468f.tar.bz2 online_test-f531b9ca9c088263a53aff8574e93b74945b468f.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() |