diff options
author | hardythe1 | 2013-07-01 11:56:32 +0530 |
---|---|---|
committer | hardythe1 | 2013-07-01 11:56:32 +0530 |
commit | f5ef323d03dd80e1ae00f306ac44f5ee3efb3e7c (patch) | |
tree | e957b93691515c5ab50db5ed0365658263809460 /testapp/static | |
parent | 5ce91d1f2b2f2434bc51ddeeaf4f9f27305d1145 (diff) | |
download | online_test-f5ef323d03dd80e1ae00f306ac44f5ee3efb3e7c.tar.gz online_test-f5ef323d03dd80e1ae00f306ac44f5ee3efb3e7c.tar.bz2 online_test-f5ef323d03dd80e1ae00f306ac44f5ee3efb3e7c.zip |
edited JS to give a msg when the answer is correct
Diffstat (limited to 'testapp/static')
-rw-r--r-- | testapp/static/exam/js/add_question.js | 4 | ||||
-rw-r--r-- | testapp/static/exam/js/add_quiz.js | 1 | ||||
-rw-r--r-- | testapp/static/exam/js/edit_question.js | 4 |
3 files changed, 1 insertions, 8 deletions
diff --git a/testapp/static/exam/js/add_question.js b/testapp/static/exam/js/add_question.js index ab27dc0..a77e392 100644 --- a/testapp/static/exam/js/add_question.js +++ b/testapp/static/exam/js/add_question.js @@ -139,9 +139,7 @@ function textareaformat() $('#id_snippet').bind('blur', function( event ){ document.getElementById("id_snippet").rows=1; document.getElementById("id_snippet").cols=40; - $('#id_snippet').val("#To avoid indentation errors use tabs for indentation for Python questions"); - }); - + }); $('#id_type').bind('change',function(event){ var value = document.getElementById('id_type').value; if(value == 'mcq') diff --git a/testapp/static/exam/js/add_quiz.js b/testapp/static/exam/js/add_quiz.js index 56b0e95..d5688a8 100644 --- a/testapp/static/exam/js/add_quiz.js +++ b/testapp/static/exam/js/add_quiz.js @@ -2,7 +2,6 @@ function test() { if (document.getElementById("id_description").value != "") { - alert("reached condition"); document.getElementById("submit").innerHTML = "Save"; } } diff --git a/testapp/static/exam/js/edit_question.js b/testapp/static/exam/js/edit_question.js index 023b654..2cf304c 100644 --- a/testapp/static/exam/js/edit_question.js +++ b/testapp/static/exam/js/edit_question.js @@ -154,10 +154,6 @@ function textareaformat() this.rows = 5; $(snippet_id).val(""); }); - $(snippet_id).bind('blur',function(event){ - this.rows = 1; - $(snippet_id).val("#To avoid indentation errors use tab for indentation for Python questions"); - }); $(snippet_id).bind('keydown', function (event){ catchTab(snippet_id,event); }); |