diff options
author | adityacp | 2020-02-17 13:28:01 +0530 |
---|---|---|
committer | adityacp | 2020-02-17 13:28:01 +0530 |
commit | 8b0fb468fd94565b359f3c5bf2f2b694e7a9c97a (patch) | |
tree | 07e8df762c518881b44556578fe3b5349b31a73c /yaksh/static | |
parent | 5eae1a6c6ebba23179052f87b50c2cb34dd62d05 (diff) | |
parent | 3995f0a05fe3e681a21116c158708598db0ada08 (diff) | |
download | online_test-8b0fb468fd94565b359f3c5bf2f2b694e7a9c97a.tar.gz online_test-8b0fb468fd94565b359f3c5bf2f2b694e7a9c97a.tar.bz2 online_test-8b0fb468fd94565b359f3c5bf2f2b694e7a9c97a.zip |
Fix conflicts
Diffstat (limited to 'yaksh/static')
-rw-r--r-- | yaksh/static/yaksh/js/add_question.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/yaksh/static/yaksh/js/add_question.js b/yaksh/static/yaksh/js/add_question.js index 0f02aab..2db5301 100644 --- a/yaksh/static/yaksh/js/add_question.js +++ b/yaksh/static/yaksh/js/add_question.js @@ -73,9 +73,9 @@ function replaceSelection (input, replaceString) function textareaformat() { - document.getElementById('id_type').setAttribute('class','select-type'); + document.getElementById('id_type').setAttribute('class','custom-select'); document.getElementById('id_points').setAttribute('class','mini-text'); - document.getElementById('id_tags').setAttribute('class','tag-text'); + document.getElementById('id_tags').setAttribute('class','form-control'); $("[id*="+'test_case_args'+"]").attr('placeholder', 'Command Line arguments for bash only'); @@ -143,6 +143,13 @@ function textareaformat() $("#id_grade_assignment_upload").prop("disabled", true); } }); + + $('#id_file_field').on('change',function(){ + //get the file name + var fileName = $(this).val(); + //replace the "Choose a file" label + $(this).next('.custom-file-label').html(fileName); + }) } function autosubmit() |