mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
@@ -8,6 +8,9 @@
|
|||||||
Whisper.FileSizeToast = Whisper.ToastView.extend({
|
Whisper.FileSizeToast = Whisper.ToastView.extend({
|
||||||
templateName: 'file-size-modal'
|
templateName: 'file-size-modal'
|
||||||
});
|
});
|
||||||
|
Whisper.UnsupportedFileTypeToast = Whisper.ToastView.extend({
|
||||||
|
template: "Unsupported file type"
|
||||||
|
});
|
||||||
|
|
||||||
Whisper.FileInputView = Backbone.View.extend({
|
Whisper.FileInputView = Backbone.View.extend({
|
||||||
tagName: 'span',
|
tagName: 'span',
|
||||||
@@ -115,6 +118,12 @@
|
|||||||
this.oUrl = URL.createObjectURL(file);
|
this.oUrl = URL.createObjectURL(file);
|
||||||
this.addThumb(this.oUrl);
|
this.addThumb(this.oUrl);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
var toast = new Whisper.UnsupportedFileTypeToast();
|
||||||
|
toast.$el.insertAfter(this.$el);
|
||||||
|
toast.render();
|
||||||
|
this.deleteFiles();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.autoScale(file).then(function(blob) {
|
this.autoScale(file).then(function(blob) {
|
||||||
|
|||||||
Reference in New Issue
Block a user