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.'
|
||||
]
|
||||
'Relative Post Dates': [
|
||||
false
|
||||
true
|
||||
'Display dates like "3 minutes ago". Tooltip shows the timestamp.'
|
||||
]
|
||||
'Relative Date Title': [
|
||||
|
||||
@ -1,14 +1,13 @@
|
||||
RelativeDates =
|
||||
INTERVAL: $.MINUTE / 2
|
||||
init: ->
|
||||
return unless Conf['Relative Post Dates']
|
||||
unless Conf['Relative Date Title']
|
||||
switch g.VIEW
|
||||
when 'index'
|
||||
@flush()
|
||||
$.on d, 'visibilitychange', @flush
|
||||
return unless Conf['Relative Post Dates']
|
||||
when 'thread'
|
||||
return unless Conf['Relative Post Dates']
|
||||
@flush()
|
||||
$.on d, 'visibilitychange ThreadUpdate', @flush if g.VIEW is 'thread'
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user