Restore page numbers to cross-thread quotes.
This commit is contained in:
parent
24d6e92b51
commit
f63a8b8a4b
@ -11,6 +11,9 @@ Index =
|
|||||||
|
|
||||||
return unless Conf['JSON Index']
|
return unless Conf['JSON Index']
|
||||||
|
|
||||||
|
Callbacks.Post.push
|
||||||
|
name: 'Index Page Numbers'
|
||||||
|
cb: @node
|
||||||
Callbacks.CatalogThread.push
|
Callbacks.CatalogThread.push
|
||||||
name: 'Catalog Features'
|
name: 'Catalog Features'
|
||||||
cb: @catalogNode
|
cb: @catalogNode
|
||||||
@ -194,6 +197,10 @@ Index =
|
|||||||
$.on @el, 'click', @cb
|
$.on @el, 'click', @cb
|
||||||
true
|
true
|
||||||
|
|
||||||
|
node: ->
|
||||||
|
return if @isReply or @isClone or not (Index.threadPosition[@ID]?)
|
||||||
|
@thread.setPage(Index.threadPosition[@ID] // Index.threadsNumPerPage + 1)
|
||||||
|
|
||||||
catalogNode: ->
|
catalogNode: ->
|
||||||
$.on @nodes.root, 'mousedown click', (e) =>
|
$.on @nodes.root, 'mousedown click', (e) =>
|
||||||
return unless e.button is 0 and e.shiftKey
|
return unless e.button is 0 and e.shiftKey
|
||||||
@ -631,12 +638,12 @@ Index =
|
|||||||
|
|
||||||
if ((OP = thread.OP) and not OP.isFetchedQuote)
|
if ((OP = thread.OP) and not OP.isFetchedQuote)
|
||||||
OP.setCatalogOP false
|
OP.setCatalogOP false
|
||||||
|
thread.setPage(Index.threadPosition[ID] // Index.threadsNumPerPage + 1)
|
||||||
else
|
else
|
||||||
obj = Index.parsedThreads[ID]
|
obj = Index.parsedThreads[ID]
|
||||||
OP = new Post Build.post(obj), thread, g.BOARD
|
OP = new Post Build.post(obj), thread, g.BOARD
|
||||||
OP.filterResults = obj.filterResults
|
OP.filterResults = obj.filterResults
|
||||||
newPosts.push OP
|
newPosts.push OP
|
||||||
thread.setPage(Index.threadPosition[ID] // Index.threadsNumPerPage + 1)
|
|
||||||
|
|
||||||
Build.thread thread, threadData
|
Build.thread thread, threadData
|
||||||
catch err
|
catch err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user