From bab9580c3a0d932fbc117fffc8dcc029478a3603 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 19 Apr 2017 18:16:54 -0700 Subject: [PATCH] Don't fallback to file view for images Also lengthen the timeout a bit. // FREEBIE --- js/views/attachment_view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/views/attachment_view.js b/js/views/attachment_view.js index 8a0f8e261..a288404db 100644 --- a/js/views/attachment_view.js +++ b/js/views/attachment_view.js @@ -152,7 +152,9 @@ this.view.$el.appendTo(this.$el); this.listenTo(this.view, 'update', this.update); this.view.render(); - this.timeout = setTimeout(this.onTimeout.bind(this), 3000); + if (View !== ImageView) { + this.timeout = setTimeout(this.onTimeout.bind(this), 5000); + } return this; }, onTimeout: function() {