remove duplicate Persistent QR code
This commit is contained in:
parent
8ad1781a1e
commit
25a3c3aeed
@ -29,12 +29,6 @@ QR =
|
|||||||
|
|
||||||
$.on d, '4chanXInitFinished', @initReady
|
$.on d, '4chanXInitFinished', @initReady
|
||||||
|
|
||||||
if Conf['Persistent QR']
|
|
||||||
unless g.BOARD.ID is 'f' and g.VIEW is 'index'
|
|
||||||
$.on d, '4chanXInitFinished', @persist
|
|
||||||
else
|
|
||||||
$.ready @persist
|
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Quick Reply'
|
name: 'Quick Reply'
|
||||||
cb: @node
|
cb: @node
|
||||||
@ -94,11 +88,6 @@ QR =
|
|||||||
node: ->
|
node: ->
|
||||||
$.on $('a[title="Reply to this post"]', @nodes.info), 'click', QR.quote
|
$.on $('a[title="Reply to this post"]', @nodes.info), 'click', QR.quote
|
||||||
|
|
||||||
persist: ->
|
|
||||||
return unless QR.postingIsEnabled
|
|
||||||
QR.open()
|
|
||||||
QR.hide() if Conf['Auto Hide QR'] or g.VIEW is 'catalog'
|
|
||||||
|
|
||||||
open: ->
|
open: ->
|
||||||
if QR.nodes
|
if QR.nodes
|
||||||
QR.nodes.el.hidden = false
|
QR.nodes.el.hidden = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user