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 @
|
||||
{file} = post
|
||||
{isVideo} = file
|
||||
return if file.isExpanding or file.isExpanded
|
||||
return if file.isExpanding or file.isExpanded or Site.isThumbExpanded?(file)
|
||||
error = ImageHover.error post
|
||||
if ImageCommon.cache?.dataset.fullID is post.fullID
|
||||
el = ImageCommon.popCache()
|
||||
|
||||
@ -117,3 +117,7 @@ SW.tinyboard =
|
||||
thumbURL: if '/static/' in thumb.src then link.href else thumb.src
|
||||
isSpoiler: !!info[1]
|
||||
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