i18n FileSizeToast
// FREEBIE
This commit is contained in:
parent
4066223d72
commit
42f15011fa
4 changed files with 17 additions and 4 deletions
|
@ -6,7 +6,14 @@
|
|||
window.Whisper = window.Whisper || {};
|
||||
|
||||
Whisper.FileSizeToast = Whisper.ToastView.extend({
|
||||
templateName: 'file-size-modal'
|
||||
templateName: 'file-size-modal',
|
||||
render_attributes: function() {
|
||||
return {
|
||||
'file-size-warning': i18n('fileSizeWarning'),
|
||||
limit: this.model.limit,
|
||||
units: this.model.units
|
||||
};
|
||||
}
|
||||
});
|
||||
Whisper.UnsupportedFileTypeToast = Whisper.ToastView.extend({
|
||||
template: "Unsupported file type"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue