Make 'Relative Date Title' a suboption of 'Relative Post Dates'.

This commit is contained in:
ccd0 2014-12-23 09:56:01 -08:00
parent b1b91605b8
commit 02f74448fa
2 changed files with 2 additions and 3 deletions

View File

@ -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': [

View File

@ -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