Fix unwanted image hover when thumbnail expanded with old Tinyboard code.
This commit is contained in:
parent
84f8ebcbea
commit
8afa261b77
@ -23,7 +23,7 @@ ImageHover =
|
|||||||
return unless doc.contains @
|
return unless doc.contains @
|
||||||
{file} = post
|
{file} = post
|
||||||
{isVideo} = file
|
{isVideo} = file
|
||||||
return if file.isExpanding or file.isExpanded
|
return if file.isExpanding or file.isExpanded or Site.isThumbExpanded?(file)
|
||||||
error = ImageHover.error post
|
error = ImageHover.error post
|
||||||
if ImageCommon.cache?.dataset.fullID is post.fullID
|
if ImageCommon.cache?.dataset.fullID is post.fullID
|
||||||
el = ImageCommon.popCache()
|
el = ImageCommon.popCache()
|
||||||
|
|||||||
@ -117,3 +117,7 @@ SW.tinyboard =
|
|||||||
thumbURL: if '/static/' in thumb.src then link.href else thumb.src
|
thumbURL: if '/static/' in thumb.src then link.href else thumb.src
|
||||||
isSpoiler: !!info[1]
|
isSpoiler: !!info[1]
|
||||||
true
|
true
|
||||||
|
|
||||||
|
isThumbExpanded: (file) ->
|
||||||
|
# Detect old Tinyboard image expansion that changes src attribute on thumbnail.
|
||||||
|
$.hasClass file.thumb.parentNode, 'expanded'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user