Fix JavaScript console error after uploading media
This commit is contained in:
parent
a17210516a
commit
fcbf2c0c2b
|
@ -2615,6 +2615,11 @@ function buildAttachmentHTML(attachments){
|
||||||
noCoverClass=' no-cover';
|
noCoverClass=' no-cover';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// After uploading media, until creating thumbnail, thumbnail url is null.
|
||||||
|
if (!this.url) {
|
||||||
|
this.url = '';
|
||||||
|
}
|
||||||
|
|
||||||
// play button for videos and animated gifs
|
// play button for videos and animated gifs
|
||||||
var playButtonClass = '';
|
var playButtonClass = '';
|
||||||
if(typeof this.animated != 'undefined' && this.animated === true
|
if(typeof this.animated != 'undefined' && this.animated === true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user