Re-fix imageless posting on /news/ after addition of file field to post form.

This commit is contained in:
ccd0 2015-11-28 18:36:17 -08:00
parent 6fa7dd541e
commit 73dec667e7

View File

@ -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.'