summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authormaheshgudi2018-01-08 15:45:22 +0530
committermaheshgudi2018-01-08 15:45:22 +0530
commit01b4eaa6543c333a2a09748701301f286b14f50c (patch)
tree357ca203b34f6501fc02734c23fd29a03363b189 /yaksh
parent2943099f08a0ee2559f59a1f2d43d03cefd6e1b8 (diff)
downloadonline_test-01b4eaa6543c333a2a09748701301f286b14f50c.tar.gz
online_test-01b4eaa6543c333a2a09748701301f286b14f50c.tar.bz2
online_test-01b4eaa6543c333a2a09748701301f286b14f50c.zip
Fix assignment upload question
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/static/yaksh/js/requesthandler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/static/yaksh/js/requesthandler.js b/yaksh/static/yaksh/js/requesthandler.js
index f98ab12..e6048b2 100644
--- a/yaksh/static/yaksh/js/requesthandler.js
+++ b/yaksh/static/yaksh/js/requesthandler.js
@@ -164,7 +164,7 @@ if (question_type == 'upload' || question_type == 'code') {
var data = $(this).serializeArray();
}
else if (question_type == "upload"){
- var data = new FormData(getElementById("code"));
+ var data = new FormData(document.getElementById("code"));
}
ajax_check_code($(this).attr("action"), "POST", "html", data, null)
e.preventDefault(); // To stop the default form submission.