summaryrefslogtreecommitdiff
path: root/testapp/static/exam/js/add_question.js
diff options
context:
space:
mode:
authorPrabhu Ramachandran2014-06-05 17:56:34 +0530
committerPrabhu Ramachandran2014-06-05 17:56:34 +0530
commit69c114dde3df17a8fd688809beee262f9c274a8d (patch)
tree8f385a3e36fc86b9237107f67122362c49220082 /testapp/static/exam/js/add_question.js
parent3d0b69caf6b94a1afe95fef2787929c14afdb485 (diff)
parent18cd0fa1def34bb320f38062596789f745bee530 (diff)
downloadonline_test-69c114dde3df17a8fd688809beee262f9c274a8d.tar.gz
online_test-69c114dde3df17a8fd688809beee262f9c274a8d.tar.bz2
online_test-69c114dde3df17a8fd688809beee262f9c274a8d.zip
Merge pull request #16 from prathamesh920/deploy_server
Deploy server
Diffstat (limited to 'testapp/static/exam/js/add_question.js')
-rw-r--r--testapp/static/exam/js/add_question.js9
1 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 d990291..ba17492 100644
--- a/testapp/static/exam/js/add_question.js
+++ b/testapp/static/exam/js/add_question.js
@@ -77,10 +77,6 @@ function textareaformat()
document.getElementById('id_points').setAttribute('class','mini-text');
document.getElementById('id_tags').setAttribute('class','tag-text');
- jQuery().ready(function()
- {
- $("#id_snippet").val("#To avoid indentation errors use tabs for indentation for Python questions");
- });
$('#id_snippet').bind('keydown', function( event ){
if(navigator.userAgent.match("Gecko"))
@@ -135,14 +131,11 @@ function textareaformat()
$('#id_snippet').bind('focus', function( event ){
document.getElementById("id_snippet").rows=5;
document.getElementById("id_snippet").cols=40;
- $('#id_snippet').val("");
});
$('#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')