From 0de62fdec64eb3cecdab14df8f9a05278a5fed04 Mon Sep 17 00:00:00 2001 From: Volodymyr Vakulenko Date: Thu, 20 Jul 2017 16:48:01 +0300 Subject: [PATCH] Add transcripts to list of allowed handouts (#267) --- .../js/spec/studio-edit/transcript-manual-upload-spec.js | 3 ++- .../static/js/studio-edit/transcripts-manual-upload.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/video_xblock/static/js/spec/studio-edit/transcript-manual-upload-spec.js b/video_xblock/static/js/spec/studio-edit/transcript-manual-upload-spec.js index 34c08946..2ed42627 100644 --- a/video_xblock/static/js/spec/studio-edit/transcript-manual-upload-spec.js +++ b/video_xblock/static/js/spec/studio-edit/transcript-manual-upload-spec.js @@ -133,7 +133,8 @@ describe('Correct file extensions are returned when', function() { '.doc, .docx, .xls, .xlsx, .ppt, .pptx, .pub, ' + // MSOffice '.odt, .ods, .odp, ' + // openOffice '.zip, .7z, .gzip, .tar ' + // archives - '.html, .xml, .js, .sjson' // other + '.html, .xml, .js, .sjson, ' + // other + '.srt, .vtt' // transcripts ); expect(getAllowedFileExtensions('somethings_else_or_null')).toEqual(handoutsAllowedFileTypes); }); diff --git a/video_xblock/static/js/studio-edit/transcripts-manual-upload.js b/video_xblock/static/js/studio-edit/transcripts-manual-upload.js index a2664d41..47017514 100644 --- a/video_xblock/static/js/studio-edit/transcripts-manual-upload.js +++ b/video_xblock/static/js/studio-edit/transcripts-manual-upload.js @@ -246,7 +246,8 @@ function getAllowedFileExtensions(uploadingContext) { '.doc, .docx, .xls, .xlsx, .ppt, .pptx, .pub, ' + // MSOffice '.odt, .ods, .odp, ' + // openOffice '.zip, .7z, .gzip, .tar ' + // archives - '.html, .xml, .js, .sjson' // other + '.html, .xml, .js, .sjson, ' + // other + transcriptsAllowedFileExtensions // transcripts ); switch (uploadingContext) { case 'transcripts':