16 lines
423 B
CoffeeScript
16 lines
423 B
CoffeeScript
class CatalogThread
|
|
toString: -> @ID
|
|
|
|
constructor: (root, @thread) ->
|
|
@ID = @thread.ID
|
|
@board = @thread.board
|
|
{post} = @thread.OP.nodes
|
|
@nodes =
|
|
root: root
|
|
thumb: $ '.catalog-thumb', post
|
|
icons: $ '.catalog-icons', post
|
|
postCount: $ '.post-count', post
|
|
fileCount: $ '.file-count', post
|
|
pageCount: $ '.page-count', post
|
|
@thread.catalogView = @
|