fix gallery
This commit is contained in:
parent
c9016ff4f1
commit
2af481a68e
@ -7381,11 +7381,11 @@
|
|||||||
thumb = $.el('a', {
|
thumb = $.el('a', {
|
||||||
className: 'gal-thumb',
|
className: 'gal-thumb',
|
||||||
href: post.file.URL,
|
href: post.file.URL,
|
||||||
target: '_blank'
|
target: '_blank',
|
||||||
}, title = title, {
|
title: title
|
||||||
'data-id': Gallery.images.length,
|
|
||||||
'data-post': $('a[title="Highlight this post"]', post.nodes.info).href
|
|
||||||
});
|
});
|
||||||
|
thumb.dataset.id = Gallery.images.length;
|
||||||
|
thumb.dataset.post = $('a[title="Highlight this post"]', post.nodes.info).href;
|
||||||
thumbImg = post.file.thumb.cloneNode(false);
|
thumbImg = post.file.thumb.cloneNode(false);
|
||||||
thumbImg.style.cssText = '';
|
thumbImg.style.cssText = '';
|
||||||
$.add(thumb, thumbImg);
|
$.add(thumb, thumbImg);
|
||||||
|
|||||||
@ -7400,11 +7400,11 @@
|
|||||||
thumb = $.el('a', {
|
thumb = $.el('a', {
|
||||||
className: 'gal-thumb',
|
className: 'gal-thumb',
|
||||||
href: post.file.URL,
|
href: post.file.URL,
|
||||||
target: '_blank'
|
target: '_blank',
|
||||||
}, title = title, {
|
title: title
|
||||||
'data-id': Gallery.images.length,
|
|
||||||
'data-post': $('a[title="Highlight this post"]', post.nodes.info).href
|
|
||||||
});
|
});
|
||||||
|
thumb.dataset.id = Gallery.images.length;
|
||||||
|
thumb.dataset.post = $('a[title="Highlight this post"]', post.nodes.info).href;
|
||||||
thumbImg = post.file.thumb.cloneNode(false);
|
thumbImg = post.file.thumb.cloneNode(false);
|
||||||
thumbImg.style.cssText = '';
|
thumbImg.style.cssText = '';
|
||||||
$.add(thumb, thumbImg);
|
$.add(thumb, thumbImg);
|
||||||
|
|||||||
@ -110,9 +110,9 @@ Gallery =
|
|||||||
className: 'gal-thumb'
|
className: 'gal-thumb'
|
||||||
href: post.file.URL
|
href: post.file.URL
|
||||||
target: '_blank'
|
target: '_blank'
|
||||||
title = title
|
title: title
|
||||||
'data-id': Gallery.images.length
|
thumb.dataset.id = Gallery.images.length
|
||||||
'data-post': $('a[title="Highlight this post"]', post.nodes.info).href
|
thumb.dataset.post = $('a[title="Highlight this post"]', post.nodes.info).href
|
||||||
|
|
||||||
thumbImg = post.file.thumb.cloneNode false
|
thumbImg = post.file.thumb.cloneNode false
|
||||||
thumbImg.style.cssText = ''
|
thumbImg.style.cssText = ''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user