Don't try to toggle catalog hover expansion from non-catalog mode.

This commit is contained in:
ccd0 2016-11-08 00:04:28 -08:00
parent 959db8158e
commit 05bffd36c5

View File

@ -286,7 +286,7 @@ Index =
$.rmClass doc, 'catalog-hover-expand' unless Conf['Catalog Hover Expand']
hoverToggle: (e) ->
if Conf['Catalog Hover Expand'] and !$.modifiedClick(e) and !$.x('ancestor-or-self::a', e.target)
if Conf['Catalog Hover Expand'] and $.hasClass(doc, 'catalog-mode') and !$.modifiedClick(e) and !$.x('ancestor-or-self::a', e.target)
$.toggleClass doc, 'catalog-hover-expand'
if (thread = Get.threadFromNode e.target)
Index.cb.catalogReplies.call thread