mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-11 15:10:45 +01:00
fixes #4487
This commit is contained in:
@@ -118,6 +118,8 @@ define('forum/topic/events', [
|
||||
editedPostEl.find('img:not(.not-responsive)').addClass('img-responsive');
|
||||
app.replaceSelfLinks(editedPostEl.find('a'));
|
||||
posts.wrapImagesInLinks(editedPostEl.parent());
|
||||
posts.unloadImages(editedPostEl.parent());
|
||||
posts.loadImages();
|
||||
editedPostEl.fadeIn(250);
|
||||
$(window).trigger('action:posts.edited', data);
|
||||
});
|
||||
|
||||
@@ -235,9 +235,7 @@ define('forum/topic/posts', [
|
||||
};
|
||||
|
||||
Posts.unloadImages = function(posts) {
|
||||
var images = posts.find('[component="post/content"] img:not(.not-responsive)'),
|
||||
scrollTop = $(window).scrollTop(),
|
||||
height = $(document).height();
|
||||
var images = posts.find('[component="post/content"] img:not(.not-responsive)');
|
||||
|
||||
images.each(function() {
|
||||
$(this).attr('data-src', $(this).attr('src'));
|
||||
|
||||
Reference in New Issue
Block a user