Add timestamps to attachment filenames
This commit is contained in:
parent
d2c1e6df27
commit
41216f1378
2 changed files with 13 additions and 4 deletions
|
@ -259,7 +259,10 @@
|
|||
},
|
||||
loadAttachments: function() {
|
||||
this.model.get('attachments').forEach(function(attachment) {
|
||||
var view = new Whisper.AttachmentView({ model: attachment });
|
||||
var view = new Whisper.AttachmentView({
|
||||
model: attachment,
|
||||
timestamp: this.model.get('sent_at')
|
||||
});
|
||||
this.listenTo(view, 'update', function() {
|
||||
if (!view.el.parentNode) {
|
||||
this.trigger('beforeChangeHeight');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue