From 0dd77eb92c9778f89cc72f16d087325cf528e8a3 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Tue, 11 Mar 2014 15:22:46 -0700 Subject: [PATCH] Fix "Reveal Spoiler Thumbnails" option --- builds/4chan-X.user.js | 4 ++-- builds/crx/script.js | 4 ++-- src/General/Build.coffee | 2 +- src/Images/RevealSpoilers.coffee | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 0e7fc6af5..5e239f059 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -3814,7 +3814,7 @@ $.addClass.apply($, [root].concat(__slice.call(thread.OP.highlights))); } thumb = root.firstElementChild; - if (data.spoiler && !Conf['Reveal Spoilers']) { + if (data.spoiler && !Conf['Reveal Spoiler Thumbnails']) { src = "" + staticPath + "spoiler"; if (spoilerRange = Build.spoilerRange[thread.board]) { src += ("-" + thread.board) + Math.floor(1 + spoilerRange * Math.random()); @@ -8349,7 +8349,7 @@ RevealSpoilers = { init: function() { - if (!Conf['Reveal Spoilers']) { + if (!Conf['Reveal Spoiler Thumbnails']) { return; } return Post.callbacks.push({ diff --git a/builds/crx/script.js b/builds/crx/script.js index fa91a6218..dced0f0b1 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -3873,7 +3873,7 @@ $.addClass.apply($, [root].concat(__slice.call(thread.OP.highlights))); } thumb = root.firstElementChild; - if (data.spoiler && !Conf['Reveal Spoilers']) { + if (data.spoiler && !Conf['Reveal Spoiler Thumbnails']) { src = "" + staticPath + "spoiler"; if (spoilerRange = Build.spoilerRange[thread.board]) { src += ("-" + thread.board) + Math.floor(1 + spoilerRange * Math.random()); @@ -8364,7 +8364,7 @@ RevealSpoilers = { init: function() { - if (!Conf['Reveal Spoilers']) { + if (!Conf['Reveal Spoiler Thumbnails']) { return; } return Post.callbacks.push({ diff --git a/src/General/Build.coffee b/src/General/Build.coffee index d1e06ad2b..b8e115d46 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -258,7 +258,7 @@ Build = $.addClass root, thread.OP.highlights... if thread.OP.highlights.length thumb = root.firstElementChild - if data.spoiler and !Conf['Reveal Spoilers'] + if data.spoiler and !Conf['Reveal Spoiler Thumbnails'] src = "#{staticPath}spoiler" if spoilerRange = Build.spoilerRange[thread.board] # Randomize the spoiler image. diff --git a/src/Images/RevealSpoilers.coffee b/src/Images/RevealSpoilers.coffee index bbf10db5b..0df87da17 100755 --- a/src/Images/RevealSpoilers.coffee +++ b/src/Images/RevealSpoilers.coffee @@ -1,6 +1,6 @@ RevealSpoilers = init: -> - return if !Conf['Reveal Spoilers'] + return if !Conf['Reveal Spoiler Thumbnails'] Post.callbacks.push cb: @node