Turn clicking to open in Gallery off on Tinyboard sites when JS enabled to avoid conflict with native expansion.

This commit is contained in:
ccd0 2019-08-26 16:29:29 -07:00
parent 7aca4b7e1f
commit 89a86af348

View File

@ -24,7 +24,7 @@ Gallery =
Gallery.generateThumb @, file
Gallery.nodes.total.textContent = Gallery.images.length
unless Conf['Image Expansion']
unless Conf['Image Expansion'] or (g.SITE.software is 'tinyboard' and Main.jsEnabled)
$.on file.thumbLink, 'click', Gallery.cb.image
build: (image) ->