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:
Cameron Matheson 2012-09-28 15:50:54 -06:00
parent ced03656cc
commit 4a8457a1e4
1 changed files with 2 additions and 1 deletions

View File

@ -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)) {