JSON Index requires RelativeDates. #259
This commit is contained in:
parent
d49edfb4f0
commit
3a3d89851f
@ -1,21 +1,18 @@
|
|||||||
RelativeDates =
|
RelativeDates =
|
||||||
INTERVAL: $.MINUTE / 2
|
INTERVAL: $.MINUTE / 2
|
||||||
init: ->
|
init: ->
|
||||||
return unless Conf['Relative Post Dates']
|
if (
|
||||||
unless Conf['Relative Date Title']
|
g.VIEW isnt 'catalog' and Conf['Relative Post Dates'] and !Conf['Relative Date Title'] or
|
||||||
switch g.VIEW
|
g.VIEW is 'index' and Conf['JSON Navigation'] and g.BOARD.ID isnt 'f'
|
||||||
when 'index'
|
)
|
||||||
@flush()
|
@flush()
|
||||||
$.on d, 'visibilitychange', @flush
|
$.on d, 'visibilitychange ThreadUpdate', @flush
|
||||||
when 'thread'
|
|
||||||
@flush()
|
if Conf['Relative Post Dates']
|
||||||
$.on d, 'visibilitychange ThreadUpdate', @flush if g.VIEW is 'thread'
|
Post.callbacks.push
|
||||||
else
|
name: 'Relative Post Dates'
|
||||||
return
|
cb: @node
|
||||||
|
|
||||||
Post.callbacks.push
|
|
||||||
name: 'Relative Post Dates'
|
|
||||||
cb: @node
|
|
||||||
node: ->
|
node: ->
|
||||||
dateEl = @nodes.date
|
dateEl = @nodes.date
|
||||||
if Conf['Relative Date Title']
|
if Conf['Relative Date Title']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user