From ad2619b1bcae6ec7d2e02c50cabfe52d682bc2bb Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 7 Sep 2014 20:42:38 -0700 Subject: [PATCH] don't autoexpand images in fetched quotes --- src/Images/ImageExpand.coffee | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/Images/ImageExpand.coffee b/src/Images/ImageExpand.coffee index 8baebc148..f4eb535e7 100755 --- a/src/Images/ImageExpand.coffee +++ b/src/Images/ImageExpand.coffee @@ -29,7 +29,7 @@ ImageExpand = else if @file.isExpanded and @file.isVideo ImageExpand.setupVideoCB @ ImageExpand.setupVideo @, !@origin.file.fullImage?.paused or @origin.file.wasPlaying, @file.fullImage.controls - else if ImageExpand.on and !@isHidden and + else if ImageExpand.on and !@isHidden and !@isFetchedQuote and (Conf['Expand spoilers'] or !@file.isSpoiler) and (Conf['Expand videos'] or !@file.isVideo) ImageExpand.expand @ @@ -216,14 +216,11 @@ ImageExpand = fullImage.controls = controls return fullImage.controls = false - if post.isFetchedQuote - post.file.wasPlaying = true - else - $.asap (=> doc.contains fullImage), => - if !d.hidden and Header.isNodeVisible fullImage - fullImage.play() - else - post.file.wasPlaying = true + $.asap (=> doc.contains fullImage), => + if !d.hidden and Header.isNodeVisible fullImage + fullImage.play() + else + post.file.wasPlaying = true if controls ImageCommon.addControls fullImage