Fix image entries not displaying correctly.

This commit is contained in:
kor 2018-10-30 23:55:36 +13:00
parent c52491f3c1
commit e05a0ce5f6

View File

@ -99,7 +99,7 @@ function View()
}
}
if (SETTINGS.SHOWIMAG && this.isDefined(value.TYP) && value.TYPE === 'image')
if (SETTINGS.SHOWIMAG && this.isDefined(value.TYPE) && value.TYPE[0] === 'image')
{
itemClass += " griditem-image";
}
@ -265,7 +265,7 @@ function View()
// IMAGE
if (SETTINGS.SHOWIMAG && this.isDefined(value.TYPE)
&& value.TYPE === 'image' && this.isDefined(value.FILE))
&& value.TYPE[0] === 'image' && this.isDefined(value.FILE))
{
entry += `<div class="image">`;
if (SETTINGS.SHOWOVERLAY)