Browse Source

Added show preview option

master
erqan 11 years ago
parent
commit
e13143229a
  1. 3
      js/interface_common.js

3
js/interface_common.js

@ -308,6 +308,8 @@ var postExpandFunction = function( e, postLi ) @@ -308,6 +308,8 @@ var postExpandFunction = function( e, postLi )
$postExpandedContent.slideDown( "fast" );
if ($.Options.getShowPreviewOpt() == 'enable')
{
var previewContainer=$postExpandedContent.find(".preview-container")[0];
/* was the preview added before... */
if ($(previewContainer).children().length == 0)
@ -318,6 +320,7 @@ var postExpandFunction = function( e, postLi ) @@ -318,6 +320,7 @@ var postExpandFunction = function( e, postLi )
$(previewContainer).append($("<img src='" + link.html() + "' class='image-preview' />"));
}
}
}
// insert "reply_to" before
requestRepliedBefore(originalLi);
// insert replies to this post after

Loading…
Cancel
Save