|
|
@ -377,13 +377,7 @@ function tickOptionsPostPreview() { |
|
|
|
|
|
|
|
|
|
|
|
if ($.Options.displayPreview.val === 'enable') { |
|
|
|
if ($.Options.displayPreview.val === 'enable') { |
|
|
|
imgPreviewCont.empty(); |
|
|
|
imgPreviewCont.empty(); |
|
|
|
var links = elem.children().first().find('a[rel="nofollow"]'); |
|
|
|
setPostImagePreview(elem, elem.children().first().find('a')); |
|
|
|
if (links.length) { |
|
|
|
|
|
|
|
setPostImagePreview(elem, links); |
|
|
|
|
|
|
|
imgPreviewCont.show(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
imgPreviewCont.hide(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
imgPreviewCont.hide(); |
|
|
|
imgPreviewCont.hide(); |
|
|
|
} |
|
|
|
} |
|
|
|