diff options
author | maheshgudi | 2018-01-08 15:45:22 +0530 |
---|---|---|
committer | maheshgudi | 2018-01-08 15:45:22 +0530 |
commit | 01b4eaa6543c333a2a09748701301f286b14f50c (patch) | |
tree | 357ca203b34f6501fc02734c23fd29a03363b189 /yaksh | |
parent | 2943099f08a0ee2559f59a1f2d43d03cefd6e1b8 (diff) | |
download | online_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.js | 2 |
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. |