Re-fix imageless posting on /news/ after addition of file field to post form.
This commit is contained in:
parent
6fa7dd541e
commit
73dec667e7
@ -612,7 +612,7 @@ QR =
|
||||
threadID = null
|
||||
if g.BOARD.ID is 'vg' and !post.sub
|
||||
err = 'New threads require a subject.'
|
||||
else unless !$.id('postFile') or post.file or (textOnly = !!$ 'input[name=textonly]', $.id 'postForm')
|
||||
else unless $.hasClass(d.body, 'text_only') or post.file or (textOnly = !!$ 'input[name=textonly]', $.id 'postForm')
|
||||
err = 'No file selected.'
|
||||
else if g.BOARD.threads[threadID].isClosed
|
||||
err = 'You can\'t reply to this thread anymore.'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user