From 01b4eaa6543c333a2a09748701301f286b14f50c Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Mon, 8 Jan 2018 15:45:22 +0530 Subject: Fix assignment upload question --- yaksh/static/yaksh/js/requesthandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit