mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-15 01:12:12 +00:00
Added show preview option
This commit is contained in:
parent
b4ede1d54f
commit
e13143229a
@ -308,6 +308,8 @@ var postExpandFunction = function( e, postLi )
|
|||||||
|
|
||||||
$postExpandedContent.slideDown( "fast" );
|
$postExpandedContent.slideDown( "fast" );
|
||||||
|
|
||||||
|
if ($.Options.getShowPreviewOpt() == 'enable')
|
||||||
|
{
|
||||||
var previewContainer=$postExpandedContent.find(".preview-container")[0];
|
var previewContainer=$postExpandedContent.find(".preview-container")[0];
|
||||||
/* was the preview added before... */
|
/* was the preview added before... */
|
||||||
if ($(previewContainer).children().length == 0)
|
if ($(previewContainer).children().length == 0)
|
||||||
@ -318,6 +320,7 @@ var postExpandFunction = function( e, postLi )
|
|||||||
$(previewContainer).append($("<img src='" + link.html() + "' class='image-preview' />"));
|
$(previewContainer).append($("<img src='" + link.html() + "' class='image-preview' />"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// insert "reply_to" before
|
// insert "reply_to" before
|
||||||
requestRepliedBefore(originalLi);
|
requestRepliedBefore(originalLi);
|
||||||
// insert replies to this post after
|
// insert replies to this post after
|
||||||
|
Loading…
x
Reference in New Issue
Block a user