Make 'Image Hover in Catalog' a suboption of 'Image Hover'.
This commit is contained in:
parent
698533233b
commit
afb1f0a572
@ -182,10 +182,12 @@ Config =
|
|||||||
'Image Hover in Catalog': [
|
'Image Hover in Catalog': [
|
||||||
false
|
false
|
||||||
'Show full image / video on mouseover in <%= meta.name %> catalog.'
|
'Show full image / video on mouseover in <%= meta.name %> catalog.'
|
||||||
|
1
|
||||||
]
|
]
|
||||||
'Mouse Wheel Volume': [
|
'Mouse Wheel Volume': [
|
||||||
true
|
true
|
||||||
'Adjust volume of hovering videos with mouse wheel.'
|
'Adjust volume of hovering videos with mouse wheel.'
|
||||||
|
1
|
||||||
]
|
]
|
||||||
'Gallery': [
|
'Gallery': [
|
||||||
true
|
true
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
ImageHover =
|
ImageHover =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW not in ['index', 'thread']
|
return unless Conf['Image Hover'] and g.VIEW in ['index', 'thread']
|
||||||
if Conf['Image Hover']
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Image Hover'
|
name: 'Image Hover'
|
||||||
cb: @node
|
cb: @node
|
||||||
|
|
||||||
if Conf['Image Hover in Catalog']
|
if Conf['Image Hover in Catalog']
|
||||||
CatalogThread.callbacks.push
|
CatalogThread.callbacks.push
|
||||||
name: 'Image Hover'
|
name: 'Image Hover'
|
||||||
|
|||||||
@ -2,7 +2,7 @@ Volume =
|
|||||||
init: ->
|
init: ->
|
||||||
return unless g.BOARD.ID in ['gif', 'wsg'] and
|
return unless g.BOARD.ID in ['gif', 'wsg'] and
|
||||||
g.VIEW in ['index', 'thread'] and
|
g.VIEW in ['index', 'thread'] and
|
||||||
(Conf['Image Expansion'] or Conf['Image Hover'] or Conf['Image Hover in Catalog'] or Conf['Gallery'])
|
(Conf['Image Expansion'] or Conf['Image Hover'] or Conf['Gallery'])
|
||||||
|
|
||||||
unmuteEntry = UI.checkbox 'Allow Sound', ' Allow Sound'
|
unmuteEntry = UI.checkbox 'Allow Sound', ' Allow Sound'
|
||||||
unmuteEntry.title = Config.main['Images and Videos']['Allow Sound'][1]
|
unmuteEntry.title = Config.main['Images and Videos']['Allow Sound'][1]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user