Make 'Relative Date Title' a suboption of 'Relative Post Dates'.
This commit is contained in:
parent
b1b91605b8
commit
02f74448fa
@ -42,7 +42,7 @@ Config =
|
|||||||
'Localize and format timestamps.'
|
'Localize and format timestamps.'
|
||||||
]
|
]
|
||||||
'Relative Post Dates': [
|
'Relative Post Dates': [
|
||||||
false
|
true
|
||||||
'Display dates like "3 minutes ago". Tooltip shows the timestamp.'
|
'Display dates like "3 minutes ago". Tooltip shows the timestamp.'
|
||||||
]
|
]
|
||||||
'Relative Date Title': [
|
'Relative Date Title': [
|
||||||
|
|||||||
@ -1,14 +1,13 @@
|
|||||||
RelativeDates =
|
RelativeDates =
|
||||||
INTERVAL: $.MINUTE / 2
|
INTERVAL: $.MINUTE / 2
|
||||||
init: ->
|
init: ->
|
||||||
|
return unless Conf['Relative Post Dates']
|
||||||
unless Conf['Relative Date Title']
|
unless Conf['Relative Date Title']
|
||||||
switch g.VIEW
|
switch g.VIEW
|
||||||
when 'index'
|
when 'index'
|
||||||
@flush()
|
@flush()
|
||||||
$.on d, 'visibilitychange', @flush
|
$.on d, 'visibilitychange', @flush
|
||||||
return unless Conf['Relative Post Dates']
|
|
||||||
when 'thread'
|
when 'thread'
|
||||||
return unless Conf['Relative Post Dates']
|
|
||||||
@flush()
|
@flush()
|
||||||
$.on d, 'visibilitychange ThreadUpdate', @flush if g.VIEW is 'thread'
|
$.on d, 'visibilitychange ThreadUpdate', @flush if g.VIEW is 'thread'
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user