Fix Post::parseFile again
This commit is contained in:
parent
20f6aba5f2
commit
539ff3bcf4
@ -49,7 +49,7 @@ class Post
|
|||||||
|
|
||||||
@parseComment()
|
@parseComment()
|
||||||
@parseQuotes()
|
@parseQuotes()
|
||||||
@parseFile()
|
@parseFile(that)
|
||||||
|
|
||||||
@clones = []
|
@clones = []
|
||||||
g.posts[@fullID] = thread.posts[@] = board.posts[@] = @
|
g.posts[@fullID] = thread.posts[@] = board.posts[@] = @
|
||||||
@ -100,7 +100,7 @@ class Post
|
|||||||
return if @isClone
|
return if @isClone
|
||||||
@quotes = Object.keys quotes
|
@quotes = Object.keys quotes
|
||||||
|
|
||||||
parseFile: ->
|
parseFile: (that) ->
|
||||||
return unless (fileEl = $ '.file', @nodes.post) and thumb = $ 'img[data-md5]', fileEl
|
return unless (fileEl = $ '.file', @nodes.post) and thumb = $ 'img[data-md5]', fileEl
|
||||||
# Supports JPG/PNG/GIF/PDF.
|
# Supports JPG/PNG/GIF/PDF.
|
||||||
# Flash files are not supported.
|
# Flash files are not supported.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user