Use SortIndex event rather than calling methods in Index.
This commit is contained in:
parent
60bb314783
commit
7327588ff8
@ -23,7 +23,8 @@ Index =
|
||||
|
||||
$.addClass doc, 'index-loading', "#{Conf['Index Mode'].replace /\ /g, '-'}-mode"
|
||||
$.on window, 'popstate', @cb.popstate
|
||||
$.on d, 'scroll', Index.scroll
|
||||
$.on d, 'scroll', @scroll
|
||||
$.on d, 'SortIndex', @cb.resort
|
||||
|
||||
# Header refresh button
|
||||
@button = $.el 'a',
|
||||
|
||||
@ -336,9 +336,8 @@ ThreadWatcher =
|
||||
for refresher in ThreadWatcher.menu.refreshers
|
||||
refresher()
|
||||
|
||||
if Index.nodes and Conf['Pin Watched Threads'] and Conf['Index Mode'] is 'catalog'
|
||||
Index.sort()
|
||||
Index.buildIndex()
|
||||
if Conf['Pin Watched Threads'] and Conf['Index Mode'] is 'catalog'
|
||||
$.event 'SortIndex'
|
||||
|
||||
refreshIcon: ->
|
||||
for className in ['replies-unread', 'replies-quoting-you']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user