summaryrefslogtreecommitdiff
path: root/testapp/static/exam/js/add_question.js
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/static/exam/js/add_question.js')
-rw-r--r--testapp/static/exam/js/add_question.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/testapp/static/exam/js/add_question.js b/testapp/static/exam/js/add_question.js
index 1f08c79..24af127 100644
--- a/testapp/static/exam/js/add_question.js
+++ b/testapp/static/exam/js/add_question.js
@@ -98,9 +98,9 @@ function autosubmit()
if (document.getElementById('id_type').value == 'mcq')
{
var value = document.getElementById('id_options').value;
- if(value.split('\n').length != 4)
+ if(value.split('\n').length < 4)
{
- alert("Enter 4 options. One option per line.");
+ alert("Please Enter 4 options. One option per line.");
return false;
}
return true;