v1.18.x
Barış Soner Uşaklı 6 years ago
parent 247ac82858
commit d03220cdaf

@ -130,6 +130,7 @@ define('forum/topic/events', [
editedPostEl.html(translator.unescape(data.post.content)); editedPostEl.html(translator.unescape(data.post.content));
editedPostEl.find('img:not(.not-responsive)').addClass('img-responsive'); editedPostEl.find('img:not(.not-responsive)').addClass('img-responsive');
images.wrapImagesInLinks(editedPostEl.parent()); images.wrapImagesInLinks(editedPostEl.parent());
posts.addBlockquoteEllipses(editedPostEl.parent());
editedPostEl.fadeIn(250); editedPostEl.fadeIn(250);
var editData = { var editData = {

@ -253,7 +253,7 @@ define('forum/topic/posts', [
images.wrapImagesInLinks(posts); images.wrapImagesInLinks(posts);
Posts.showBottomPostBar(); Posts.showBottomPostBar();
posts.find('[component="post/content"] img:not(.not-responsive)').addClass('img-responsive'); posts.find('[component="post/content"] img:not(.not-responsive)').addClass('img-responsive');
addBlockquoteEllipses(posts.find('[component="post/content"] > blockquote > blockquote')); Posts.addBlockquoteEllipses(posts);
hidePostToolsForDeletedPosts(posts); hidePostToolsForDeletedPosts(posts);
}; };
@ -287,14 +287,15 @@ define('forum/topic/posts', [
}); });
} }
function addBlockquoteEllipses(blockquotes) { Posts.addBlockquoteEllipses = function (posts) {
var blockquotes = posts.find('[component="post/content"] > blockquote > blockquote');
blockquotes.each(function () { blockquotes.each(function () {
var $this = $(this); var $this = $(this);
if ($this.find(':hidden:not(br)').length && !$this.find('.toggle').length) { if ($this.find(':hidden:not(br)').length && !$this.find('.toggle').length) {
$this.append('<i class="fa fa-angle-down pointer toggle"></i>'); $this.append('<i class="fa fa-angle-down pointer toggle"></i>');
} }
}); });
} };
return Posts; return Posts;
}); });

Loading…
Cancel
Save