Don't fallback to file view for images

Also lengthen the timeout a bit.

// FREEBIE
This commit is contained in:
lilia 2017-04-19 18:16:54 -07:00
parent 267f1f5d93
commit bab9580c3a

View file

@ -152,7 +152,9 @@
this.view.$el.appendTo(this.$el); this.view.$el.appendTo(this.$el);
this.listenTo(this.view, 'update', this.update); this.listenTo(this.view, 'update', this.update);
this.view.render(); this.view.render();
this.timeout = setTimeout(this.onTimeout.bind(this), 3000); if (View !== ImageView) {
this.timeout = setTimeout(this.onTimeout.bind(this), 5000);
}
return this; return this;
}, },
onTimeout: function() { onTimeout: function() {