Fix bugs with handling large image attachments

* Avoid infinite loop scaling too-big images
* Don't crash if no file is selected
* Fix file size toast

Fixes #242

// FREEBIE
This commit is contained in:
lilia 2015-05-25 10:43:35 -07:00
parent 585c82aee8
commit 53a9ab4834
2 changed files with 8 additions and 4 deletions

View file

@ -29,7 +29,7 @@
render: function() {
this.$el.html(Mustache.render(this.template, this.model));
this.$el.appendTo($('body')).show();
this.$el.show();
setTimeout(this.close.bind(this), 2000);
}
});