summaryrefslogtreecommitdiff
path: root/testapp/static/exam/js/add_question.js
diff options
context:
space:
mode:
authorHardik Ghaghada2013-04-26 14:02:28 +0530
committerHardik Ghaghada2013-04-26 14:02:28 +0530
commit340e9b28961a4a927e9f039a5cef7111bbf69bf0 (patch)
tree056d7b16a104ce7afd375505feab7a879d3f7f99 /testapp/static/exam/js/add_question.js
parentca63599e6fecbd513d47092f5aeb03726024bd98 (diff)
parent29beb24fe345e7e20919a6122ffb3e0f13371143 (diff)
downloadonline_test-340e9b28961a4a927e9f039a5cef7111bbf69bf0.tar.gz
online_test-340e9b28961a4a927e9f039a5cef7111bbf69bf0.tar.bz2
online_test-340e9b28961a4a927e9f039a5cef7111bbf69bf0.zip
Resolved Conflicts
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;