parent
41357b4a24
commit
fa6d6974ed
1 changed files with 9 additions and 0 deletions
|
@ -8,6 +8,9 @@
|
|||
Whisper.FileSizeToast = Whisper.ToastView.extend({
|
||||
templateName: 'file-size-modal'
|
||||
});
|
||||
Whisper.UnsupportedFileTypeToast = Whisper.ToastView.extend({
|
||||
template: "Unsupported file type"
|
||||
});
|
||||
|
||||
Whisper.FileInputView = Backbone.View.extend({
|
||||
tagName: 'span',
|
||||
|
@ -115,6 +118,12 @@
|
|||
this.oUrl = URL.createObjectURL(file);
|
||||
this.addThumb(this.oUrl);
|
||||
break;
|
||||
default:
|
||||
var toast = new Whisper.UnsupportedFileTypeToast();
|
||||
toast.$el.insertAfter(this.$el);
|
||||
toast.render();
|
||||
this.deleteFiles();
|
||||
break;
|
||||
}
|
||||
|
||||
this.autoScale(file).then(function(blob) {
|
||||
|
|
Loading…
Reference in a new issue