Fix "Reveal Spoiler Thumbnails" option

This commit is contained in:
Zixaphir 2014-03-11 15:22:46 -07:00
parent 5cbe5753e8
commit 0dd77eb92c
4 changed files with 6 additions and 6 deletions

View File

@ -3814,7 +3814,7 @@
$.addClass.apply($, [root].concat(__slice.call(thread.OP.highlights))); $.addClass.apply($, [root].concat(__slice.call(thread.OP.highlights)));
} }
thumb = root.firstElementChild; thumb = root.firstElementChild;
if (data.spoiler && !Conf['Reveal Spoilers']) { if (data.spoiler && !Conf['Reveal Spoiler Thumbnails']) {
src = "" + staticPath + "spoiler"; src = "" + staticPath + "spoiler";
if (spoilerRange = Build.spoilerRange[thread.board]) { if (spoilerRange = Build.spoilerRange[thread.board]) {
src += ("-" + thread.board) + Math.floor(1 + spoilerRange * Math.random()); src += ("-" + thread.board) + Math.floor(1 + spoilerRange * Math.random());
@ -8349,7 +8349,7 @@
RevealSpoilers = { RevealSpoilers = {
init: function() { init: function() {
if (!Conf['Reveal Spoilers']) { if (!Conf['Reveal Spoiler Thumbnails']) {
return; return;
} }
return Post.callbacks.push({ return Post.callbacks.push({

View File

@ -3873,7 +3873,7 @@
$.addClass.apply($, [root].concat(__slice.call(thread.OP.highlights))); $.addClass.apply($, [root].concat(__slice.call(thread.OP.highlights)));
} }
thumb = root.firstElementChild; thumb = root.firstElementChild;
if (data.spoiler && !Conf['Reveal Spoilers']) { if (data.spoiler && !Conf['Reveal Spoiler Thumbnails']) {
src = "" + staticPath + "spoiler"; src = "" + staticPath + "spoiler";
if (spoilerRange = Build.spoilerRange[thread.board]) { if (spoilerRange = Build.spoilerRange[thread.board]) {
src += ("-" + thread.board) + Math.floor(1 + spoilerRange * Math.random()); src += ("-" + thread.board) + Math.floor(1 + spoilerRange * Math.random());
@ -8364,7 +8364,7 @@
RevealSpoilers = { RevealSpoilers = {
init: function() { init: function() {
if (!Conf['Reveal Spoilers']) { if (!Conf['Reveal Spoiler Thumbnails']) {
return; return;
} }
return Post.callbacks.push({ return Post.callbacks.push({

View File

@ -258,7 +258,7 @@ Build =
$.addClass root, thread.OP.highlights... if thread.OP.highlights.length $.addClass root, thread.OP.highlights... if thread.OP.highlights.length
thumb = root.firstElementChild thumb = root.firstElementChild
if data.spoiler and !Conf['Reveal Spoilers'] if data.spoiler and !Conf['Reveal Spoiler Thumbnails']
src = "#{staticPath}spoiler" src = "#{staticPath}spoiler"
if spoilerRange = Build.spoilerRange[thread.board] if spoilerRange = Build.spoilerRange[thread.board]
# Randomize the spoiler image. # Randomize the spoiler image.

View File

@ -1,6 +1,6 @@
RevealSpoilers = RevealSpoilers =
init: -> init: ->
return if !Conf['Reveal Spoilers'] return if !Conf['Reveal Spoiler Thumbnails']
Post.callbacks.push Post.callbacks.push
cb: @node cb: @node