fix gallery

This commit is contained in:
ccd0 2014-04-08 20:04:58 -07:00
parent c9016ff4f1
commit 2af481a68e
3 changed files with 11 additions and 11 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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 = ''