From d03220cdaffe6f08eff996145cf4c088168a8db0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 25 Jan 2019 11:08:51 -0500 Subject: [PATCH] fix: #7094 --- public/src/client/topic/events.js | 1 + public/src/client/topic/posts.js | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.js index fa2b07d1c4..edfa5068b5 100644 --- a/public/src/client/topic/events.js +++ b/public/src/client/topic/events.js @@ -130,6 +130,7 @@ define('forum/topic/events', [ editedPostEl.html(translator.unescape(data.post.content)); editedPostEl.find('img:not(.not-responsive)').addClass('img-responsive'); images.wrapImagesInLinks(editedPostEl.parent()); + posts.addBlockquoteEllipses(editedPostEl.parent()); editedPostEl.fadeIn(250); var editData = { diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js index ffbc0a5ace..f794354abc 100644 --- a/public/src/client/topic/posts.js +++ b/public/src/client/topic/posts.js @@ -253,7 +253,7 @@ define('forum/topic/posts', [ images.wrapImagesInLinks(posts); Posts.showBottomPostBar(); 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); }; @@ -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 () { var $this = $(this); if ($this.find(':hidden:not(br)').length && !$this.find('.toggle').length) { $this.append(''); } }); - } + }; return Posts; });