Don't try to toggle catalog hover expansion from non-catalog mode.
This commit is contained in:
parent
959db8158e
commit
05bffd36c5
@ -286,7 +286,7 @@ Index =
|
|||||||
$.rmClass doc, 'catalog-hover-expand' unless Conf['Catalog Hover Expand']
|
$.rmClass doc, 'catalog-hover-expand' unless Conf['Catalog Hover Expand']
|
||||||
|
|
||||||
hoverToggle: (e) ->
|
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'
|
$.toggleClass doc, 'catalog-hover-expand'
|
||||||
if (thread = Get.threadFromNode e.target)
|
if (thread = Get.threadFromNode e.target)
|
||||||
Index.cb.catalogReplies.call thread
|
Index.cb.catalogReplies.call thread
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user