summaryrefslogtreecommitdiff
path: root/testapp/static
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/static')
-rw-r--r--testapp/static/exam/js/add_question.js4
-rw-r--r--testapp/static/exam/js/add_quiz.js1
-rw-r--r--testapp/static/exam/js/edit_question.js4
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);
});