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', {
className: 'gal-thumb',
href: post.file.URL,
target: '_blank'
}, title = title, {
'data-id': Gallery.images.length,
'data-post': $('a[title="Highlight this post"]', post.nodes.info).href
target: '_blank',
title: title
});
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.style.cssText = '';
$.add(thumb, thumbImg);

View File

@ -7400,11 +7400,11 @@
thumb = $.el('a', {
className: 'gal-thumb',
href: post.file.URL,
target: '_blank'
}, title = title, {
'data-id': Gallery.images.length,
'data-post': $('a[title="Highlight this post"]', post.nodes.info).href
target: '_blank',
title: title
});
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.style.cssText = '';
$.add(thumb, thumbImg);

View File

@ -110,9 +110,9 @@ Gallery =
className: 'gal-thumb'
href: post.file.URL
target: '_blank'
title = title
'data-id': Gallery.images.length
'data-post': $('a[title="Highlight this post"]', post.nodes.info).href
title: title
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.style.cssText = ''