fix google previews in speedgrader
Test plan: * disable scribd/crocodoc * submit an assignment that can be previewed in google * open the submission in speedgrader * make sure it previews inline rather than showing the submission details page Change-Id: I0b71d7f80b3b5cc48f09d8a81298a9aafb62f90f Reviewed-on: https://gerrit.instructure.com/14039 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Simon Williams <simon@instructure.com>
This commit is contained in:
parent
ced03656cc
commit
4a8457a1e4
|
@ -1077,7 +1077,8 @@ define([
|
|||
$.each(submission.versioned_attachments || [], function(i,a){
|
||||
var attachment = a.attachment;
|
||||
if (attachment['crocodoc_available?'] ||
|
||||
(attachment.scribd_doc && attachment.scribd_doc.created)) {
|
||||
(attachment.scribd_doc && attachment.scribd_doc.created) ||
|
||||
$.isPreviewable(attachment.content_type, 'google')) {
|
||||
inlineableAttachments.push(attachment);
|
||||
}
|
||||
if (broswerableCssClasses.test(attachment.mime_class)) {
|
||||
|
|
Loading…
Reference in New Issue