Add deferred option to SortIndex event.
Fixes bug where (un)watching threads wouldn't change the order when you refreshed the index if the index hadn't changed.
This commit is contained in:
parent
785abe09b7
commit
c91ac0ba89
@ -229,9 +229,9 @@ Index =
|
||||
Index.pushState {sort: @value}
|
||||
Index.pageLoad false
|
||||
|
||||
resort: ->
|
||||
resort: (e) ->
|
||||
Index.changed.order = true
|
||||
Index.pageLoad false
|
||||
Index.pageLoad false unless e?.detail?.deferred
|
||||
|
||||
perBoardSort: ->
|
||||
Conf['Index Sort'] = if @checked then {} else ''
|
||||
|
||||
@ -336,8 +336,8 @@ ThreadWatcher =
|
||||
for refresher in ThreadWatcher.menu.refreshers
|
||||
refresher()
|
||||
|
||||
if Conf['Pin Watched Threads'] and Conf['Index Mode'] is 'catalog'
|
||||
$.event 'SortIndex'
|
||||
if Conf['Pin Watched Threads']
|
||||
$.event 'SortIndex', {deferred: Conf['Index Mode'] isnt 'catalog'}
|
||||
|
||||
refreshIcon: ->
|
||||
for className in ['replies-unread', 'replies-quoting-you']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user