Gallery typo
This commit is contained in:
parent
b78bcc2488
commit
de49f1b78f
@ -11205,7 +11205,7 @@
|
|||||||
$.rmClass(el, 'gal-highlight');
|
$.rmClass(el, 'gal-highlight');
|
||||||
}
|
}
|
||||||
$.addClass(thumb, 'gal-highlight');
|
$.addClass(thumb, 'gal-highlight');
|
||||||
elType = /\.webm$/.test(thumb.href) ? 'video' : /\.pdf$/.test(thumb.href) ? 'iframe' : 'image';
|
elType = /\.webm$/.test(thumb.href) ? 'video' : /\.pdf$/.test(thumb.href) ? 'iframe' : 'img';
|
||||||
$[elType === 'iframe' ? 'addClass' : 'rmClass'](doc, 'gal-pdf');
|
$[elType === 'iframe' ? 'addClass' : 'rmClass'](doc, 'gal-pdf');
|
||||||
file = $.el(elType, {
|
file = $.el(elType, {
|
||||||
title: name.download = name.textContent = thumb.title
|
title: name.download = name.textContent = thumb.title
|
||||||
|
|||||||
@ -11242,7 +11242,7 @@
|
|||||||
$.rmClass(el, 'gal-highlight');
|
$.rmClass(el, 'gal-highlight');
|
||||||
}
|
}
|
||||||
$.addClass(thumb, 'gal-highlight');
|
$.addClass(thumb, 'gal-highlight');
|
||||||
elType = /\.webm$/.test(thumb.href) ? 'video' : /\.pdf$/.test(thumb.href) ? 'iframe' : 'image';
|
elType = /\.webm$/.test(thumb.href) ? 'video' : /\.pdf$/.test(thumb.href) ? 'iframe' : 'img';
|
||||||
$[elType === 'iframe' ? 'addClass' : 'rmClass'](doc, 'gal-pdf');
|
$[elType === 'iframe' ? 'addClass' : 'rmClass'](doc, 'gal-pdf');
|
||||||
file = $.el(elType, {
|
file = $.el(elType, {
|
||||||
title: name.download = name.textContent = thumb.title
|
title: name.download = name.textContent = thumb.title
|
||||||
|
|||||||
@ -137,7 +137,7 @@ Gallery =
|
|||||||
else if /\.pdf$/.test(thumb.href)
|
else if /\.pdf$/.test(thumb.href)
|
||||||
'iframe'
|
'iframe'
|
||||||
else
|
else
|
||||||
'image'
|
'img'
|
||||||
|
|
||||||
$[if elType is 'iframe' then 'addClass' else 'rmClass'] doc, 'gal-pdf'
|
$[if elType is 'iframe' then 'addClass' else 'rmClass'] doc, 'gal-pdf'
|
||||||
file = $.el elType,
|
file = $.el elType,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user