summaryrefslogtreecommitdiff
path: root/testapp/static/exam/js/edit_question.js
diff options
context:
space:
mode:
authorprathamesh2014-06-27 17:20:02 +0530
committerprathamesh2014-06-27 17:20:02 +0530
commitfaacb5ba720abc9660e1afa12c9a3c4d0761254f (patch)
treee4ebc764981e3e223242b9e60611f03c3de51a3f /testapp/static/exam/js/edit_question.js
parentb61c62291424089478064af1fceb81c1ed4e5c54 (diff)
downloadonline_test-faacb5ba720abc9660e1afa12c9a3c4d0761254f.tar.gz
online_test-faacb5ba720abc9660e1afa12c9a3c4d0761254f.tar.bz2
online_test-faacb5ba720abc9660e1afa12c9a3c4d0761254f.zip
Mutiple correct choices question type added.
Diffstat (limited to 'testapp/static/exam/js/edit_question.js')
-rw-r--r--testapp/static/exam/js/edit_question.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/testapp/static/exam/js/edit_question.js b/testapp/static/exam/js/edit_question.js
index c5df631..7a0f56d 100644
--- a/testapp/static/exam/js/edit_question.js
+++ b/testapp/static/exam/js/edit_question.js
@@ -171,7 +171,7 @@ function textareaformat()
var option_id = document.getElementById('id_options' + i);
option_id.onfocus = gainfocus;
option_id.onblur = lostfocus;
- if(value != 'mcq')
+ if(value == 'code' )
{
document.getElementById('id_options'+i).style.visibility='hidden';
document.getElementById('label_option'+(i+1)).innerHTML = "";
@@ -206,7 +206,7 @@ function showOptions(e)
{
var value = this.value;
var no = parseInt(this.id.substring(this.id.length-1));
- if( value == 'mcq')
+ if( value == 'mcq' || value == 'mcc')
{
document.getElementById('id_options'+no).style.visibility = 'visible';
document.getElementById('label_option'+ (no+1)).innerHTML = "Options : "
@@ -256,7 +256,7 @@ function autosubmit()
return false;
}
- if (document.getElementById('id_type' + i).value != 'mcq')
+ if (document.getElementById('id_type' + i).value == 'code')
{
continue;
}