Fix "Reveal Spoiler Thumbnails" option
This commit is contained in:
parent
5cbe5753e8
commit
0dd77eb92c
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
RevealSpoilers =
|
||||
init: ->
|
||||
return if !Conf['Reveal Spoilers']
|
||||
return if !Conf['Reveal Spoiler Thumbnails']
|
||||
|
||||
Post.callbacks.push
|
||||
cb: @node
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user